Here's the output of "hal-device `hal-find-by-capability --capability battery`"...
udi = '/org/freedesktop/Hal/devices/usb_device_46d_c501_noserial' info.capabilities = { 'battery' } (string list) battery.command_interface = 'csr' (string) linux.subsystem = 'usb' (string) info.product = 'Mouse Receiver' (string) usb_device.device_revision_bcd = 2320 (0x910) (int) battery.csr.has_sms = false (bool) info.category = 'battery' (string) usb_device.product = 'USB Receiver' (string) battery.csr.is_dual = false (bool) usb_device.product_id = 50433 (0xc501) (int) usb_device.speed = 1.5 (double) usb_device.vendor = 'Logitech' (string) usb_device.can_wake_up = true (bool) usb_device.configuration_value = 1 (0x1) (int) usb_device.linux.device_number = 3 (0x3) (int) battery.charge_level.design = 7 (0x7) (int) battery.charge_level.current = 7 (0x7) (int) info.linux.driver = 'usb' (string) battery.is_rechargeable = true (bool) usb_device.device_class = 0 (0x0) (int) info.addons = { 'hald-addon-usb-csr' } (string list) info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1' (string) usb_device.bus_number = 2 (0x2) (int) battery.csr.has_res = false (bool) usb_device.device_protocol = 0 (0x0) (int) usb_device.is_self_powered = false (bool) info.subsystem = 'usb_device' (string) info.vendor = 'Logitech' (string) usb_device.version = 1.1 (double) usb_device.num_interfaces = 1 (0x1) (int) usb_device.vendor_id = 1133 (0x46d) (int) usb_device.speed_bcd = 336 (0x150) (int) usb_device.version_bcd = 272 (0x110) (int) battery.present = true (bool) info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c501_noserial' (string) usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1' (string) usb_device.num_configurations = 1 (0x1) (int) info.bus = 'usb_device' (string) battery.type = 'mouse' (string) linux.device_file = '/dev/2-1' (string) battery.charge_level.last_full = 7 (0x7) (int) battery.charge_level.percentage = 100 (0x64) (int) usb_device.num_ports = 0 (0x0) (int) usb_device.max_power = 50 (0x32) (int) linux.hotplug_type = 2 (0x2) (int) usb_device.device_subclass = 0 (0x0) (int) linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1' (string)
If I'm reading this right, this command is showing the 2 AA batteries in my cordless mouse!
I am also attaching the output of lshal
Rick
Here's the output of "hal-device `hal-find- by-capability --capability battery`"...
udi = '/org/freedeskt op/Hal/ devices/ usb_device_ 46d_c501_ noserial' command_ interface = 'csr' (string) device_ revision_ bcd = 2320 (0x910) (int) csr.has_ sms = false (bool) product = 'USB Receiver' (string) csr.is_ dual = false (bool) product_ id = 50433 (0xc501) (int) can_wake_ up = true (bool) configuration_ value = 1 (0x1) (int) linux.device_ number = 3 (0x3) (int) charge_ level.design = 7 (0x7) (int) charge_ level.current = 7 (0x7) (int) is_rechargeable = true (bool) device_ class = 0 (0x0) (int) usb-csr' } (string list) op/Hal/ devices/ usb_device_ 0_0_0000_ 00_1d_1' (string) bus_number = 2 (0x2) (int) csr.has_ res = false (bool) device_ protocol = 0 (0x0) (int) is_self_ powered = false (bool) version = 1.1 (double) num_interfaces = 1 (0x1) (int) vendor_ id = 1133 (0x46d) (int) speed_bcd = 336 (0x150) (int) version_ bcd = 272 (0x110) (int) op/Hal/ devices/ usb_device_ 46d_c501_ noserial' (string) linux.sysfs_ path = '/sys/devices/ pci0000: 00/0000: 00:1d.1/ usb2/2- 1' (string) num_configurati ons = 1 (0x1) (int) charge_ level.last_ full = 7 (0x7) (int) charge_ level.percentag e = 100 (0x64) (int) num_ports = 0 (0x0) (int) max_power = 50 (0x32) (int) hotplug_ type = 2 (0x2) (int) device_ subclass = 0 (0x0) (int) pci0000: 00/0000: 00:1d.1/ usb2/2- 1' (string)
info.capabilities = { 'battery' } (string list)
battery.
linux.subsystem = 'usb' (string)
info.product = 'Mouse Receiver' (string)
usb_device.
battery.
info.category = 'battery' (string)
usb_device.
battery.
usb_device.
usb_device.speed = 1.5 (double)
usb_device.vendor = 'Logitech' (string)
usb_device.
usb_device.
usb_device.
battery.
battery.
info.linux.driver = 'usb' (string)
battery.
usb_device.
info.addons = { 'hald-addon-
info.parent = '/org/freedeskt
usb_device.
battery.
usb_device.
usb_device.
info.subsystem = 'usb_device' (string)
info.vendor = 'Logitech' (string)
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
battery.present = true (bool)
info.udi = '/org/freedeskt
usb_device.
usb_device.
info.bus = 'usb_device' (string)
battery.type = 'mouse' (string)
linux.device_file = '/dev/2-1' (string)
battery.
battery.
usb_device.
usb_device.
linux.
usb_device.
linux.sysfs_path = '/sys/devices/
If I'm reading this right, this command is showing the 2 AA batteries in my cordless mouse!
I am also attaching the output of lshal
Rick