]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: goodix-berlin - report a resolution of 10 units/mm
authorVal Packett <val@packett.cool>
Sat, 21 Mar 2026 07:30:07 +0000 (04:30 -0300)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 25 Mar 2026 16:08:17 +0000 (09:08 -0700)
commit653f3100f551cf01974a18cce66e368f248ee48a
treeb2f820a258571455d5b3d66c8d4d39275b7fdeb8
parent79df764dbecd5c4bf1b1431b865a361ce7bebb2d
Input: goodix-berlin - report a resolution of 10 units/mm

Without a reported resolution, userspace was assuming 1 unit/mm which
is wildly wrong: a regular smartphone is clearly not 2.4 meters tall.
Most applications do not care much for this kind of raw mm value,
but Phosh's on-screen keyboard would accidentally trigger swipe-to-close
gestures due to misinterpreting small movements as huge ones.

Do what the older goodix.c driver does and set the resolution to 10
units/mm to make sure the numbers calculated by userspace are reasonable.

Signed-off-by: Val Packett <val@packett.cool>
Link: https://patch.msgid.link/20260321073242.556253-1-val@packett.cool
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix_berlin_core.c