battery not detected when managed by PMU (apple powerbook)

Giuseppe Sacco giuseppe at
Mon Jun 29 17:23:49 UTC 2020

Il giorno lun, 29/06/2020 alle 18.38 +0200, Bastien Nocera ha scritto:
> On Mon, 2020-06-29 at 16:06 +0200, Giuseppe Sacco wrote:
> <snip>
> > If I understood what you wrote, the pmu_battery driver registers the
> > device as of class "power_supply" calling the function
> > power_supply_register() as you may see at line 155 of 
> >
> > 
> > 
> > Still, upower cannot find it:
> > 
> > $ upower --enumerate
> > /org/freedesktop/UPower/devices/DisplayDevice
> Did you check that the driver was enabled correctly, that it showed up
> in sysfs, and could be found in udev?
> I hope you didn't quote "3.16.85" as your current kernel though, the
> driver's moved to:

Well, this is another problem I am facing. I installed debian linux and
it has been officially supported until a two versions ago, when kernel
3.16 was current. Now I upgraded the complete system to debian unstable
and I have latest upower and all packages but kernel. Kernel 5.7 is
installed but does not boot the machine. I am working on that as well.

In the meantime, I should stick with 3.16.56.

But you are right. Despite what I understood reading the kernel source,
the running pmu driver does not register as power_supply class, in fact
directory /sys/class/power_supply/ is empty. The only class it
registers is:

$ find /sys/class/ -name pmu

I don't know why it does not show up in the power_supply class.


More information about the devkit-devel mailing list