Re: How to check battery status from command line?
- From: "Dave" <daveandniki@xxxxxxxxxxxx>
- Date: Sun, 27 Aug 2006 15:06:05 +0200
"BJ" <bob.jones@xxxxxxxxxx> wrote in message
news:1156669160.562285.321010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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)
Why not look at the source for Battery Charge Monitor - and see where it is
getting its information from?
However, you may be looking for:
acpitool -B
at the command line.
.
- References:
- Prev by Date: Re: SuSE 10.0 boot problems with CPU changed
- Next by Date: Re: Linux is a PITA
- 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
|