Comment 13 for bug 1968929

Revision history for this message
Jack Howarth (jwhowarth) wrote (last edit ): Re: No Wayland support on my NVIDA laptop

The fact that a /etc/modprobe.d/nvidia-hack.conf file with 'options nvidia NVreg_PreserveVideoMemoryAllocations=1' doesn't bring back the Wayland option suggests that the line...

IMPORT{program}="/bin/sh -c \"sed -e 's/: /=/g' -e 's/\([^[:upper:]]\)\([[:upper:]]\)/\1_\2/g' -e 's/[[:lower:]]/\U&/g' -e 's/^/NVIDIA_/' /proc/driver/nvidia/params\""

in /lib/udev/rules.d/61-gdm isn't parsing as expected. After rebooting with /etc/modprobe.d/nvidia-hack.conf in place, I find that executing...

/bin/sh -c "sed -e 's/: /=/g' -e 's/\([^[:upper:]]\)\([[:upper:]]\)/\1_\2/g' -e 's/[[:lower:]]/\U&/g' -e 's/^/NVIDIA_/' /proc/driver/nvidia/params"

produces 'NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS=1' however Wayland is only available if I precede the test for 'ENV{NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS}!="1", GOTO="gdm_disable_wayland"' in /lib/udev/rules.d/61-gdm.rules with a manual assignment of 'ENV{NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS}="1"'.