Battery monitor on PPC
Christoph Borsbach
borsilinux at gmx.net
Wed Feb 2 09:48:31 CET 2005
Hi James, hi list,
James Tappin schrieb:
> The battery plugin doesn't work on PPC machines. I posted this to the user
> list a few days back to see if any one knew anything about it, and getting
> no replies did a bit of further nosing around.
The Plugin works fine here on a Powerbook. I don't remeber doing
anything special for it to work.
> It appears that Macs (and other similar architectures) don't use either
> APM or ACPI, but a protocol called PMU. The battery information is
> contained in /proc/pmu/battery_0 (and potentially battery_1), and the
> definitions are in /usr/include/linux/pmu.h (which is present on x86
> architectures as well).
AFAIK Apple machines use APM - or at least some sort of emulation.
>
> Typical state files are:
> 1) On Mains power
> james at ephiny:~$ cat /proc/pmu/battery_0
>
> flags : 00000013
> charge : 4400
> max_charge : 4400
> current : 223
> voltage : 12615
> time rem. : 0
>
> 2) On battery power
> james at ephiny:~$ cat /proc/pmu/battery_0
>
> flags : 00000011
> charge : 4400
> max_charge : 4400
> current : -1048
> voltage : 12419
> time rem. : 15114
>
> Is this enough information to add PMU support to the plugin and if not
> what else is needed?
I don't have my 'book at hand right now to have a look, but i think you
need to enable a kernel option for that.
>
> Best regards,
> James
Good luck,
Chris
More information about the Xfce4-dev
mailing list