set power limit permanently ubuntu

The easiest way to set the power limit permanently in ubutu with an nvidia graphics card is as follows.

#!/bin/bash
sudo nvidia-smi -pm 1
sudo nvidia-smi -pl 150 -i 0

Leave a Reply