1. 12 3月, 2015 1 次提交
    • J
      HID: wacom: Add battery presence indicator to wireless tablets · 71fa641e
      Jason Gerecke 提交于
      Declare the POWER_SUPPLY_PROP_PRESENT property to provide userspace
      with a way to determine if the battery on a wireless tablet is plugged
      in. Although current wireless tablets do not explicitly report this
      information, it can be inferred from other state information. In
      particular, a battery is assumed to be present if any of the following
      are true: a non-zero battery level reported, the battery is reported as
      charging, or the tablet is operating wirelessly.
      
      Note: The last condition above may not strictly hold for the Graphire
      Wireless (it charges from a DC barrel jack instead of a USB port), but I
      do not know what is reported in the no-battery condition.
      Signed-off-by: NJason Gerecke <killertofu@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      71fa641e
  2. 11 3月, 2015 5 次提交
  3. 27 2月, 2015 1 次提交
    • B
      HID: wacom: add full support of the Wacom Bamboo PAD · 8c97a765
      Benjamin Tissoires 提交于
      The stylus of this device works just fine out of the box.
      The touch is seen by default as a mouse with relative events and some
      gestures.
      The wireless and the wired version have slightly different firmwares, but
      the debug mode 2 on the feature 2 is common to the 2 devices. In this mode,
      all the reports are emitted through the debug interface (pen, raw touch
      and mouse emulation), so we have to re-route manually the events.
      
      We keep the Pen interface as a HID_GENERIC one because it works, and only
      parse the raw touches while discarding the mouse emulation & gestures.
      
      Switching the default in raw mode allows us to have a consistent user
      experience accross all the multitouch touchpads (and enable the touch part
      of the devices).
      
      Note that the buttons of this devices are reported through the touch
      interface. There is no 'Pad' interface. It seemed more natural to have
      the BTN_LEFT and BTN_RIGHT reported with the touch because they are
      placed under the touch interface and it looks like they belong to the
      touch part.
      Tested-by: NJosep Sanchez Ferreres <josep.sanchez.ferreres@est.fib.upc.edu>
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Acked-by: NPing Cheng <pingc@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      8c97a765
  4. 24 2月, 2015 1 次提交
  5. 19 2月, 2015 1 次提交
  6. 29 1月, 2015 3 次提交
  7. 23 1月, 2015 1 次提交
  8. 12 1月, 2015 2 次提交
  9. 06 1月, 2015 1 次提交
  10. 12 12月, 2014 1 次提交
  11. 10 12月, 2014 1 次提交
  12. 06 12月, 2014 2 次提交
  13. 02 12月, 2014 2 次提交
  14. 27 11月, 2014 1 次提交
  15. 22 11月, 2014 2 次提交
    • J
      HID: wacom: Add angular resolution data to some ABS axes · 26fe4124
      Jason Gerecke 提交于
      Provide the resolution of several angular axes (tilt, pen rotation, puck
      rotation) to userspace. Because these values are natively degree-based, we
      need to convert them to into units/radian as required by the input_absinfo
      struct. To ensure wraparound behaves properly for the rotation axes, the
      converted value was rounded up rather than rounded nearest.
      
      Notably, the touchring axes (ABS_WHEEL and ABS_THROTTLE) are left without a
      a declared resolution because the their low resolution cannot be accurately
      represented (the worst-case rounding-induced error would be ~16 degrees).
      Pre-scaling the values and range by at least 10x would reduce the error in
      the resolution to acceptable levels, but the xf86-input-wacom driver is not
      able to use pre-scaled values for these axes at this time.
      Signed-off-by: NJason Gerecke <killertofu@gmail.com>
      Reviewed-by: NPing Cheng <pingc@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      26fe4124
    • J
      HID: wacom: Report ABS_TILT_{X,Y} as signed values · ec5fc1c1
      Jason Gerecke 提交于
      Centers the ABS_TILT_{X,Y} axes so that a value of zero is reported when
      the pen is vertical. Combined with resolution information in the next
      patch, this makes it possible for userspace to calculate the pen angle
      without needing hardware-specific knowledge. The xf86-input-wacom driver
      was updated to support signed tilt values in late-2012 (2f2acec).
      Signed-off-by: NJason Gerecke <killertofu@gmail.com>
      Reviewed-by: NPing Cheng <pingc@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      ec5fc1c1
  16. 21 11月, 2014 3 次提交
  17. 12 11月, 2014 1 次提交
  18. 07 11月, 2014 1 次提交
  19. 01 10月, 2014 2 次提交
  20. 12 9月, 2014 1 次提交
    • B
      HID: wacom: make the WL connection friendly for the desktop · 12969e3b
      Benjamin Tissoires 提交于
      Currently, tablets connected to the WL receiver all share the same
      VID/PID. There is no way for the user space to know which one is which
      besides parsing the name. We can force the PID to be set to the
      actual hardware. This way, the input device will have the correct PID
      which can be match in libwacom.
      
      With only this trick, the pad input does not inherit the ID_INPUT_TABLET
      udev property from its parent. We can force udev to accept it by declaring
      a BTN_STYLUS which is never used.
      
      This way, tablets connected through WL can be used from the user point of
      view in the same way they are used while connected through wire.
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Reviewed-by: NPing Cheng <pingc@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      12969e3b
  21. 04 9月, 2014 1 次提交
  22. 07 8月, 2014 2 次提交
  23. 29 7月, 2014 1 次提交
  24. 26 7月, 2014 3 次提交