g-p-m doesn't save charge and discharge profiles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power |
Fix Released
|
Medium
|
|||
gnome-power-manager (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bug Description
Binary package hint: gnome-power-manager
There is a question in https:/
All that seems to be common is:
Ubuntu 8.10 (8.04 worked OK)
g-p-m 2.24.0
Laptop Asus Eee PC 901
ACPI and everything else seems to be OK, g-p-m works ok in a session, but the moment the system is restarted, suspended/resumed or AC is plugged/unplugged, g-p-m will forget all the collected data points. The files in ~/.gnome2/
I have taken a peek inside the profile-
profile-
0, 0, 0
1, 0, 0
2, 0, 0
3, 0, 0
4, 0, 0
5, 0, 0
6, 0, 0
7, 0, 0
[...]
96, 0, 0
97, 0, 0
98, 0, 0
99, 0, 0
The discharging one is a bit weird profile-
0, 0, 0
0, 0, 0
0, 0, 0
0, 0, 0
0, 0, 0
0, 0, 0
0, 226, 0
0, 226, 0
0, 226, 0
0, 226, 0
0, 226, 0
0, 226, 0
[...]
0, 226, 0
0, 226, 0
0, 209, 17
0, 240, 17
0, 239, 17
0, 209, 17
0, 239, 17
0, 210, 16
0, 239, 17
0, 210, 17
0, 209, 16
0, 239, 17
0, 240, 18
0, 209, 16
[...]
0, 240, 14
0, 210, 11
0, 240, 15
0, 239, 16
0, 240, 18
0, 270, 18
0, 0, 0
both files have 100 lines, but something seems wrong, now I have switched to charging the files g-p-m is writing have changed :
profile-
0, 0, 0
0, 0, 0
0, 0, 0
0, 0, 0
0, 0, 0
0, 0, 0
0, 106, 0
0, 106, 0
0, 106, 0
0, 106, 0
0, 106, 0
0, 106, 0
[...]
0, 120, 14
0, 89, 14
0, 89, 13
0, 90, 8
0, 119, 10
0, 89, 6
0, 90, 6
0, 120, 10
0, 89, 9
0, 119, 7
0, 120, 17
0, 150, 17
0, 149, 18
0, 149, 17
0, 210, 17
0, 210, 18
0, 0, 0
0, 0, 0
0, 0, 0
0, 0, 0
0, 0, 0
profile-
0, 0, 0
1, 0, 0
2, 0, 0
3, 0, 0
4, 0, 0
5, 0, 0
6, 0, 0
7, 0, 0
8, 0, 0
9, 0, 0
10, 0, 0
11, 0, 0
[...]
94, 0, 0
95, 0, 0
96, 0, 0
97, 0, 0
98, 0, 0
99, 0, 0
So now they seem reversed. I think that the csv is wrong in profile-
I expected g-p-m to save save/discharge profiles as it did in 8.04 and what happened is that whenever a change in the energy status of the laptop happens g-p-m loses the collected data points.
The output of gnome-power-
Distro version: DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
Kernel version: 2.6.27-8-eeepc
g-p-m version: 2.24.0
HAL version: 0.5.11
System manufacturer: missing
System version: missing
System product: missing
AC adapter present: yes
Battery present: yes
Laptop panel present: yes
CPU scaling present: yes
Battery Information:
battery.
battery.
battery.
battery.
battery.
battery.
battery.model = '901' (string)
battery.present = true (bool)
battery.
battery.
battery.
battery.
battery.
battery.
battery.
battery.
battery.
battery.serial = '' (string)
battery.
battery.type = 'primary' (string)
battery.vendor = 'ASUS' (string)
battery.
battery.
battery.
GNOME Power Manager Process Information:
coma 8793 0.0 1.5 35584 16296 ? Ss Nov21 0:41 gnome-power-manager
coma 21116 0.3 1.3 30000 13924 ? S 18:11 0:34 gnome-power-
coma 28598 1.2 1.6 31512 17404 ? S 20:16 0:16 file-roller file://
HAL Process Information:
111 5338 0.0 0.2 6320 2636 ? Ss Nov21 0:30 /usr/sbin/hald
root 5342 0.0 0.1 3364 1112 ? S Nov21 0:00 \_ hald-runner
root 5424 0.0 0.1 3436 1028 ? S Nov21 0:00 \_ hald-addon-input: Listening on /dev/input/event3 /dev/input/event8 /dev/input/event6 /dev/input/event4 /dev/input/event5 /dev/input/event1 /dev/input/event7
root 5431 0.0 0.0 3448 988 ? S Nov21 0:00 \_ /usr/lib/
111 5432 0.0 0.0 2296 920 ? S Nov21 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/
Some events while running on battery:
$ lshal -m
Start monitoring devicelist:
-------
20:40:12.396: computer_
20:40:12.409: computer_
20:40:12.419: computer_
20:40:12.434: computer_
20:40:12.441: computer_
20:40:42.396: computer_
20:40:42.411: computer_
20:40:42.425: computer_
20:40:42.439: computer_
20:40:42.445: computer_
20:40:42.452: computer_
20:40:42.459: computer_
20:40:42.466: computer_
Some DBUS events (plugging AC cord):
$ dbus-monitor --session "type='
signal sender=
string ":1.223"
signal sender=:1.55 -> dest=(null destination) path=/org/
boolean false
signal sender=:1.55 -> dest=(null destination) path=/org/
boolean false
Changed in gnome-power: | |
status: | Unknown → Fix Released |
Changed in gnome-power: | |
importance: | Unknown → Medium |
It seems to me that since the battery does not provide a serial number, gpm uses 'battery. charge_ level.design' , i.e., its capacity as the battery identifier. However, at least on my Eee 901 it seems to change along with the battery charge level! Therefore gpm thinks that the battery has been changed.
It seems that the 'battery. reporting. design' is the correct identifier for the battery capacity on Eee 901.