Skip to content

Simple shell script to save laptop's battery when on battery

Notifications You must be signed in to change notification settings

adlorenz/powersave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

A script to enable laptop power saving features for #! & Debian GNU+linux.
Generally speaking, this script should automatically switch powertop's 
"Tunables" which proved to make significant impact in power consumption 
while running on battery.

Script originally created by hardran3 at:
http://crunchbanglinux.org/forums/topic/11954

Adjusted to own needs and github'ed by Dawid Lorenz / [email protected]

To make this script run each time laptop's power adapter is plugged in/out:
sudo cp powersave /etc/pm/power.d/
sudo chmod +x /etc/pm/power.d/powersave

To run script manually:
./powersave true|false

Tested on Fedora 15, please review script and run it manually before putting
under /etc/pm/power.d/

About

Simple shell script to save laptop's battery when on battery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages