nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1

now what is the easiest way to run this one bash line of code at startup???

I am running Gnome 3.14.


You can use gnome-session-properties in terminal or using Alt+F2.

That opens up Startup Applications Preferences in my Linux Mint (could be different for your distro).

Give a name for your command (optional)

Write the bash code in Command option

Add any comment (optional)

Alternatively, you could give a command to execute a bash file (which contains your code) in the commands option.

UPDATE: As notified by don_crissti you have to use gnome-tweak-tool instead. I'm guessing it still has similar options.

  • 1
    don is right, but I downloaded it from the aur and everything worked out fine thank you!
    – Derek
    Dec 10 '14 at 3:34

If you want to do it with systemd you create a service file as follows:

Description=Execute some nvidia command

ExecStart=nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1


You should save this file with a .service suffix ~/.config/systemd/user/ and enable it with systemctl --user enable filename.service. This way every time you start your session the command will be run. You may add some options to avoid it being run more than once per boot or adjust dependencies so it's executed earlier in the boot process.

Check for problems and status with systemctl status filename.service.


Add this line to /etc/rc.local before exit 0 this will the same when system starts.

  • I don't have an rc.local file in /etc
    – Derek
    Dec 10 '14 at 20:49
  • which Operating system u r using? Dec 11 '14 at 9:57
  • Arch Linux x86_64 - 3.17.6
    – Derek
    Dec 11 '14 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.