[Bug 156078] New: Battery widget shows two batteries, laptop and mouse, but they look the same.
GerbilSoft
gerbilsoft at verizon.net
Fri Jan 18 07:36:37 CET 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=156078
Summary: Battery widget shows two batteries, laptop and mouse,
but they look the same.
Product: plasma
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: panel-devel kde org
ReportedBy: gerbilsoft verizon net
Version: (using KDE 4.0.0)
Installed from: Debian testing/unstable Packages
Compiler: gcc (GCC) 4.2.2 (Gentoo 4.2.2 p1.0)
OS: Linux
I have a ThinkPad T60p with one system battery. I also have a Logitech MX1000 wireless mouse. The battery widget was showing two batteries, one at 14% and one at 99%, and I was quite confused as to why it was showing a second battery at such a low charge. Using lshal I found the culprit, the MX1000.
Laptop battery:
udi = '/org/freedesktop/Hal/devices/acpi_BAT0'
battery.alarm.design = 3938 (0xf62) (int)
battery.alarm.unit = 'mWh' (string)
battery.charge_level.capacity_state = 'ok' (string)
battery.charge_level.current = 78020 (0x130c4) (int)
battery.charge_level.design = 84240 (0x14910) (int)
battery.charge_level.granularity_1 = 1 (0x1) (int)
battery.charge_level.granularity_2 = 1 (0x1) (int)
battery.charge_level.last_full = 78750 (0x1339e) (int)
battery.charge_level.low = 200 (0xc8) (int)
battery.charge_level.percentage = 99 (0x63) (int)
battery.charge_level.rate = 0 (0x0) (int)
battery.charge_level.unit = 'mWh' (string)
battery.charge_level.warning = 3937 (0xf61) (int)
battery.is_rechargeable = true (bool)
battery.model = '92P1133' (string)
battery.present = true (bool)
battery.rechargeable.is_charging = false (bool)
battery.rechargeable.is_discharging = false (bool)
battery.reporting.current = 78020 (0x130c4) (int)
battery.reporting.design = 84240 (0x14910) (int)
battery.reporting.granularity_1 = 1 (0x1) (int)
battery.reporting.granularity_2 = 1 (0x1) (int)
battery.reporting.last_full = 78750 (0x1339e) (int)
battery.reporting.low = 200 (0xc8) (int)
battery.reporting.rate = 0 (0x0) (int)
battery.reporting.technology = 'LION' (string)
battery.reporting.unit = 'mWh' (string)
battery.reporting.warning = 3937 (0xf61) (int)
battery.serial = '1436' (string)
battery.technology = 'lithium-ion' (string)
battery.type = 'primary' (string)
battery.vendor = 'Panasonic' (string)
battery.voltage.current = 12486 (0x30c6) (int)
battery.voltage.design = 10800 (0x2a30) (int)
battery.voltage.unit = 'mV' (string)
info.capabilities = {'battery'} (string list)
info.category = 'battery' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'Battery Bay' (string)
info.udi = '/org/freedesktop/Hal/devices/acpi_BAT0' (string)
linux.acpi_path = '/proc/acpi/battery/BAT0' (string)
linux.acpi_type = 0 (0x0) (int)
linux.hotplug_type = 4 (0x4) (int)
MX1000 battery:
udi = '/org/freedesktop/Hal/devices/usb_device_46d_c50e_noserial'
battery.charge_level.current = 1 (0x1) (int)
battery.charge_level.design = 7 (0x7) (int)
battery.charge_level.last_full = 7 (0x7) (int)
battery.charge_level.percentage = 14 (0xe) (int)
battery.command_interface = 'csr' (string)
battery.csr.has_res = false (bool)
battery.csr.has_sms = false (bool)
battery.csr.is_dual = false (bool)
battery.is_rechargeable = true (bool)
battery.present = true (bool)
battery.type = 'mouse' (string)
info.addons = {'hald-addon-usb-csr'} (string list)
info.bus = 'usb_device' (string)
info.capabilities = {'battery'} (string list)
info.category = 'battery' (string)
info.linux.driver = 'usb' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_5e3_608_noserial' (string)
info.product = 'MX1000 Laser Mouse' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c50e_noserial' (string)
info.vendor = 'Logitech, Inc.' (string)
linux.device_file = '/dev/bus/usb/005/016' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb5/5-1/5-1.3' (string)
usb_device.bus_number = 5 (0x5) (int)
usb_device.can_wake_up = true (bool)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 0 (0x0) (int)
usb_device.device_protocol = 0 (0x0) (int)
usb_device.device_revision_bcd = 9488 (0x2510) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = false (bool)
usb_device.linux.device_number = 16 (0x10) (int)
usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb5/5-1/5-1.3' (string)
usb_device.max_power = 70 (0x46) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.product = 'MX-1000 Cordless Mouse Receiver' (string)
usb_device.product_id = 50446 (0xc50e) (int)
usb_device.speed = 1.5 (1.5) (double)
usb_device.speed_bcd = 336 (0x150) (int)
usb_device.vendor = 'Logitech, Inc.' (string)
usb_device.vendor_id = 1133 (0x46d) (int)
usb_device.version = 1.1 (1.1) (double)
usb_device.version_bcd = 272 (0x110) (int)
Suggested fix: Either the MX1000 battery should be hidden from view, or it should have an emblem marking that it's a mouse battery. (Or make it an option.)
More information about the Panel-devel
mailing list