Last active
February 13, 2021 16:19
-
-
Save pocoz/30b37df208a9fcb39a2aff5d06f9022e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt install ubuntu-drivers-common | |
sudo apt install nvidia-driver-{last-driver} | |
sudo reboot | |
nvidia-smi | |
sudo nano /etc/systemd/system/nvidia-powerlimit.service | |
[Unit] | |
Description=set nvidia power limit | |
[Service] | |
Type=oneshot | |
ExecStartPre=/usr/bin/nvidia-smi --persistence-mode=1 | |
ExecStart=/usr/bin/nvidia-smi --power-limit=170 | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target | |
sudo chmod 644 /etc/systemd/system/nvidia-powerlimit.service | |
sudo systemctl daemon-reload | |
sudo systemctl enable nvidia-powerlimit.service | |
sudo reboot now | |
nvidia-smi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment