Comment 15 for bug 1969243

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

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.