I recently migrated my Xubuntu 22.04 setup to a new laptop (Dell Precision 3580). After tinkering around for a few days, the Intel Iris Xe GPU works now. However, I just can't make the Nvidia RTX A500 working.
I am using Xubuntu with lightdm, Linux kernel 6.2.0-26-generic.
I have installed nvidia-driver-535
from apt
, and the output of sudo lshw -C video
show that none of the 2 GPUs are "UNCLAIMED".
However, whenever prime-select
is set to nvidia
or on-demand
, Xubuntu boots into a black screen after unlocking the encrypted drive. At this point, if prime-select
is set to nvidia
, I can press Ctrl+Alt+F1 to get a tty, login and use Xubuntu there. However, if prime-select
is set to on-demand
, then Ctrl+Alt+F1 has no effect and the machine remains stuck at the black screen.
I added a 10-nvidia-drm-outputclass.conf
to my /etc/X11/xorg.conf.d/
following this arch documentation.
I also followed the arch documentation here to add a display setup script to invoke bash
#!/bin/sh
echo "hello" > /tmp/hello.txt
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
After adding this, Ctrl+Alt+F1 works even if prime-select
is set to on-demand
. When Xubuntu boots into a black screen, going to the tty I can see that /tmp/hello.txt
is created, so the script did run.
I tried to set options nvidia-drm modeset=0
according to this nvidia forum reply, but that didn't work.
This thread on nvidia forum describes a similar symptom on Ubuntu 20.04 and says no issues on Ubuntu 22.04, but I'm already on 22.04. This reddit post describes a similar problem on openSUSE but I don't see a concrete solution there.
I also tried to make the driver load earlier by embedding it into initrd, as described in this nvidia reply here, but that didn't change the outcome.
I also cleaned up all the stale xorg.conf files as suggested in this nvidia forum thread, but that also didn't change the outcome.
At this point I'm out of ideas. Any pointers would be greatly appreciated. Thanks!