Hmm.

Stop using apmd, and run

     systat sens 1

And watch to see what happens to the various sensors.

This will show you everything.

Nicola Dell'Uomo <[email protected]> wrote:

> Battery self test is okay and my laptop has just 1 year of life (X1 carbon 
> 8th gen).
> The problem replicated just now after a system reboot (I needed to reboot in 
> order to execute self diagnose), and my laptop don't restart if I don't plug 
> ac power in (a couple of seconds suffice: then battery resumes at its 
> previous value).
> Any advice on how to verify this is just my battery problem?
> Consider this laptop has just OpenBSD installed.
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> 
> Il mercoledì 3 novembre 2021 4:21 PM, Theo de Raadt <[email protected]> ha 
> scritto:
> 
> > It looks like your battery is failing.
> >
> > Nicola Dell'Uomo [email protected] wrote:
> >
> > > I've been experiencing odd power management behavior since some days: my 
> > > laptop goes to suspend and I didn't know why.
> > >
> > > Today I looked at /var/messages and I found this out:
> > >
> > > [snip]
> > >
> > > Nov 3 15:04:20 puffy apmd: system resumed from sleep
> > >
> > > Nov 3 15:04:20 puffy apmd: battery status: high. external power status: 
> > > not connected. estimated battery life 60% (294 minutes)
> > >
> > > Nov 3 15:04:25 puffy apmd: battery status: high. external power status: 
> > > not connected. estimated battery life 100%
> > >
> > > Nov 3 15:16:50 puffy apmd: battery status: high. external power status: 
> > > not connected. estimated battery life 56% (267 minutes)
> > >
> > > Nov 3 15:24:18 puffy apmd: battery status: CRITICAL. external power 
> > > status: not connected. estimated battery life 0%
> > >
> > > Nov 3 15:24:18 puffy apmd: estimated battery life 0% below configured 
> > > limit 10%
> > >
> > > Nov 3 15:24:18 puffy apmd: system suspending
> > >
> > > Nov 3 15:24:18 puffy apmd: battery status: CRITICAL. external power 
> > > status: not connected. estimated battery life 0%
> > >
> > > Nov 3 15:24:19 puffy apmd: battery status: high. external power status: 
> > > not connected. estimated battery life 100%
> > >
> > > Nov 3 15:24:20 puffy /bsd: video0 detached
> > >
> > > Nov 3 15:24:20 puffy /bsd: uvideo0 detached
> > >
> > > Nov 3 15:24:20 puffy /bsd: video1 detached
> > >
> > > Nov 3 15:24:20 puffy /bsd: uvideo1 detached
> > >
> > > Nov 3 15:24:20 puffy /bsd: ugen0 detached
> > >
> > > Nov 3 15:27:52 puffy syslogd[9001]: start
> > >
> > > [snip]
> > >
> > > The same happened just now (while I was writing) and I was able to exit 
> > > from suspend only by plugging the power cable in, closing the lid, and 
> > > opening it again.
> > >
> > > Is this the correct thread or do you want me to file a bug via sendbug to 
> > > [email protected]?
> > >
> > > I have apmd_flags= "-A -z 10" in my rc.conf.local

Reply via email to