My patch is completely wrong, rate is uninitialized there. Instead of rate we can check for ac powered. Sorry
--- powermanage.py 2007-04-10 19:28:13.000000000 +0200 +++ /usr/share/python-support/kde-guidance/powermanage.py 2007-04-10 19:28:30.000000000 +0200 @@ -184,7 +184,7 @@ if properties["battery.rechargeable.is_charging"]: state = "charging" elif properties["battery.rechargeable.is_discharging"]: - if rate: + if self.onBattery(): state = "discharging" else: state = "charged"
My patch is completely wrong, rate is uninitialized there. Instead of rate we can check for ac powered.
Sorry
--- powermanage.py 2007-04-10 19:28:13.000000000 +0200 python- support/ kde-guidance/ powermanage. py 2007-04-10 19:28:30.000000000 +0200 "battery. rechargeable. is_charging" ]:
state = "charging" "battery. rechargeable. is_discharging" ]:
state = "discharging"
else:
state = "charged"
+++ /usr/share/
@@ -184,7 +184,7 @@
if properties[
elif properties[
- if rate:
+ if self.onBattery():