HAL

Comment 0 for bug 120549

Revision history for this message
In , Anders Kaseorg (andersk) wrote :

I'm using HAL 0.5.6-1ubuntu3 (on Ubuntu Dapper), and I have a Logitech MX-1000
cordless mouse that reports battery information. When I first plug it in, I see
this in hal-device-manager:

battery.charge_level.design: 7
battery.charge_level.last_full: 7
battery.command_interface: csr
battery.csr.has_res: false
battery.csr.has_sms: false
battery.csr.is_dual: false
battery.is_rechargeable: true
battery.present: true
battery.type: mouse

However, only 30 seconds later do I actually get the current level:

battery.charge_level.current: 5
battery.charge_level.percentage: 71

This is confusing gnome-power-manager into thinking that its level is always 0%
unless I start g-p-m at least 30 seconds after plugging in the mouse. (Before
<http://bugzilla.gnome.org/show_bug.cgi?id=330156> was fixed, this made g-p-m
shut down my computer because of the "critical" battery level!)