This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Battery state in powerdevil

Tags: None
(comma "," separated)
flavioxavier
Registered Member
Posts
1
Karma
0
OS

Battery state in powerdevil

Sat Nov 21, 2009 8:55 pm
Long time KDE user here, and loving KDE 4.

But I'm having a problem, that is accompany me since the first versions of 4.x.

The thing is that powerdevil, doesn't update when the battery status changes, from AC plugged and battery only (and vice versa), strangely it can detect when I remove the battery.

In a nutshell powerdevil reports the boot battery state till a poweroff


This is rather inconvenient when I boot unplugged and my battery is low, and then I connect the charger, it changes profiles when charging (for example, it changes to extreme powersave when the battery goes from 19% to 20%, witch doesn't make any sence)

The strange thing is that when I do cat /proc/acpi/battery/BAT1/state it returns the correct state.

With AC plugged:
Code: Select all
$ cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charging
present rate:            3790 mW
remaining capacity:      43540 mWh
present voltage:         3934 mV


With just battery:
Code: Select all
$ cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            3750 mW
remaining capacity:      43550 mWh
present voltage:         3932 mV



I'm using KDE 4.3 in arch Linux, and i can attest that this works in gnome, i tried.


So does any of you seen this behaviour, is there a way to fix'it?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Battery state in powerdevil

Sun Nov 22, 2009 8:20 am
This would seem to indicate a fault in HAL, as it is relied upon by Powerdevil. It is possible also that Powerdevil is not being informed by HAL of these changes when it is updated ( even though HAL reports the information ) which is worked around by GNOME by polling the data ( which is inefficient, and goes aganist the point of a power manager, since it wastes power )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]