On Sun, Jan 05, 2025 at 09:07:09AM -0500, Anil F Duggirala wrote:
> Thank you both for your instructions. I have followed the exact
> instructions as proposed by Oli and have managed to successfully
> install and load the nvidia driver.
> 
> However, apparently I am now stuck in an X session instead of the
> Wayland session I had before.
> 
> I have followed the additional instruction here
> https://wiki.debian.org/NvidiaGraphicsDrivers#Debian_12_.22Bookworm.22
> and have run the command:
> echo "options nvidia-drm modeset=1" >> /etc/modprobe.d/nvidia-
> options.conf
> 
> and now, cat /sys/module/nvidia_drm/parameters/modeset, outputs: Y
> 
> My laptop has both and integrated card and the Nvidia card. I have read
> the instructions here:
> https://wiki.debian.org/NVIDIA%20Optimus#PRIMEOffload
> 
> I don't really understand the second paragraph there, where it says
> that it should just work out of the box but also recommends some
> additional steps. Should I uninstall the xserver-xorg-video-intel
> package as suggested there?
> 
> Should I be getting an option to select Wayland instead of Xorg at
> login? I'm not sure I had that option before.

This seems to be a known issue with NVIDIA, there is a udev rule that disables 
Wayland, why that is so I have no idea.
See for example: 
https://forums.debian.net/viewtopic.php?p=789215#p789215
https://superuser.com/questions/1859733/how-do-i-force-wayland-on-in-linux-when-using-nvidia-proprietary-drivers

Try disabling that gdm-runtime-config line in that udev file, reboot and see if 
that helps.

HTH

Oli

Reply via email to