Re: How to check battery status from command line?
- From: "BJ" <bob.jones@xxxxxxxxxx>
- Date: 27 Aug 2006 01:59:20 -0700
Back in the day when APM was the norm, all you had to do to check the
battery status was to enter "apm" at the command prompt. What command
can be used to check battery status when APCI is in use?
My X11 battery status indicator (Battery Charge Monitor 2.14.0) is
pulling its information from somewhere. Where is that 'somewhere'? -BJ
Presumably somewhere in */proc* or */sys.* Why don't you look? ;-)
Yeah, I've seen data under /proc/acpi/battery/, but I would guess that
tools, such as the battery monitors under X, use a system call of some
sort rather than parsing through /proc/acpi/battery/. Not sure
though...
It is also possible that /lm_sensors/ detects your battery information, but
I can't confirm this. Your mileage may vary on this one.
Interesting. I found the lm_sensors home page at
http://www.lm-sensors.org/ and issued "sensors-detect" as root at the
command prompt, but I was told, "Sorry, no chips were detected."
So, I looked at "Battery Charge Monitor 2.14.0" on my X desktop to try
and find out where it is getting its information from. On the "About"
window it mentions, "HAL backend enabled." Are HAL and lm_sensors
similar/different?
Thanks!
--
With kind regards,
*Aragorn*
(registered GNU/Linux user #223157)
.
- Follow-Ups:
- Re: How to check battery status from command line?
- From: Dave
- Re: How to check battery status from command line?
- From: Aragorn
- Re: How to check battery status from command line?
- References:
- How to check battery status from command line?
- From: BJ
- Re: How to check battery status from command line?
- From: Aragorn
- How to check battery status from command line?
- Prev by Date: Re: Switching users in a bash script?
- Next by Date: Re: How to check battery status from command line?
- Previous by thread: Re: How to check battery status from command line?
- Next by thread: Re: How to check battery status from command line?
- Index(es):
Relevant Pages
|