

How to set PowerTOP options at boot time by Milosz Galazka on Augand tagged with Ubuntu, System management, systemd Today, I will show you how to set all tunable PowerTOP options at boot time using systemd service. It perplexed me for a while why my USB mouse on a laptop would deactivate itself randomly (its LED turns off, and the mouse doesn't work until you click one of the buttons, and then it will.

But sometimes it doesn't work well, especially with USB mice. The service runs powertop -auto-tune which automatically sets most tunables to their 'Good' state, for maximum battery life. That's an example of a single-line command that's not included in a script. For example, it's possible to run powertop -auto-tune at boot just by writing that line and saving it in rc.local. I think the wrong way use startup scripts is to do the opposite of what I just mentioned.
