linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wacom: Fixes for stylus pressure values for Thinkpad Yoga
@ 2014-02-26 22:38 Carl Worth
  2014-02-26 22:38 ` [PATCH 1/3] Input: wacom - EC tablet supports 1023 levels of pressure, not just 255 Carl Worth
  2014-02-27  4:39 ` wacom: Fixes for stylus pressure values for Thinkpad Yoga Ping Cheng
  0 siblings, 2 replies; 6+ messages in thread
From: Carl Worth @ 2014-02-26 22:38 UTC (permalink / raw)
  To: Ping Cheng; +Cc: linux-input, linux-kernel

This series of patches fixes the pressure values reported for the
wacom tablet built-in to a Lenovo ThinkPad Yoga laptop. Prior to this
patch series, if I slowly increased stylus pressure, (expecting a
gradual increase of values from 0 to 1023), I instead received values
that increased slowly to 255, then reset to 0 and increased slowly
again, etc.

The buggy arithmetic that is updated here appears to exist in
identical forms for other drivers. I did not update any code that I
was not able to test directly. But it looks like wacom_pl_irq and
wacom_dtu_irq potentially have similar bugs, (depending on the actual
pressure_max values encountered in practice).

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-28 18:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-26 22:38 wacom: Fixes for stylus pressure values for Thinkpad Yoga Carl Worth
2014-02-26 22:38 ` [PATCH 1/3] Input: wacom - EC tablet supports 1023 levels of pressure, not just 255 Carl Worth
2014-02-26 22:38   ` [PATCH 2/3] Input: wacom - Don't discard bits from upper byte of pressure value Carl Worth
2014-02-26 22:38     ` [PATCH 3/3] Input: wacom - Avoid incorrect sign extension from pressure-value lower byte Carl Worth
2014-02-27  4:39 ` wacom: Fixes for stylus pressure values for Thinkpad Yoga Ping Cheng
2014-02-28 18:26   ` Carl Worth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).