https://bugzilla.kernel.org/show_bug.cgi?id=202307
Bug ID: 202307
Summary: Battery charge reported incorrectly
Product: ACPI
Version: 2.5
Kernel Version: 4.17.11 and later
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Power-Battery
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Created attachment 280541
--> https://bugzilla.kernel.org/attachment.cgi?id=280541&action=edit
Sensibly formatted bug report
Battery charge is reported by running
cat /sys/class/power_supply/BAT0/charge_*
On my eee1001p, it is reported correctly by kernel 4.15.0 and earlier
and incorrectly by kernel 4.17.11
For example kernel 4.9.0 with the current battery state reports
charge_full 1765000 charge_now 1514000 charge_full_design 2150000
and kernel 4.19.0 whatever the battery state reports
charge_full and charge_now 4200000 charge_full_design 4300000
This incorrect information is reported no matter whether the kernel is 32bit or
64bit and on several different Linux distributions (Debian testing, Arch,
Manjaro 18).
This may be related to changes made in drivers/acpi/battery.c between kernel
4.16.18 (last of 4.16 series) and 4.17-rc1
Certainly an added line in 4.17-rc1
battery->capacity_now = battery->full_charge_capacity
corresponds to to the same number being reported for charge_full and charge_now
The eee1001p has been updated to ACPI BIOS revision 1202 (don't know if that is
relevant).
The preview suggests that the layout of this report will be destroyed, so I
attach a plain text version
Best regards
John
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla