January 03, 2011

Power notifications on a laptop (quick and simple)

First you would need to install packages appropriate for your distribution providing "acpitool", then you could use watch to get updated information on the battery at fixed intervals, for example to update the information every one second you could run the following on a terminal :

watch -n 1 "acpitool | grep charging"