Comment 36 for bug 213128

Revision history for this message
ex-oficio (wilkinson-luke) wrote : Re: [Bug 213128] Re: [Master] hal/acpi incorrectly reports AC adapter state

g3mu,

I'm happy to report your suggested hack works for me, many thanks. i
wouldn't have thought of that as it required a bit more insight into the
system than i have!

did you post it on the bug page?

much appreciated, thanks again,

L Wilkinson

On Mon, 2009-08-10 at 05:40 +0000, Gemu wrote:
> hi
>
> I have a little hack for this problem
>
> cat /proc/acpi/ac_adapter/ACAD/state
>
> this command to force update the status of AC_Adapter correctly, this
> will be used for the hack.
>
> sudo vim /etc/acpi/events/battery_event
> (copy/paste)
> event=battery.*
> action=cat /proc/acpi/ac_adapter/AC/state > /dev/null
>
> then restarting the daemon acpid or reboot.
> service acpid restart
>
> now plugged in/out should work out correctly.
>