Hjdskes / powersave

Linux power save settings, compatible with systemd
Do What The F*ck You Want To Public License
135 stars 21 forks source link
battery laptop linux powersave ssd systemd

Powersave

These files enable power saving on Linux. Note that these settings are applied regardless of whether the system is on battery or AC. Power saving is applied to:

Power saving is not applied to:

You might also want to edit /etc/fstab to add commits=<seconds> to the options column of your partitions. See the mount man page.

It is fit for my own laptop (Lenovo Thinkpad Edge E130), which means that this script will not work on every setup. Please check this before running it on your computer! Things might break otherwise and I am not responsible for any damage that has been done.

TODO

Installation

The script will need the following dependencies to run:

Just run make install as root to install the whole set.

To enable the ASPM setting to work, append pcie_aspm=force to your kernel parameter list. However, before doing so, verify that all PCIe hardware on your system support ASPM!