1. 04 May, 2016 2 commits
  2. 29 Apr, 2016 1 commit
    • spiiroin's avatar
      [dbus] Handle missing mode setting gracefully. Fixes MER#1576 · 1aadb958
      spiiroin authored
      If usb mode setting is not present in usb-moded.ini and override is not
      specified in kernel command line, get_mode_setting() will return null.
      The handler for "get_config" D-Bus method call does not check the return
      value and using the null value triggers abort from sanity checks at
      libdbus. Attempting to pass NULL as string via D-Bus causes abort.
      
      Use MODE_UNDEFINED as fallback in case the setting value is not defined.
      
      Also remove potential memory leaks in the code used for determining the
      mode setting value and use correct function for releasing the resulting
      dynamically allocated string.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      1aadb958
  3. 27 Apr, 2016 2 commits
  4. 26 Apr, 2016 3 commits
    • spiiroin's avatar
      [systemd] Allow passing optional adaptation args for usb-moded. JB#34547 · e92c69c9
      spiiroin authored
      Systemd environment files can't be used to accumulate values and the
      existing $USB_MODED_ARGS is already used for the purposes of optional
      rescue mode.
      
      Use separate $USB_MODED_HW_ADAPTATION_ARGS to allow passing hw adaptation
      specific command line options to usb-moded.
      
      Additionally remove the '-a' argument from default command line parameters
      as it can now be handled in adaptation config only for those devices that
      actually need it.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      e92c69c9
    • spiiroin's avatar
      [udev] Suspend proof event reading and processing. Fixes JB#34440 · c982d3b4
      spiiroin authored
      Depending on kernel side usb drivers and charging logic, it is possible
      that device suspends immediately after reporting usb connect / disconnect
      while display is off and autosuspend enabled. That can delay the actions
      that should be made on usb connection state changes.
      
      Acquire a wakelock for the duration of udev event input processing.
      
      Hold a wakelock for a while when usb connection state changes occur.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      c982d3b4
    • spiiroin's avatar
      [udev] Try to ignore false positive cable connects. Contributes to JB#34547 · 2fa5781b
      spiiroin authored
      When connecting charger to usb port, it is sometimes initially detected as
      a pc cable instead of charger. This leads to usb mode selection dialog
      popping up in a situation where mode selection is not possible.
      
      Optionally, when cable connect is seen based on udev events, wait a while
      to see if it gets identified as dedicated charger before invoking actions
      relevant to pc cable connection only.
      
      It is assumed that data reported by udev on usb-moded startup is stable
      and pc cable connection is accepted without delay.
      
      By default usb-moded reacts immediately to pc cable connect events.
      If needed, the default delay can be adjusted via usb-moded command
      line argument -m/--max-cable-delay=<ms>.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      2fa5781b
  5. 25 Apr, 2016 2 commits
  6. 22 Apr, 2016 4 commits
  7. 20 Apr, 2016 2 commits
  8. 13 Apr, 2016 1 commit
  9. 06 Apr, 2016 3 commits
  10. 04 Apr, 2016 1 commit
  11. 01 Apr, 2016 1 commit
  12. 22 Mar, 2016 2 commits
  13. 09 Mar, 2016 1 commit
  14. 26 Dec, 2015 2 commits
  15. 16 Dec, 2015 1 commit
  16. 15 Dec, 2015 4 commits
  17. 11 Dec, 2015 1 commit
  18. 15 Nov, 2015 1 commit
  19. 05 Nov, 2015 1 commit
  20. 17 Oct, 2015 1 commit
  21. 13 Oct, 2015 2 commits
  22. 12 Oct, 2015 2 commits