Reading Battery Status on ZeroShell

If you run ZeroShell on a laptop and want to read battery status the following command reveals a lot of battery data:

grep ” /sys/class/power_supply/BAT1/*

or this file contains most of the above information in a single file…

cat /sys/class/power_supply/BAT1/uevent

Similarly you can tell some information about the power coming into the laptop with this file..

/sys/class/power_supply/ACAD

I expect you could make your own alerting scripts to add to the alerting module to tell you if the laptop has lost mains power or is running low on battery etc.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Comment on this topic

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s