Package: nvidia-graphics-drivers Version: 530.41.03-3 Hi,
I follow the discussion of "nvidia-graphics-drivers: please package systemd power management scripts" [1] and * Install new package nvidia-suspend-common: So, there are the systemd unit files and "nvidia-sleep.sh" * Set NVreg_PreserveVideoMemoryAllocations: So, nvidia's parameter "InitializeSystemMemoryAllocations" is 1 $ grep InitializeSystemMemoryAllocations /proc/driver/nvidia/params InitializeSystemMemoryAllocations: 1 Also, took Fedora's gdm patch "udev: Stick with wayland on hybrid nvidia with vendor driver" [2] Then, the system uses GNOME Wayland! $ printenv XDG_SESSION_TYPE wayland However, system fails to suspend and shows the error in log: systemd-sleep[2781]: /usr/bin/nvidia-sleep.sh: line 33: chvt: command not found systemd-sleep[2794]: /dev/sda: systemd-sleep[2794]: setting Advanced Power Management level to 0xfe (254) systemd-sleep[2794]: APM_level = 254 systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: systemd-suspend.service: Failed with result 'exit-code'. systemd[1]: Failed to start System Suspend. systemd[1]: Dependency failed for Suspend. systemd[1]: suspend.target: Job suspend.target/start failed with result 'dependency'. systemd[1]: Stopped target Sleep. systemd-logind[459]: Operation 'sleep' finished The "chvt" should be provided by kbd package. After I install kbd, the system can suspend & resume correctly. I think kbd should be the dependency of nvidia-suspend-common. [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038006 [2]: https://src.fedoraproject.org/rpms/gdm/blob/rawhide/f/0001-udev-Stick-with-wayland-on-hybrid-nvidia-with-vendor.patch Jian-Hong Pan

