Hi Riccardo, On Fri, 18 Oct 2024 at 08:44, Riccardo Mottola <riccardo.mott...@libero.it> wrote: > > Hi Ed, > > Ed Robbins wrote: > > I believe that the apm_emu module is required for battery > > indicator/monitoring on certain powerbooks? > > > > It seems to be missing on latest kernels (6.3, 6.11). Can it be > > enabled for our config? > > > > Or, is there an alternative way to enable battery indicators? > > GNUstep battery monitor (batmon.app) supports directly the Apple PMU. > Didn't check if it is packaged on Debian though. > I didn't even know emulation of APM existed. > It has some minor shortcomings since it seems the kernel has some bogus > flags, I asked about this here in the mailing list a year ago and never > got an answer! So it can what I found though reverse engineering. > Well, the latest version of xfce4-battery-plugin supports neither APM nor upower nor the apple PMU in some more direct way. So fixing upower does not actually resolve my original problem directly either. But there is some other battery indicator in the xfce panel by default that does support upower, and the xfce power preferences also seems to support upower. So if upstream accept a patch for upower support this will be acceptable to me.
However if the apm_emu module would be useful for other desktop environments I can submit a patch to add it to the default debian powerpc kernel config as suggested by Adrian? It appears the GNUstep battery monitor does support APM. I submitted a kernel patch to fix upower support this morning [1]. Ed [1] https://lore.kernel.org/linux-pm/iofjls.120oj5kjg9...@googlemail.com/T/#u