Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Giuseppe Sacco
Hello Simon, Il giorno lun, 29/06/2020 alle 19.19 +0100, Simon McVittie ha scritto: > On Mon, 29 Jun 2020 at 19:23:49 +0200, Giuseppe Sacco wrote: > > 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

Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Simon McVittie
On Mon, 29 Jun 2020 at 19:23:49 +0200, Giuseppe Sacco wrote: > 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. To be clear about this: neither of the currently-supported Debian rele

Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Giuseppe Sacco
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: > > > > 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

Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Bastien Nocera
On Mon, 2020-06-29 at 16:06 +0200, Giuseppe Sacco wrote: > > 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 > https://git.kernel.org/pub/scm/linux/kernel/git/sta

Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Giuseppe Sacco
Hello Bastien, Il giorno lun, 29/06/2020 alle 15.01 +0200, Bastien Nocera ha scritto: > On Mon, 2020-06-29 at 14:58 +0200, Giuseppe Sacco wrote: > > Il giorno lun, 29/06/2020 alle 13.06 +0200, Bastien Nocera ha > > scritto: > > > On Mon, 2020-06-29 at 12:00 +0100, Richard Hughes wrote: > > > > On

Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Bastien Nocera
On Mon, 2020-06-29 at 14:58 +0200, Giuseppe Sacco wrote: > Il giorno lun, 29/06/2020 alle 13.06 +0200, Bastien Nocera ha > scritto: > > On Mon, 2020-06-29 at 12:00 +0100, Richard Hughes wrote: > > > On Mon, 29 Jun 2020 at 02:54, Giuseppe Sacco > > > wrote: > > > > Browsing UPower source code I not

Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Giuseppe Sacco
Il giorno lun, 29/06/2020 alle 13.06 +0200, Bastien Nocera ha scritto: > On Mon, 2020-06-29 at 12:00 +0100, Richard Hughes wrote: > > On Mon, 29 Jun 2020 at 02:54, Giuseppe Sacco > > wrote: > > > Browsing UPower source code I noticed that PMU device is not > > > managed at > > > all, at least on t

Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Bastien Nocera
On Mon, 2020-06-29 at 12:00 +0100, Richard Hughes wrote: > On Mon, 29 Jun 2020 at 02:54, Giuseppe Sacco > wrote: > > Browsing UPower source code I noticed that PMU device is not > > managed at > > all, at least on the Linux branch. > > If it helps, HAL used to have code to read from PMU devices.

Re: battery not detected when managed by PMU (apple powerbook)

2020-06-29 Thread Richard Hughes
On Mon, 29 Jun 2020 at 02:54, Giuseppe Sacco wrote: > Browsing UPower source code I noticed that PMU device is not managed at > all, at least on the Linux branch. If it helps, HAL used to have code to read from PMU devices. I don't think it got ported all those years ago to DeviceKit-power, the o