1. 09 May, 2019 3 commits
  2. 07 May, 2019 6 commits
    • Bastien Nocera's avatar
      rules: Split off HID++ rules · fb10b80d
      Bastien Nocera authored
      They should probably have been split off from the start.
      fb10b80d
    • Bastien Nocera's avatar
      linux: Add test for Logitech unknown device races · 8ead0523
      Bastien Nocera authored
      Check that external devices which show up as "battery" types have their
      capacity_level correctly read, and that the device's type will be
      correctly read after an input node is attached.
      8ead0523
    • Bastien Nocera's avatar
      linux: Start polling for unknown device batteries too · 71efbf00
      Bastien Nocera authored
      This check is supposed to start a poll for 1) batteries embedded in
      external devices 2) batteries when battery polling is not disabled.
      
      Make sure to start the poll for all batteries embedded in devices even
      the ones that are just detected as "battery".
      71efbf00
    • Bastien Nocera's avatar
      linux: Retry to get a battery type if it's unknown · 61028d84
      Bastien Nocera authored
      On some devices the power_supply node will show up before a related node
      such as "input", making it impossible to know which type of device we're
      attached to without waiting. Try to detect the device type again if the
      device type is still "battery".
      
      This fixes some Logitech devices appearing as "Battery" instead of their
      respective device type, such as "mouse".
      61028d84
    • Bastien Nocera's avatar
      linux: Don't treat device batteries like laptop batteries · 057238a0
      Bastien Nocera authored
      Use the correct refresh function for device batteries which aren't of a
      known type. This fixes battery information not getting updated on many
      Logitech wireless devices.
      
      Reproducer:
      - Unplug Logitech receiver
      - Replug Logitech receiver
      - Press button on Logitech keyboard
      - Move mouse/touchpad
      
      The touchpad battery would be stuck in "unknown" and with a "type" of
      battery. This commit forces the correct refresh function to be used, one
      that reads the capacity_level on those devices, and will update the
      overall battery level.
      
      Closes: #72
      057238a0
    • Bastien Nocera's avatar
      docs: Mention that not all batteries are laptop batteries · c7104a19
      Bastien Nocera authored
      They might be device batteries where the device type is not known or
      catalogued.
      c7104a19
  3. 05 Apr, 2019 1 commit
  4. 24 Feb, 2019 2 commits
  5. 21 Feb, 2019 2 commits
    • Christian Kellner's avatar
      Replace use of G_TYPE_INSTANCE_GET_PRIVATE · 9b7ce3de
      Christian Kellner authored
      G_TYPE_INSTANCE_GET_PRIVATE has been deprecated since glib version
      2.58 and should be replaced with the xxx_get_instance_private (obj)
      which is generated by G_ADD_PRIVATE.
      9b7ce3de
    • Christian Kellner's avatar
      Replace use of deprecated g_type_class_add_private · 8da188b3
      Christian Kellner authored
      Use G_DEFINE_TYPE_WITH_CODE (..., G_PRIVATE_ADD (...)) instead of
      the (deprecated since glib 2.58) function g_type_class_add_private
      to add a private structure for a type.
      Bump the minimal required version of glib to 2.38.0, the version
      where G_PRIVATE_ADD was added.
      8da188b3
  6. 20 Feb, 2019 2 commits
  7. 19 Dec, 2018 3 commits
  8. 14 Nov, 2018 4 commits
  9. 25 Oct, 2018 5 commits
  10. 02 Oct, 2018 7 commits
  11. 30 Sep, 2018 4 commits
  12. 22 Aug, 2018 1 commit