https://bugzilla.kernel.org/show_bug.cgi?id=222304
Bug ID: 222304
Summary: ACPI: battery: BAT0 status flaps between Discharging
and Full/Not charging while unplugged on ASUS Vivobook
18 M1807HA
Product: ACPI
Version: 2.5
Hardware: AMD
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Power-Battery
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Hardware: ASUS Vivobook 18 M1807HA (DMI product_name: "ASUS Vivobook 18
M1807HA_M1807HA")
BIOS / EC: M1807HA.323 (03/27/2026), EC 3.22 (also occurred on BIOS 318)
Kernel: 7.3.4-arch1-2 (x86_64, Arch Linux)
Problem:
While running on battery with AC physically unplugged (ADP0/online == 0 and
both ucsi-source-psy-USBC000:00{1,2}/online == 0),
/sys/class/power_supply/BAT0/status
flaps roughly every 1-2 seconds between "Discharging" and either "Full" (at
100%
charge) or "Not charging" (below 100% charge), while current_now continuously
reports ~620-1160 mA draw.
No kernel/udev power_supply events are emitted during this flapping, so UPower
polls BAT0 every ~30s and randomly switches between discharging and
fully-charged, causing desktop power indicators to flash plugged-in/charged
every 30-120s while unplugged.
The same behavior has been reported on sibling ASUS Vivobook models such as
the Vivobook 16 M1607KA (users have been working around it with an out-of-tree
kretprobe module hooking acpi_battery_get_property:
https://github.com/jakeayy/asus-bat-fix).
DSDT excerpt (\_SB_.PCI0.SBRG.BAT0._BST):
Method (_BST, 0, NotSerialized)
{
If (ECOK)
{
Acquire (MUEX, 0xFFFF)
Local0 = (^^EC0.CFB1 << One)
Local0 |= ^^EC0.DFB1
If ((^^EC0.ECA4 < 0x0F))
{
Local0 |= 0x04
}
If ((^^EC0.BH30 == 0x50))
{
Local0 |= 0x08
}
BST1 [Zero] = Local0
...
The EC (IT55xx at 0xFE700600) intermittently clears DFB1 (offset 0x43 bit 0)
to 0 while discharging, so _BST returns state == 0 while rate_now > 0 and AC
is offline.
Reproducer / observed sysfs output (unplugged, ADP0=0 throughout):
1) At 100% charge (1s interval, concurrent udevadm monitor saw 0 events):
07:57:38 | ADP0=0 | status=Discharging cap=100 lvl=Normal chg_now=3974000
cur=948000 volt=16814000
07:57:39 | ADP0=0 | status=Full cap=100 lvl=Full chg_now=3974000
cur=891000 volt=16846000
07:57:40 | ADP0=0 | status=Discharging cap=100 lvl=Normal chg_now=3974000
cur=891000 volt=16827000
07:57:42 | ADP0=0 | status=Full cap=100 lvl=Full chg_now=3974000
cur=796000 volt=16831000
07:57:43 | ADP0=0 | status=Discharging cap=100 lvl=Normal chg_now=3974000
cur=795000 volt=16708000
07:57:44 | ADP0=0 | status=Full cap=100 lvl=Full chg_now=3974000
cur=795000 volt=16758000
2) At 99% charge (0.5s interval, still unplugged):
08:10:19 | ADP0=0 | status=Not charging cap=99 cur=765000 volt=16605000
08:10:20 | ADP0=0 | status=Not charging cap=99 cur=727000 volt=16615000
I noticed acpi_battery_get_property() already uses
power_supply_is_system_supplied() for the inverse case (DISCHARGING with
rate_now == 0 on AC). Would a similar check when state == 0 and rate_now > 0
(either generic or behind a DMI quirk) make sense here? Happy to attach the
full DSDT or test a patch on this laptop.
--
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