How to Enable Nvidia Persistence-Mode on Boot for Ubuntu 20.04 (Server)

every time I try to do nvidia-smi it takes a long time for it to show up; it turns out there should be persistence mode enabled one easy way is to just call nvidia-smi pm -1. But this does not enable it for boot.

How can I make it work on boot? I tried to run sudo nvidia-persistenced but it's the following to syslog:

 kernel: [  949.165626] NVRM: Persistence mode is deprecated and will be removed in a future release. Please use nvidia-persistenced instead.
 nvidia-persistenced: Started (1994)
 nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
 nvidia-persistenced: Shutdown (1994)
 nvidia-persistenced: Started (1997)
 nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
 nvidia-persistenced: Shutdown (1997)
 nvidia-persistenced: Started (2041)
 nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
 nvidia-persistenced: Shutdown (2041)

1 Answer

The following helped me to resolve error and make persistence daemon:

sudo apt install libnvidia-cfg1-510 #replace 510 with your driver version

then run the following command:

sudo nvidia-persistenced --user USER #replace USER with your username

if you just want to make it presistance for only your current session just run this:

sudo nvidia-smi -pm 1 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest