You are not logged in.
Pages: 1
Hi huys,I am using nvidia RTX3060Ti and hyprland with nvidia-dkms driver.I will type
systemctl suspendin terminal emulator(kitty) in hyprland session to suspend.However,when I boot it after I came back to my pc,it will take me back to tty and I have to restart hyprland and all the software that were running won't be reserve.I hope that I can suspend it and when I turn back I can keep using my apps(such as browser and discord,telegram) without restart it.Thanks for your help!
Offline
Offline
Thanks for your reply! However,I didn't find the folder "/usr/share/doc/NVIDIA_GLX-1.0/" for the command
sudo install /usr/share/doc/NVIDIA_GLX-1.0/samples/systemd/nvidia-suspend.service /etc/systemd/systemin the document.There are only two folders "nvidia" and "nvidia-utils" under the folder "/usr/share/doc".Or am I understand the document in a wrong way?
Offline
nvidia-utils supplies:
nvidia-utils usr/lib/systemd/system-sleep/nvidia
nvidia-utils usr/lib/systemd/system/nvidia-hibernate.service
nvidia-utils usr/lib/systemd/system/nvidia-powerd.service
nvidia-utils usr/lib/systemd/system/nvidia-resume.service
nvidia-utils usr/lib/systemd/system/nvidia-suspend.serviceOffline
nvidia-utils supplies:
nvidia-utils usr/lib/systemd/system-sleep/nvidia nvidia-utils usr/lib/systemd/system/nvidia-hibernate.service nvidia-utils usr/lib/systemd/system/nvidia-powerd.service nvidia-utils usr/lib/systemd/system/nvidia-resume.service nvidia-utils usr/lib/systemd/system/nvidia-suspend.service
Thanks for your reply! Which command should I run ? I have run
sudo install /usr/lib/systemd/system/nvidia-suspend.service /etc/systemd/systemand nothing changes
Offline
You don't need to install the unit files to /etc/systemd/system - the unit files installed by packages are meant to be in /usr/lib/systemd/system, and will be overwritten when the packages updates. /etc/systemd/system is for local unit files or customizations to the unit files provided by packages. See the wiki for more info.
I don't have anything from Nvidia myself, but from the information Seth linked to, I'd say you just need to enable the service files:
systemctl enable nvidia-suspend.service
systemctl enable nvidia-hibernate.service
systemctl enable nvidia-resume.serviceExcept that may already have been done by the package when you installed. You can check that using "status" instead of "enable" with systemctl.
I don't know what's with the nvidia-powerd.service, and it seems to be a bit short on info, but according to https://forums.developer.nvidia.com/t/4 … erd/164099 and https://forums.developer.nvidia.com/t/n … art/235498, I don't think you need it.
Offline
You don't need to install the unit files to /etc/systemd/system - the unit files installed by packages are meant to be in /usr/lib/systemd/system, and will be overwritten when the packages updates. /etc/systemd/system is for local unit files or customizations to the unit files provided by packages. See the wiki for more info.
I don't have anything from Nvidia myself, but from the information Seth linked to, I'd say you just need to enable the service files:
systemctl enable nvidia-suspend.service systemctl enable nvidia-hibernate.service systemctl enable nvidia-resume.serviceExcept that may already have been done by the package when you installed. You can check that using "status" instead of "enable" with systemctl.
I don't know what's with the nvidia-powerd.service, and it seems to be a bit short on info, but according to https://forums.developer.nvidia.com/t/4 … erd/164099 and https://forums.developer.nvidia.com/t/n … art/235498, I don't think you need it.
Thanks for your reply! However,I have run
systemctl enable nvidia-suspend.service
systemctl enable nvidia-hibernate.service
systemctl enable nvidia-resume.serviceand it still won't reserve my session. Am I missing something?
Offline
Additionally, to unlock the full functionality of the interface, the NVIDIA Linux kernel module needs to be loaded with the NVreg_PreserveVideoMemoryAllocations=1 module parameter. This changes the default video memory save/restore strategy to save and restore all video memory allocations.
Make sure you applied it w/ "systool -vm nvidia".
Also just enabling the services w/o "--now" doesn't do anything until the next reboot.
Offline
nvidia wrote:Additionally, to unlock the full functionality of the interface, the NVIDIA Linux kernel module needs to be loaded with the NVreg_PreserveVideoMemoryAllocations=1 module parameter. This changes the default video memory save/restore strategy to save and restore all video memory allocations.
Make sure you applied it w/ "systool -vm nvidia".
Also just enabling the services w/o "--now" doesn't do anything until the next reboot.
Where should I add "NVreg_PreserveVideoMemoryAllocations=1" and what is kernel module parameter?
Offline
Offline
Pages: 1