Bug 269245 - [acpi] after charging to 100% battery starts to uncharge even if on AC
Summary: [acpi] after charging to 100% battery starts to uncharge even if on AC
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2023-01-30 12:48 UTC by Mikhail Pchelin
Modified: 2023-05-23 17:50 UTC (History)
2 users (show)

See Also:


Attachments
dmesg 13 (27.98 KB, text/plain)
2023-01-30 12:48 UTC, Mikhail Pchelin
no flags Details
dmesg 14 (27.93 KB, text/plain)
2023-01-30 12:49 UTC, Mikhail Pchelin
no flags Details
dt asl 13 (1.66 KB, text/plain)
2023-01-30 12:49 UTC, Mikhail Pchelin
no flags Details
dt asl 14 (65.36 KB, application/x-zip-compressed)
2023-01-30 12:50 UTC, Mikhail Pchelin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Pchelin freebsd_committer freebsd_triage 2023-01-30 12:48:35 UTC
Created attachment 239808 [details]
dmesg 13

I have a F+ laptop, which has strange behavior regarding battery: when it's being charged it charges to 100% and then battery light turns off and uncharging begins even if I don't remove the AC, this uncharging continues until 0% and laptop turns off, this behavior is not presented in -current - everything works there as expected, i tried to bisect the commit, but it seems we had a zfs update and when I try to find first bad commit kernel can't mount root zfs FS with error 45, if I use UFS, laptop simply won't run more than 5 minutes and hangs with some error messages regarding nvme0 and being unable to complete the i/o

acpidump -dt on 13 is interrupted with 'acpidump: DSDT is corrupt', on 14 this command runs fine
Comment 1 Mikhail Pchelin freebsd_committer freebsd_triage 2023-01-30 12:49:01 UTC
Created attachment 239809 [details]
dmesg 14
Comment 2 Mikhail Pchelin freebsd_committer freebsd_triage 2023-01-30 12:49:26 UTC
Created attachment 239810 [details]
dt asl 13
Comment 3 Mikhail Pchelin freebsd_committer freebsd_triage 2023-01-30 12:50:46 UTC
Created attachment 239811 [details]
dt asl 14

zipped because the file excesses 1000kb limit
Comment 4 Mikhail Pchelin freebsd_committer freebsd_triage 2023-01-30 13:55:03 UTC
(In reply to Mikhail Pchelin from comment #0)

It looks like we have same problem on -current too, but it takes a little bit to reproduce.
Comment 5 georg.lastname 2023-05-23 17:50:57 UTC
I noticed that the linux driver has some error handling for broken batteries.
So after you fully charge the battery, it switches from ac power to dc power and stays there forever?

Maybe it helps to inspect acpiconf -i 0, at 99% and 100%.

Maybe it will show bogus values..