Regarding post #30.
In the attachment you'll find my patch to upowerd (file to be patched is 
src/linux/up-device-supply.c). I applied the patch to upstream upowerd, 
recompiled, and disabled via apt updates to upowerd. 

Basically, this detects battery status basing on the AC adapter status
(if the status is not consistent, in the sense that the battery reports
discharging and the AC is plugged in, I set the status to UNKNOWN so
that the following code treat the status as discharging basing on AC
status, and so on).

Moreover, I had to enable polling for AC adapter (I don't know why
uevents are not reported nor how to enable them for AC status, I'm not a
kernel\low leven stuff expert..). The drawback of this is that status
changes are not recognized immediately, but at least are recognized...

** Patch added: "up-device-supply.diff"
   
https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+attachment/3396148/+files/up-device-supply.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to