Bug in 515.65.01 - Mouse/Keyboard Delay of 2+ Seconds

There is an initial 2+ second delay responding to the mouse, keyboard or touchpad, on clean installs of Ubuntu 22.04.1 on three laptops:

Asus ROG Zephrus: AMD Ryzen 9 + RTX 3060
Lenovo Legion 5: AMD Ryzen 7 + RTX 3050Ti
Gigabyte G5: Intel i5 + RTX 3060

The delay begins after adding “PrimaryGPU” “Yes” to /usr/share/X11/xorg.conf.d/10-nvidia.conf

The delay stops as long as there is input activity, but after 10 or so seconds of inactivity, the initial delay returns.

If nvidia-settings is opened and GPU-0 is selected, the delay stops!
If anything not under GPU-0 is selected, the delay returns.
If nvidia-settings is closed, the delay returns.

Setting PowerMizer to Adaptive or Performance does not help.

However, adding the following to ~/.xinitrc eliminates the delay, but must be set to Performance (1), which locks the GPU at full bore Level 3, essentially eliminating PowerMizer:

nvidia-settings -a “GPUPowerMizerMode=1” &
. /etc/X11/xinit/xinitrc

This behavior is readily repeatable on all three laptops, but does not appear on two desktops (Ryzen and Xeon) with GTX’s which do not have integrated GPU’s.

A solution would be greatly appreciated.

Please set kernel parameter
Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

nvidia-bug-report.log.gz (237.7 KB)

nvidia-drm.modeset=1 was set in /etc/modprobe.d/nvidia-graphics-drivers-kms.conf

I also set GRUB_CMDLINE_LINUX_DEFAULT=“nvidia-drm.modeset=1” but no change.

UPDATE: Identical behavior with a fresh Linux Mint 21/515.65.01 install on a Gigabyte G5: Intel i5 + RTX 3060.

Unfortunately, no xorg logs or config files were included in the logs. Did you use prime-select to switch modes or did you just add “PrimaryGpu” to a config file?

It seems that is the right question. I just added “PrimaryGPU” to the config. That caused X Screen 0 to show up in nvidia-settings, and allowed my main program DaVinci Resolve to run, but resulted in the mouse delay.

I removed it and used prime-select instead and now “performance” and “on-demand” both work on both amdgpu and intel laptops.

Thank you!

I just updated the driver on the intel laptop from:

“nvidia-driver-515/jammy-updates,now 515.76+really.515.65.01-0ubuntu0.22.04.1 amd64 [installed, upgradable to: 515.76+really.515.65.01-0ubuntu0.22.04.2”


nvidia-driver-515/jammy-updates,now 515.76+really.515.65.01-0ubuntu0.22.04.2 amd64 [installed]

So from 22.04.1 to 22.04.2

The only way DaVinci Resolve will now run is to go back to adding “PrimaryGPU”, but then the mouse delay returns.

On the amd laptop with the older driver, and DaVinci Resolve runs fine by right clicking the icon (Linux Mint), and selecting “Run with NVIDIA GPU”. That was also the case on the intel laptop, but that option has disappeared with the updated driver, and I don’t have any idea how to get it back.

The mouse delay is a nightmare to work with. Please help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.