xiaomi-daisy: Touchscreen doesn't register input correctly
Describe your issue
What's the expected behaviour?
Touch input works correctly.
What's the current behaviour?
Touch input is unusable.
More specifically, the input is interpreted as if it were offset compared to reality. For example, on the phosh unlock screen, tapping on the bottom right corner of the screen activates the "4" button, and tapping a bit higher than that activates the "1" button.
How to reproduce your issue?
Flash postmarketOS on xiaomi-daisy with otm1911_fhdplus panel, boot the device.
What device are you using?
xiaomi-daisy
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.12
-
v23.06
(supported until 2024-01-18) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) -
Other: xfce4, fbconsole
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
Checked today, 2024-03-09.
Additional information
This might be related to the fact that I have recently replaced the ili7807_fhdplus display that originally came with the phone with another part off AliExpress, which turned out to be otm1911_fhdplus instead.
I ran postmarketOS briefly before replacing the panel, and I think that I had some issues with touch input initially but they were gone after the first reboot. It's entirely possible that I'm misremembering though - I've messed with this phone too much over the past few days to keep things straight in my head O:-)
The touchscreen works fine on Android, so faulty hardware can be ruled out.
These messages show up in dmesg:
[ 2.555806] Goodix-TS 2-005d: Error reading 1 bytes from 0x8140: -6
[ 2.584845] Goodix-TS 2-005d: ID 917D, version: 5017
[ 2.606429] Goodix-TS 2-005d: Invalid config (1079, 2279, 0), using defaults
[ 2.606670] input: Goodix Capacitive TouchScreen as /devices/platform/soc@0/78b7000.i2c/i2c-2/2-005d/input/input1