summaryrefslogtreecommitdiffstats
path: root/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch
blob: 2b09620bb9a4cb663747ef40dfe041884ae64ffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- trinity-tdelibs-14.0.0~pre596+d6816283/tdecore/tdehardwaredevices.cpp.batterycharge	2013-07-07 11:55:57.000000000 +0200
+++ trinity-tdelibs-14.0.0~pre596+d6816283/tdecore/tdehardwaredevices.cpp	2013-07-08 20:21:00.196653825 +0200
@@ -4704,6 +4704,15 @@
 					if (nodename == "alarm") {
 						bdevice->internalSetAlarmEnergy(line.toDouble()/1000000.0);
 					}
+					if (nodename == "charge_full") {
+						bdevice->internalSetMaximumEnergy(line.toDouble()/1000000.0);
+					}
+					if (nodename == "charge_full_design") {
+						bdevice->internalSetMaximumDesignEnergy(line.toDouble()/1000000.0);
+					}
+					if (nodename == "charge_now") {
+						bdevice->internalSetEnergy(line.toDouble()/1000000.0);
+					}
 					if (nodename == "energy_full") {
 						bdevice->internalSetMaximumEnergy(line.toDouble()/1000000.0);
 					}