[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ACPI battery monitor?



From: "Erich Schubert" <erich@debian.org>

> > Yup. I had the same problem. This crude patch
> > http://bugzilla.gnome.org/show_bug.cgi?id=88553
> > solved the problem for me.
>
> Looking at that patch their ACPI support is not more than an ugly
> hack... Hardcoding battery names is bad... as is hard-coding AC device
> names...
> My power supply is still called "AC"...
> And i think these names are not in the acpi source, but come from the
> ACPI table of the Bios - so they are hardware dependant.
>
> (And for sure not every machine uses BAT1 as battery, most might
> use BAT0 first...)
>
Absolutely true. The devices are named in the ACPI DSDT table, and _many_
power supplies are not named AC.  Batteries are a little more standard, but
you're right - my one and only battery is BAT0.

Erich also wrote:
> Doesn't work here: 2.0.3-1  Mouse moves only choppy.
> gkacpi didn't cause my mouse to move choppy, neither does
>   while true; do cat /proc/acpi/battery/BAT1/state; sleep 1; done
> but i can reproduce it when i do
>   while true; do cat /proc/acpi/battery/BAT1/info; sleep 1; done
>
iirc, .../state doesn't often contain enough information to truly monitor
the battery status



Reply to: