Comment 11 for bug 994745

Revision history for this message
In , Alexander Mezin (mezin-alexander) wrote :

I have HP Pavilion dv6-6179er and it seems that I'm affected by this bug too.
However, I found a workaround:
I rebuilt kernel with ACPI_PROCFS_POWER=y ("Deprecated power /proc/acpi directories") and noticed that if I do "cat /proc/acpi/ac_adapter/AC/state" then state of the adapter becomes correct in kde, upower's output, etc.

I added a file to /etc/acpi/events/ with following contents:
event=battery
action=cat /proc/acpi/ac_adapter/AC/state > /dev/null

After restarting acpid everything works. The only problem is that ACPI_PROCFS_POWER is deprecated. I hope this bug will be fixed before
the option will be removed.