You are not logged in.
Hello guys,
I'd like to set the brightness on my machine depending on the usage of battery.
If the battery is available it should be set to 100%, if not then to the minimum to save battery life.
I thought about something like that but as I currently have no battery available I can't test it.
In /etc/rc.local
if acpi -a | grep off-line 2> /dev/null; then
xbacklight -set 0
else
xbacklight -set 100
fi
What do you think?
Last edited by orschiro (2010-03-22 07:03:47)
Offline
You probably want laptop-mode. It can do this and much more.
Offline