I am using Ubuntu and have a Gigabyte GTX 1070 G1 Gaming. In Win10 I have the power limit set +11. How can I set +11 on the power limit using nvidia-smi or something else in Ubuntu?
You’ll want to make
/usr/bin/nvidia-smi able to be run as sudo without a password.
Then to query your power limit:
sudo nvidia-smi -q -d POWER
And to set it
sudo nvidia-smi -pl (base power limit+11)
And add that to a shell script that runs at startup. (This is why we made those able to run sudo without a password)
If you have multiple GPUs:
sudo nvidia-smi -i 0 -pl (Power Limit) GPU1
sudo nvidia-smi -i 1 -pl (Power Limit) GPU2
to set a power limit of 140W use (-i 0 apples to only the 1st gpu)
sudo nvidia-smi -i 0 -pl 140
to see what your card is using run this command
nvidia-smi -q -d power
you can use anything between “Default Power Limit” and “Max Power Limit”
nvidia-smi also has a
-pm option to enable persist mode
I can’t get it to open without having to open in terminal and put in the password. Also, it is part of the root.
then at the very bottom, manually type in with tab spaces:
(your username) ALL=(ALL) NOPASSWD: /usr/bin/nvidia-persistenced (your username) ALL=(ALL) NOPASSWD: /usr/bin/nvidia-smi
and save the file.