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
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments