Skip to content

synaptics_usb trackpoint cursor movement improvements

Andrew Deason linux-input 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 1 replyIn review

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] synaptics_usb trackpoint cursor movement improvements

Here are a couple of patches for improving trackpoint movement with synaptics_usb. Currently, without these, the movement is much worse than it was before synaptics_usb was introduced into the tree, since the device was previously handled by usbhid. This is intended to be applied instead of the "Input: synaptics_usb - Scale stick axes evenly" patch submitted previously; there's no reason to apply that one if these patches are applied.

I'm not familiar with code for input devices (in Linux or in general), so I may be making silly mistakes or violating certain conventions. Feel free to tear me apart :) Some particular highlights of things I was unsure of, and so may have been dumb things to do:

- I'm not sure if there's a better way or if there are standard conventions for doing fixed-point arithmetic. I just multiplied or divided by STICK_PRECISION at the appropriate places, but since this needs to be done pretty often in the calculations and with care, it seems pretty easy to accidentally screw it up in future changes.

- The sysfs attributes getters/setters are mostly boilerplate. I don't know if it's frowned upon to do it this way and I need to reduce the duplication, or if it doesn't really matter since there are only 3 items.

- I'm not sure if there's a better way to transition between the HID and non-HID modes. It seems like this should be switchable at runtime instead of needing to reload the module, but I can't find an example of another module doing this.

Also, I've been testing these changes with my own devices just by myself; I would welcome feedback from others with similar devices if any of them see this. It's difficult to objectively test how the trackpoint "feel"s with different parameters.

Andrew Deason (2):
Input: synaptics_usb - Improve stick movement
Input: synaptics_usb - Add stick_hid param

 drivers/input/mouse/synaptics_usb.c | 431 ++++++++++++++++++++++++++++++++++--
 1 file changed, 418 insertions(+), 13 deletions(-)
Signature · 2 lines
Andrew Deason
[email protected]