[Pkg-utopia-maintainers] Bug#463878: considers a battery charge of 0 to be 100%
Joey Hess
joeyh at debian.org
Sun Feb 3 22:28:35 UTC 2008
Package: hal
Version: 0.5.10-5
Severity: serious
My battery is empty:
joey at kodama:/sys/class/power_supply/CMB1>cat charge_now
0
joey at kodama:/sys/class/power_supply/CMB1>cat charge_full
7800000
joey at kodama:/sys/class/power_supply/CMB1>cat charge_full_design
7800000
hal, perversely, thinks this indicates it is 100% charged:
battery.charge_level.current = 0 (0x0) (int)
battery.charge_level.last_full = 7800 (0x1e78) (int)
battery.charge_level.percentage = 100 (0x64) (int)
battery.charge_level.rate = 0 (0x0) (int)
battery.current = 275 (0x113) (int)
battery.present = true (bool)
battery.rechargeable.is_charging = true (bool)
battery.rechargeable.is_discharging = false (bool)
battery.reporting.current = 0 (0x0) (int)
battery.reporting.design = 7800 (0x1e78) (int)
battery.reporting.last_full = 7800 (0x1e78) (int)
battery.reporting.technology = 'Li-ion' (string)
battery.reporting.unit = 'mAh' (string)
battery.technology = 'lithium-ion' (string)
battery.type = 'primary' (string)
battery.vendor = 'Fujitsu' (string)
battery.voltage.current = 7016 (0x1b68) (int)
info.capabilities = {'battery'} (string list)
info.category = 'battery' (string)
hal seems to only do this once the battery reaches 0% full, or the charge_now
reaches 0. For other low charge levels like 1%, it's accurate-ish.
This does not seem to be the same as the other bugs like #462723.
Not sure though.
This causes data loss, because programs that watch for the battery to reach
0%, and put the machine to sleep, fail to do so, and the machine loses all
power and dies. (Just happened to me.) Since that probably only occurs under
unusual configutations, I'm only marking the bug serious, not grave.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages hal depends on:
ii adduser 3.105 add and remove users and groups
ii dbus 1.1.2-1 simple interprocess messaging syst
ii hal-info 20071212-2 Hardware Abstraction Layer - fdi f
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libdbus-1-3 1.1.2-1 simple interprocess messaging syst
ii libdbus-glib-1-2 0.74-1 simple interprocess messaging syst
ii libexpat1 1.95.8-4 XML parsing C library - runtime li
ii libgcc1 1:4.3-20080127-1 GCC support library
ii libglib2.0-0 2.14.5-2 The GLib library of C routines
ii libhal-storage1 0.5.10-5 Hardware Abstraction Layer - share
ii libhal1 0.5.10-5 Hardware Abstraction Layer - share
ii libsmbios1 0.13.10-1 Provide access to (SM)BIOS informa
ii libstdc++6 4.3-20080127-1 The GNU Standard C++ Library v3
ii libusb-0.1-4 2:0.1.12-9 userspace USB programming library
ii libvolume-id0 0.114-2 libvolume_id shared library
ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip
ii mount 2.13.1-1 Tools for mounting and manipulatin
ii pciutils 1:2.2.9-2 Linux PCI Utilities
ii pm-utils 0.99.2-3 utilities and scripts for power ma
ii udev 0.114-2 /dev/ and hotplug management daemo
ii usbutils 0.73-5 Linux USB utilities
Versions of packages hal recommends:
ii eject 2.1.5-6 ejects CDs and operates CD-Changer
ii libsmbios-bin 0.13.10-1 Provide access to (SM)BIOS informa
-- no debconf information
--
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20080203/b9895b30/attachment.pgp
More information about the Pkg-utopia-maintainers
mailing list