Most recent kernel where this bug did not occur: N/A Distribution: Gentoo Hardware Environment: MSI 510C Software Environment: Problem Description: No battery or ac event can be received from /proc/acpi/event. However their status are updated correctly in /proc/acpi/ac_adapter/ADP1/state and /proc/acpi/battery/BAT1/state. Steps to reproduce:
Below is simple /proc/acpi/battery/BAT1/state and /proc/acpi/ac_adapter/ADP1/state outputs: /proc/acpi/battery/BAT1/state present: yes capacity state: ok charging state: discharging present rate: 1105 mA remaining capacity: 1516 mAh present voltage: 14831 mV /proc/acpi/ac_adapter/ADP1/state state: off-line and after plugging AC adapter: /proc/acpi/battery/BAT1/state present: yes capacity state: ok charging state: charging present rate: 2582 mA remaining capacity: 1478 mAh present voltage: 15538 mV /proc/acpi/battery/BAT1/state state: on-line
Created attachment 6219 [details] dmesg output after boot with ec_burst=0
Created attachment 6220 [details] some acpi debug after plugging ac adapter
Created attachment 6221 [details] dsdt
is this a regression, or have older kernels behaved the same way?
I think the problem is in dsdt. It notifies ac adapter events as 0x00 not 0x80. Also battery notification value is different from the kernel code drivers/acpi/battery.c.
Created attachment 6748 [details] Bus/device events are added to ac./battery notification. Please try this patch, send the results of ac/battery plugging/unplugging and dmesg output.
*** This bug has been marked as a duplicate of 3241 ***