[gpm] Remaining time, two batteries.



Hi

I just upgraded to Ubuntu Gutsy, and got the new Power Manager (2.20.0). First of all I think it has lots of improvements.

But I have problems with the remaining time calculations as I use two different batteries (one standard and one high capacity). My guessing is that the power manager has calibrated for the standard battery and is not aware of the change of battery.

With the high cap.-battery I now get indication of 15 mins left at 28% capacity. Even tho during the discharge of this battery I had about 2 mins for every %.

When checking with the gnome-power-bugreport.sh (end of mail) the report from the battery is:
battery.remaining_time = 2926  (0xb6e)  (int)
witch I guess is in seconds and therefore 49 mins. Wich corrolates with the graphs in the power-manager.

My request is simply to make the power manager to be aware of different batteries and calibrate for them individually.

Thanks,
Andreas Gustafsson

---

Distro version:       DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"
Kernel version:       2.6.22-14-generic
g-p-m version:        2.20.0
HAL version:          0.5.9.1
System manufacturer:  LG Electronics
System version:       Not Applicable
System product:       C1-A2MNV
AC adapter present:   yes
Battery present:      yes
Laptop panel present: yes
CPU scaling present:  yes
Battery Information:
 battery.charge_level.capacity_state = 'ok'  (string)
 battery.charge_level.current = 12885  (0x3255)  (int)
 battery.charge_level.design = 58500  (0xe484)  (int)
 battery.charge_level.granularity_1 = 1125  (0x465)  (int)
 battery.charge_level.granularity_2 = 1125  (0x465)  (int)
 battery.charge_level.last_full = 48892  (0xbefc)  (int)
 battery.charge_level.low = 0  (0x0)  (int)
 battery.charge_level.percentage = 26  (0x1a)  (int)
 battery.charge_level.rate = 15853  (0x3ded)  (int)
 battery.charge_level.unit = 'mWh'  (string)
 battery.charge_level.warning = 5040  (0x13b0)  (int)
 battery.is_rechargeable = true  (bool)
 battery.model = 'BAT1'  (string)
 battery.present = true  (bool)
 battery.rechargeable.is_charging = false  (bool)
 battery.rechargeable.is_discharging = true  (bool)
 battery.remaining_time = 2926  (0xb6e)  (int)
 battery.reporting.current = 1181  (0x49d)  (int)
 battery.reporting.design = 5200  (0x1450)  (int)
 battery.reporting.granularity_1 = 100  (0x64)  (int)
 battery.reporting.granularity_2 = 100  (0x64)  (int)
 battery.reporting.last_full = 4481  (0x1181)  (int)
 battery.reporting.low = 0  (0x0)  (int)
 battery.reporting.rate = 1453  (0x5ad)  (int)
 battery.reporting.technology = 'LION'  (string)
 battery.reporting.unit = 'mAh'  (string)
 battery.reporting.warning = 448  (0x1c0)  (int)
 battery.serial = '1234'  (string)
 battery.technology = 'lithium-ion'  (string)
 battery.type = 'primary'  (string)
 battery.vendor = 'LG'  (string)
 battery.voltage.current = 10911  (0x2a9f)  (int)
 battery.voltage.design = 11250  (0x2bf2)  (int)
 battery.voltage.unit = 'mV'  (string)
GNOME Power Manager Process Information:
olangu 5868 0.0 1.4 39096 14604 ? Ss 16:12 0:02 gnome-power-manager andreas 7480 0.0 1.2 37492 13020 ? Ss 16:30 0:00 gnome-power-manager
HAL Process Information:
106 5114 0.0 0.3 5624 3692 ? Ss 16:11 0:02 /usr/sbin/hald root 5115 0.0 0.0 3092 1032 ? S 16:11 0:00 \_ hald-runner 106 5183 0.0 0.0 2160 896 ? S 16:11 0:00 \_ hald-addon-keyboard: listening on /dev/input/event1 106 5184 0.0 0.0 2164 896 ? S 16:11 0:00 \_ hald-addon-keyboard: listening on /dev/input/event3 root 5186 0.0 0.1 3156 1112 ? S 16:11 0:00 \_ /usr/lib/hal/hald-addon-cpufreq 106 5187 0.0 0.0 2164 924 ? S 16:11 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket 106 5188 0.0 0.0 2160 892 ? S 16:11 0:00 \_ hald-addon-keyboard: listening on /dev/input/event4 106 5189 0.0 0.0 2164 896 ? S 16:11 0:00 \_ hald-addon-keyboard: listening on /dev/input/event5 106 5190 0.0 0.0 2160 892 ? S 16:11 0:00 \_ hald-addon-keyboard: listening on /dev/input/event6

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]