Comment 8 for bug 220324

Revision history for this message
RickKnight (rick-knight) wrote :

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