Skip to content
  • 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