I just switched from using the Ubuntu PPA for installing Nvidia-related packages to using the Nvidia one.
The nvidia-kernel-common package provided by Ubuntu contains /lib/systemd/system/nvidia-suspend.service but the Nvidia one does not.
Which of the packages directly provided by Nvidia do I need in order to install nvidia-suspend.service and the other files needed to successfully suspend and resume?
If I look at the README, installed in /usr/share/doc/nvidia-driver-515, in the power management systemd section that covers nvidia-resume.service etc, it just says:
These files are installed and enabled by nvidia-installer automatically if
systemd is detected. Installation of systemd units can be disabled by
specifying the '--no-systemd' installer option.
I.e. the README doesn’t seem to cover the case where people are installing things via a package manager.
I then unpacked the downloaded .deb files and looked at the files each provides, I found various .service files (e.g. I could see that nvidia-powerd.service is provided by the nvidia-compute-utils package) but none contained nvidia-suspend.service.
I wonder if this is a bug or some issue with how Nvidia are packaging up the latest version of the driver etc.
If for example you download the above file, make it executable and run it with the -x|--extract option, you could then find the .service’s in ./NVIDIA-Linux-x86_64-565.77/systemd/system/.