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