You are not logged in.

#1 2012-07-27 02:57:21

Pancake_Palace
Member
Registered: 2012-07-27
Posts: 21

[Solved?] No adapter status changes, or battery readings, in DEs

Update: by some magic, probably a relevant package upgrade, it began to work as it should as of my last login.

I have a Thinkpad R60. Battery meters for XFCE, KDE, and Gnome show the battery at 100%, with the AC adapter plugged in, regardless of whether it is plugged in or not, and even when the computer is beeping and blinking to warn that the battery is nearly exhausted.

cat /sys/class/power_supply/AC/online

returns the correct status for the AC adapter.

Last edited by Pancake_Palace (2012-07-31 06:55:29)

Offline

#2 2012-07-27 03:25:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,676

Re: [Solved?] No adapter status changes, or battery readings, in DEs

Pancake_Palace wrote:

I have a Thinkpad R60. Battery meters for XFCE, KDE, and Gnome show the battery at 100%, with the AC adapter plugged in, regardless of whether it is plugged in or not.

I am having a hard time parsing that.
I assume you mean with the AC adapter plugged [into the computer], regardless of whether it is plugged in [to the mains] or not

And that cat /sys/class/power_supply/AC/online returns a 0 under the conditions I stated.

If you connect it to the mains, the 0 changes to a 1, correct?

Last edited by ewaller (2012-07-27 03:26:06)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2012-07-28 02:04:58

Pancake_Palace
Member
Registered: 2012-07-27
Posts: 21

Re: [Solved?] No adapter status changes, or battery readings, in DEs

No, I mean that if I unplug the AC adappter from the computer, the computer itself, independently of the OS, acts like it should, beeping and dimming, and then much later, warning that the battery is getting too low. The battery meter applets, however, never notice that it has been unplugged, nor do they update the charge status. As far as they are concerned, it it is still plugged in, with a full battery.

Being able to get the changed value from cat /sys/class/power_supply/AC/online, clearly, the event is being seen by the OS, but not by whatever the DE meters use, which also seems to make AC/batt settings made in them ineffective.

Also, I now have seen that if I boot up with a discharged battery, they will state the charge and time needed to complete charging. If I start up with no AC adapter plugged in, I get the expexted opposite behavior from in the OP: thye think it is running on battery, even after being plugged in.

Offline

Board footer

Powered by FluxBB