On a HP Compaq nc6120 laptop, the battery plugin does not see the ac_adapter status. It will always report AC connected. Similar issue for thermal_zone. Attached patch fixes the problem for me (and I hope it is a general solution). Reproducible: Always Steps to Reproduce: 1. Start battery panel plugin 2. Plug / unplug AC adapter Actual Results: "AC" is always shown. Expected Results: "AC" should only be shown if on AC power.
Created attachment 448 Proposed patch for libacpi.c
Similar patch was already applied in trunk, Please reopen if it appears again in 0.4.90.2.
(In reply to comment #2) > Similar patch was already applied in trunk, Please reopen if it appears again > in 0.4.90.2. I can confirm that this bug is fixed in 0.5.0.