[Pkg-utopia-maintainers] Bug#462723: hal does not give actual values of battery states with 2.6.24

Didier Raboud didier at raboud.com
Sun Jan 27 01:16:59 UTC 2008


Package: hal
Version: 0.5.10-5
Severity: important

--- Please enter the report below this line. ---
Hi, 

I think that hal is not reporting what it should about battery states (at 
least).

Testcase :
------------------------------------
$ date +%H:%M:%S && 
hal-get-property --udi /org/freedesktop/Hal/devices/computer_power_supply_0 --key 
battery.charge_level.percentage
02:06:11
25
didier at Tamino:~$ sudo /etc/init.d/hal restart
Restarting Hardware abstraction layer: hald.
didier at Tamino:~$ date +%H:%M:%S && 
hal-get-property --udi /org/freedesktop/Hal/devices/computer_power_supply_0 --key 
battery.charge_level.percentage
02:06:26
33
------------------------------------
So I won 8% of battery charging level in 15 seconds ! I can reproduce even 
better results by waiting more.

The thing that makes this bug important is that (at least) kpowersave is based 
on these results (current, percentage, rate, ...) and is the one responsible 
for getting my computer into suspend when the battery gets too low. It can't 
do that if it can't get accurate results...

Please ask if you need details.

Regards, 

Didier

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.24-1-amd64

Debian Release: lenny/sid
  700 testing         mirror.switch.ch 
  700 stable          mirror.switch.ch 
  600 unstable        mirror.switch.ch 
   50 unstable        mirror.switch.ch 
   50 unstable        debian.netcologne.de 
   50 testing         mirror.switch.ch 
   50 testing         debian.netcologne.de 
   50 stable          mirror.switch.ch 
   50 stable          debian.netcologne.de 
   50 kernel-dists-trunk kernel-archive.buildserver.net 
   50 kernel-dists-sid kernel-archive.buildserver.net 
   50 kernel-dists-etch kernel-archive.buildserver.net 
   50 experimental    mirror.switch.ch 
   50 experimental    debian.netcologne.de 

--- Package information. ---
Depends                  (Version) | Installed
==================================-+-==============
adduser                            | 3.105
dbus                     (>= 0.61) | 1.1.2-1
hal-info             (>= 20070402) | 20071212-2
libc6                   (>= 2.7-1) | 2.7-6
libdbus-1-3             (>= 1.1.1) | 1.1.2-1
libdbus-glib-1-2         (>= 0.74) | 0.74-1
libexpat1              (>= 1.95.8) | 1.95.8-4
libgcc1               (>= 1:4.2.1) | 1:4.3-20080116-1
libglib2.0-0           (>= 2.14.0) | 2.15.3-1
libhal-storage1                    | 0.5.10-5
libhal1                   (>= 0.5) | 0.5.10-5
libsmbios1                         | 0.13.10-1
libstdc++6              (>= 4.2.1) | 4.3-20080116-1
libusb-0.1-4         (>= 2:0.1.12) | 2:0.1.12-9
libvolume-id0           (>= 0.113) | 0.114-2
lsb-base                           | 3.1-24
mount                    (>= 2.13) | 2.13-8
pciutils                           | 1:2.2.4~pre4-1
pm-utils                           | 0.99.2-3
udev                    (>= 0.065) | 0.114-2
usbutils                           | 0.73-5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20080127/1fcf50ae/attachment.pgp 


More information about the Pkg-utopia-maintainers mailing list