Nvidia-sleep.sh changes VT (causes re-suspend after resume now), is it still needed under Wayland?

Hello, in Making sure you're not a bot! we identified nvidia-sleep.sh as the cause for re-suspend of running NVIDIA drivers.

From: https://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/powermanagement.html:

/usr/bin/nvidia-sleep.sh

A shell script used by the systemd service description files and the systemd-sleep file to interact with the /proc/driver/nvidia/suspend interface. The script also manages VT switching for the X server, which is currently needed by the NVIDIA X driver to support power management operations.

The part about VT switching is what trips GNOME settings daemon. Upon resume it notices that the active “seat” isn’t what was the session associated with, and decides that this is a temporary “unidle” of the device.

While we are still figuring what the correct process on the gsd-power side, is VT switching needed if the system does not run X server?

2 Likes

Yes, it’s still needed for now. I have a change in progress for the r595 series that will remove the need for the nvidia-sleep.sh script, but the kernel will still do its own VT switch during suspend even then.

I’ll read through your link tomorrow to try to better understand what the problem is and whether that change is going to help.