Comment 18 for bug 1968929

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

How can we even know whether the Nvidia power mananagement support is broken or working if the Ubuntu Nvidia packaging never starts nvidia-hibernate.service, nvidia-powerd.service, nvidia-resume.service and nvidia-suspend.service like rpmfusion on Fedora? Of course, we would need a /etc/modprobe.d/nvidia-power-management.conf to get NVreg_PreserveVideoMemoryAllocations=1. However, I'm still unconvinced that the current check for NVreg_PreserveVideoMemoryAllocations=1 in 61-gdm.rules is really functional. In my hands, even though I had NVreg_PreserveVideoMemoryAllocations=1 present from addition of a /etc/modprobe.d/nvidia-power-management.conf contaiining....

options nvidia NVreg_PreserveVideoMemoryAllocations=1

the test...

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\""
ENV{NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS}!="1", GOTO="gdm_disable_wayland"

in 61-gdm.rules never recognized its presence. It seems like the rule might not be properly parsing the escaped quotes.

Also, I looked at the Debian packaging for nvidia and I don't see any evidence that they have ever started those power management related services.