Comment 12 for bug 994745

Revision history for this message
In , Bugzilla-b (bugzilla-b) wrote :

On my Sony Vaio VPCS11V9E, i'm affected of this bug too. As mentioned before i can get the status of the ac-adapter correctly from sysfs by reading
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC/online or
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC/uevent.

The uevent-file looks good, so i don't think the kernel is missing to export this events. Although upower -d shows me the following:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC
  power supply: yes
  updated: Thu Feb 7 09:45:39 2013 (723 seconds ago)
  has history: no
  has statistics: no
  line-power
    online: yes

The status isn't updated ever so the state of the ac-adapter is always the state it had on boot.
upower -m shows events for the Battery (charging/discharging) but not for the ac-adapter.
The workaround mentioned by Alexander Mezin doesn't work for me. /proc/acpi/ac_adapter/AC/state contains the correct state, but reading the file does not affect upower in any way.

I'm on ArchLinux using upower 0.9.19 with Kernel 3.7.6. If you need more information, just tell me.