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 the arch documentation.
I also followed the arch documentation 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.
I also tried to make the driver load earlier by embedding it into initrd, as described in a nvidia forum discussion, 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. A bug report log file generated from tty when Xubuntu is stuck at the black screen can be found below. Any pointers would be greatly appreciated. Thanks!
nvidia-bug-report.log.gz (393.5 KB)