* [PATCH 0/2] synaptics_usb trackpoint cursor movement improvements
@ 2013-09-15 21:01 Andrew Deason
2014-07-08 12:43 ` Rasmus Villemoes
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Deason @ 2013-09-15 21:01 UTC (permalink / raw)
To: linux-input
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(-)
--
Andrew Deason
adeason@dson.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 0/2] synaptics_usb trackpoint cursor movement improvements
2013-09-15 21:01 [PATCH 0/2] synaptics_usb trackpoint cursor movement improvements Andrew Deason
@ 2014-07-08 12:43 ` Rasmus Villemoes
0 siblings, 0 replies; 2+ messages in thread
From: Rasmus Villemoes @ 2014-07-08 12:43 UTC (permalink / raw)
To: Andrew Deason, Dmitry Torokhov; +Cc: linux-input
Andrew Deason <adeason@dson.org> writes:
> 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.
Hi Andrew,
I ran into the same issue after upgrading to Ubuntu 14.04 (with kernel
3.13); found <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682413>,
and now finally got around to compile a kernel with your patches [1],[2]
applied. I can confirm that the "feel" of the trackpoint is back to
normal.
Also, the various workarounds mentioned at
http://unix.stackexchange.com/questions/43430 do not work nearly as good
(and of course, it would be much better if the trackpoint "just worked").
[0] http://thread.gmane.org/gmane.linux.kernel.input/31934
[1] http://thread.gmane.org/gmane.linux.kernel.input/31935
[2] http://thread.gmane.org/gmane.linux.kernel.input/31936
I have no idea whether those patches are the "right" fix, but FWIW, you
can add 'Tested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>'.
Thanks,
Rasmus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-08 12:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-15 21:01 [PATCH 0/2] synaptics_usb trackpoint cursor movement improvements Andrew Deason
2014-07-08 12:43 ` Rasmus Villemoes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox