Skip to content
Snippets Groups Projects
  1. Jan 21, 2018
  2. Jan 18, 2018
  3. Jan 10, 2018
    • Peter Hutterer's avatar
      touchpad: drop the double normalization · 937e6031
      Peter Hutterer authored
      
      Previously, touchpad deltas were converted to 1000-dpi normalized coordinates
      and handled from there. This changed in bdd4264d (1.6)
      when the filter functions started taking device coordinates instead. Since
      then, we used to convert the device delta to normalized coordinates, then
      (often immediately) convert back to device coordinates, albeit for equal x/y
      resolution. This isn't necessary, we can just convert the device coordinates
      to x/y-equal resolution device coordinates and pass those on.
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      937e6031
  4. Jan 09, 2018
  5. Dec 18, 2017
  6. Dec 08, 2017
  7. Nov 30, 2017
  8. Nov 29, 2017
  9. Nov 27, 2017
  10. Nov 21, 2017
  11. Nov 20, 2017
  12. Nov 19, 2017
    • Peter Hutterer's avatar
      evdev: add new debouncing code · de994d13
      Peter Hutterer authored
      
      The current debouncing code monitors events and switches on when events are
      too close together. From then on, any event can be delayed.
      
      Vicente Bergas provided an algorithm that avoids most of these delays:
      on a button state change we now forward the change without delay but start a
      timer. If the button changes state during that timer, the changes are
      ignored. On timer expiry, events are sent to match the hardware state
      with the client's view of the device. This is only done if needed.
      
      Thus, a press-release sequence of: PRP sends a single press event, a sequence of
      PRPR sends press and then the release at the end of the timeout. The timeout
      is short enough that the delay should not be noticeable.
      
      This new mode is called the 'bounce' mode. The old mode is now referred to as
      'spurious' mode and only covers the case of a button held down that loses
      contact. It works as before, monitoring a button for these spurious contact
      losses and switching on. When on, button release events are delayed as before.
      
      The whole button debouncing moves to a state machine which makes debugging a
      lot easier. See the accompanying SVG for the diagram.
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      de994d13
    • Peter Hutterer's avatar
      fallback: change to handle the state at EV_SYN time · db3b6fe5
      Peter Hutterer authored
      
      The previous approach was to remember the last event and flush it at the right
      time. The new approach is to update the device state during the frame and send
      out the events at EV_SYN time.
      
      This gives us two advantages: we are not dependent on the kernel order of how
      events come in and we can process events depending on other events in the same
      frame. This will come in handy later for button debouncing.
      
      This is also the approach we have in the touchpad and tablet backends.
      
      Two FIXMEs are left in place, the button debouncing code and the lid switch
      code. Both need to be handled in future patches.
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      db3b6fe5
    • Peter Hutterer's avatar
      fallback: drop unused ratelimit struct · 8e86f289
      Peter Hutterer authored
      
      This one is present in the parent evdev device
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      8e86f289
    • Peter Hutterer's avatar
      fallback: create the evdev-fallback.h header file · 87920f49
      Peter Hutterer authored
      
      So we can split up evdev-fallback.c into multiple files where needed.
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      87920f49
    • Peter Hutterer's avatar
      test: replace litest_button_click with a debounced version · 8cf6893f
      Peter Hutterer authored
      
      This is via a simple search & replace. Later auditing is needed to switch
      clicks that should not be debounced (e.g. touchpads) back to a non-debounced
      version.
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      8cf6893f
  13. Nov 17, 2017
  14. Nov 16, 2017
  15. Nov 15, 2017
  16. Nov 14, 2017
Loading