Bug 11679
Summary: | MSI Wind U100 - /sys/class/power_supply/ADP1/online always contains 1 | ||
---|---|---|---|
Product: | ACPI | Reporter: | Rafael J. Wysocki (rjw) |
Component: | EC | Assignee: | Alexey Starikovskiy (astarikovskiy) |
Status: | CLOSED DUPLICATE | ||
Severity: | normal | CC: | acpi-bugzilla, astarikovskiy |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.27-rc8 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
update sysfs state on every access
Output of acpidump debug ac notify propagation |
Description
Rafael J. Wysocki
2008-09-30 15:31:52 UTC
please provide acpidump output. Created attachment 18124 [details]
update sysfs state on every access
This should help, but it is definitely interesting why there is no notify.
Created attachment 18127 [details]
Output of acpidump
(In reply to comment #2) > This should help, but it is definitely interesting why there is no notify. I'll test it later today, but I'm not sure if it's going to help, unless the userland polls the sysfs attribute. Created attachment 18133 [details]
debug ac notify propagation
Rafael, please check with this patch,
there should be some more printouts for each AC state change.
With this applied I've got a single notification when the after unplugging the AC adapter. However, I haven't got any notification after replugging it (actually i tried to unplug/replug it several times in a row, but there only was one notification). The relevant lines in dmesg are: ACPI: EC: expect AC state update ACPI: received notify of state change The patch from http://bugzilla.kernel.org/show_bug.cgi?id=10724#c142 fixes the problem. Closing as a duplicate. *** This bug has been marked as a duplicate of bug 10724 *** |