Alternatively, you can add a /etc/modprobe.d/nvidia-hack.conf file containing the line...
options nvidia NVreg_PreserveVideoMemoryAllocations=1
and work around the apparently broken 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\""
by adding...
ENV{NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS}="1"
after it in order to restore the use of Wayland under Nvidia.
Alternatively, you can add a /etc/modprobe. d/nvidia- hack.conf file containing the line...
options nvidia NVreg_PreserveV ideoMemoryAlloc ations= 1
and work around the apparently broken 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\ ""
by adding...
ENV{NVIDIA_ PRESERVE_ VIDEO_MEMORY_ ALLOCATIONS} ="1"
after it in order to restore the use of Wayland under Nvidia.