You are not logged in.

#1 2012-10-22 13:52:02

nexxx
Member
From: Wolfsberg
Registered: 2010-09-15
Posts: 22

[Script] Powersaving Daemon

I´ve created a small bash pseudo daemon. This daemon checks the ac status (AC/Battery) in a given time intervall and applies some tweaks.
The script must be started as root and runs in the background.

Configuration and options are coded in the script and can be changed easily.

Functions:
## Disable wake on lan
## Cap Eth0 to 100 MBit and save power
## Disable NVIDIA (requ. bbswitch Module) 0...Always enabled, 1...Disabled on Battery, 2...Always disabled
## Change "/ + /home" partition commit time
## Enable SATA Powersaving
## Enable Intel Wifi Powersaving
## Enable Intel Sound Powersaving
## Tweak kernel writebacktimes
## Enable USB Autosuspend
## Set brightness
## Disable watchdog
## Enable PCIE Powersave (Requires kerneloption in /etc/default/grub: pcie_aspm=force)

I am looking forward to get some feedback, including improvements, further powersaving tipps, etc.

http://dl.dropbox.com/u/18039229/Powers … wer_daemon

I got from about 2h to 4.5h with this script on my Dell XPS L502x with openbox. But don´t expect too much...most of the battery hours are from deactivating my external NVidia card.
But it should increase your batterylife quite a bit.

PS: Sorry for the first German text. I thought I was on the german archlinux webpage. smile

Last edited by nexxx (2012-10-22 15:29:31)

Offline

Board footer

Powered by FluxBB