Comment 3 for bug 1969447

Revision history for this message
Jack Howarth (jwhowarth) wrote (last edit ):

I have found that current /lib/udev/rules.d/61-gdm.rules can be fixed by swapping the order of the single and escaped double quotes from...

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\""

which fails to parse correctly to...

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'"

which parses properly and allows the test for

ENV{NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS}!="1", GOTO="gdm_disable_wayland"

to succeed when /etc/modprobe.d/nvidia-power-management.conf contains...

options nvidia NVreg_PreserveVideoMemoryAllocations=1