Bug 215155

Summary: Fujitsu Lifebook A3510 - battery absent, AC status changes not reported
Product: ACPI Reporter: Malstrond (malstrond)
Component: Power-BatteryAssignee: Zhang Rui (rui.zhang)
Status: CLOSED INVALID    
Severity: normal CC: rui.zhang
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.15.5 Subsystem:
Regression: No Bisected commit-id:
Attachments: ACPI dump
dmesg
Custom dsdt to enable battery and dump AC status

Description Malstrond 2021-11-27 22:46:13 UTC
Created attachment 299751 [details]
ACPI dump

On a Fujitsu Lifebook A3510, the battery always reports as absent: "ACPI: battery: Slot [BAT1] (battery absent)"
The problem remains even when running on battery power.

Also, the AC adapter status doesn't get updated.
/sys/class/power_supply/ACAD/online always says 1, even if unplugging the AC adapter.
There are no other entries in /sys/class/power_supply.

I will attach an ACPI dump and a dmesg log.
Comment 1 Malstrond 2021-11-27 22:46:48 UTC
Created attachment 299753 [details]
dmesg
Comment 2 Malstrond 2022-01-10 20:12:47 UTC
Ubuntu bug for the same issue: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1956177
Comment 3 Zhang Rui 2022-06-24 01:39:27 UTC
Created attachment 301265 [details]
Custom dsdt to enable battery and dump AC status

Please try to override the dsdt with the one I attached, and boot with acpi.aml_debug_output=1, and
1. check if the problems are gone
2. attach the dmesg output with AC online and offline
Comment 4 Zhang Rui 2022-06-24 01:43:53 UTC
You can refer to this page to override the dsdt
https://wiki.archlinux.org/title/DSDT#Using_modified_code
Comment 5 Malstrond 2022-06-24 07:50:43 UTC
Can you give me the compiled .aml file?

What I already tried myself is the workaround from post 31 on the Ubuntu bugtracker ( https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1956177/comments/31 ), the one with "OperationRegion (ERAM, EmbeddedControl, Zero, 0x0100)".
That fixes the issue for me.
Comment 6 Zhang Rui 2022-07-08 07:04:47 UTC
Then this is a firmware bug.
The AML code declares the EC operation region as memory operation region.

There is nothing we can do with this issue.
You can just follow the BKMs there.