Managing the power consumption of your NVIDIA GPU on Ubuntu is a practical way to optimize energy efficiency, especially for workloads that do not require full GPU performance. This guide explains how to check and set power limits for your NVIDIA GPU and how to make those settings persistent across reboots.
| Component | Description |
|---|---|
| OS | Ubuntu or compatible Linux distribution |
| Tools | NVIDIA proprietary drivers, nvidia-smi utility |
| Access | Terminal access, sudo/root privileges |
$ nvidia-smi -q -d POWER
This command shows:
Current Power Limit
Default Power Limit
Minimum and Maximum Power Limits
📝 Note: Always choose a value within the allowed min/max limits.
$ sudo nvidia-smi -pl 200
You must have root privileges to change power settings.
$ nvidia-smi -q -d POWER
Ensure that the Current Power Limit now reflects your desired value.
$ sudo nano /etc/systemd/system/nvidia-power-limit.service
Paste the following content:
[Unit]Description=Set NVIDIA GPU Power Limit
After=multi-user.target
[Service]Type=oneshot
ExecStart=/usr/bin/nvidia-smi -pl 200
[Install]WantedBy=multi-user.target
$ sudo systemctl enable nvidia-power-limit.service
The service will now run on each boot and apply your configured power limit.
You can modify
ExecStartto set different limits or apply settings to specific GPU IDs usingnvidia-smi -i <GPU_ID> -pl <WATTS>.