The shell command we're playing with today is acpi. It's a simple program that gives you information about the battery and temperature of your laptop. Often you have desktop tools that can give you visual indications of this information. However, I'm not always using the desktop. So, it's nice to have a command line tool to see the information as well.
The parameters I find most useful are -V and -f. -V says give everything, all the information. There's not alot of information, so there's no danger of being flooded with a screenful of data. -f asks acpi to use farenheit when reporting the temperature reading. Omit it, if you prefer celsius.
Here's what it looks like when it's been plugged in:
$ acpi -V -f
Battery 1: charged, 99%
Thermal 1: ok, 150.8 degrees F
AC Adapter 1: on-line
And running off the battery:
$ acpi -V -f
Battery 1: discharging, 98%, 02:46:02 remaining
Thermal 1: ok, 140.0 degrees F
AC Adapter 1: off-line
Do you want to see more detailed information (e.g. present voltage from your battery) and other less useful information (e.g. Is the lid of your laptop open?)? You can find it by browsing under /proc/acpi.
No comments:
Post a Comment