1. 28 Nov, 2011 1 commit
    • Jeremy Fitzhardinge's avatar
      HID: hid-input: add support for HID devices reporting Battery Strength · 4f5ca836
      Jeremy Fitzhardinge authored
      Some HID devices, such as my Bluetooth mouse, report their battery
      strength as an event.  Rather than passing it through as a strange
      absolute input event, this patch registers it with the power_supply
      subsystem as a battery, so that the device's Battery Strength can be
      reported to usermode.
      
      The battery appears in sysfs names
      /sys/class/power_supply/hid-<UNIQ>-battery, and it is a child of the
      battery-containing device, so it should be clear what it's the battery of.
      
      Unfortunately on my current Fedora 16 system, while the battery does
      appear in the UI, it is listed as a Laptop Battery with 0% charge (since
      it ignores the "capacity" property of the battery and instead computes
      it from the "energy*" fields, which we can't supply given the limited
      information contained within the HID Report).
      
      Still, this patch is the first step.
      Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      4f5ca836
  2. 23 Nov, 2011 2 commits
  3. 22 Nov, 2011 2 commits
  4. 20 Nov, 2011 1 commit
  5. 19 Nov, 2011 2 commits
  6. 16 Nov, 2011 3 commits
  7. 11 Nov, 2011 1 commit
  8. 03 Nov, 2011 4 commits
  9. 02 Nov, 2011 24 commits