On Feb 23 12:41:20, h...@stare.cz wrote:
> On Feb 21 21:05:21, mark.kette...@xs4all.nl wrote:
> > > Date: Tue, 21 Feb 2023 20:12:46 +0100
> > > From: Jan Stary <h...@stare.cz>
> > > 
> > > This is current/arm64 on MacBook Air (dmesg below).
> > > The machine seems to be _losing_ battery charge even when on AC.
> > > I have been watching sysctl hw for a few minutes (also below):
> > > 
> > > hw.sensors.aplsmc0.amphour0=0.20 Ah (remaining battery capacity)
> > > hw.sensors.aplsmc0.amphour0=0.19 Ah (remaining battery capacity)
> > > hw.sensors.aplsmc0.amphour0=0.18 Ah (remaining battery capacity)
> > > hw.sensors.aplsmc0.amphour0=0.17 Ah (remaining battery capacity)
> > > 
> > > The machine is idle while this happens.
> > > That's with apm -A, which means hw.setperf=100 on AC.
> > > Only with apm -L does the battery charge start to increase:
> > > 
> > > hw.sensors.aplsmc0.amphour0=0.17 Ah (remaining battery capacity)
> > > hw.sensors.aplsmc0.amphour0=0.18 Ah (remaining battery capacity)
> > > hw.sensors.aplsmc0.amphour0=0.19 Ah (remaining battery capacity)
> > 
> > Never seen this happen on any of my machines.
> 
> Me neither.
> 
> > > It's not a HW problem: when running macOS on the machine
> > > (which, presumably, is able to utilize the M1 more effectively),
> > > the battery does charge on AC (while running a lot of Firefox tabs).
> > 
> > With the same power supply?
> 
> Yes.
> 
> I am trying now with three different power supplies,
> each of which is an adaptor with a USB-C cable.
> What I describe above happens with
> 
> a 10W, 5.1V, 2.1A adaptor
> a 12W, 5.2V, 2.4A adaptor
> 
> but it does not happen with
> 
> a 61W, 20.3V, 3A adaptor;
> the machine is charging while running current.
> 
> sysctl hw output for each of the three is below.
> Could it be just that? A stronger power supply?
> 
> > > hw.sensors.aplsmc0.volt0=11.04 VDC (battery)
> > > hw.sensors.aplsmc0.volt1=5.07 VDC (input)
> > 
> > This is strange.  The input voltage should definitely be higher under
> > normal circumstances.
> 
> For the three chargers:
> 
> hw.sensors.aplsmc0.volt1=4.88 VDC (input)
> hw.sensors.aplsmc0.volt1=5.10 VDC (input)
> hw.sensors.aplsmc0.volt1=20.07 VDC (input)
> 
> So yes, with this charger the input voltage is much higher,
> power and current as well.

> 10W:
> hw.sensors.aplsmc0.power0=7.05 W (input)
> hw.sensors.aplsmc0.power1=9.11 W (system)

> 12W:
> hw.sensors.aplsmc0.power0=7.39 W (input)
> hw.sensors.aplsmc0.power1=9.09 W (system)

> 61W:
> hw.sensors.aplsmc0.power0=40.21 W (input)
> hw.sensors.aplsmc0.power1=11.45 W (system)

Just for completeness: with apm -L,
even this phone charger is able to charge the machine.

$ apm
Battery state: high, 88% remaining, 788 minutes life estimate
AC adapter state: connected
Performance adjustment mode: auto (2988 MHz)

$ sysctl hw | fgrep .power
hw.sensors.aplsmc0.power0=7.10 W (input)
hw.sensors.aplsmc0.power1=10.17 W (system)
hw.power=1

$ apm -L
$ apm
Battery state: high, 88% remaining, 816 minutes life estimate
AC adapter state: connected
Performance adjustment mode: manual (600 MHz)

$ sysctl hw | fgrep .power
hw.sensors.aplsmc0.power0=7.11 W (input)
hw.sensors.aplsmc0.power1=4.85 W (system)
hw.power=1

        Jan

Reply via email to