With this set I can also use Wayland but that brings other problems, such as really stuttery video playback in at least firefox + youtube. So I stayed in X11 for now. Just note that 22.04 will default to Wayland with the above file present so I had to manually choose Ubuntu on X.org in the login screen.
I can confirm that adding this file fixes the problem on Ubuntu 22.04 (using Nvidia 3080 card):
$ cat /etc/modprobe. d/nvidia- power-managemen t.conf ideoMemoryAlloc ations= 1
options nvidia NVreg_PreserveV
I did not have to set NVreg_Temporary FilePath
With this set I can also use Wayland but that brings other problems, such as really stuttery video playback in at least firefox + youtube. So I stayed in X11 for now. Just note that 22.04 will default to Wayland with the above file present so I had to manually choose Ubuntu on X.org in the login screen.
I used a fresh install of 22.04.