I’ve read many other threads on this topic and most people seem to have resolved the issue and I’m not sure how.
My issue: running Oram stable (and Vangelis), my USB-based touch inputs are incorrectly scaled. My touch screen is reporting in xinput as 1920x1080 but in ts_calibrate/ts_draw it is operating correctly in the range 1024x600. xinput reporting 1920 width explains why only the top left corner is registering, the top left of the screen is 1024x600 of the unscaled 1920x1080.
Unlike others have reported: Unplugging and re-plugging my USB touchscreen does not fix the scaling issue for me.
The display/touch works perfectly fine in an official bookworm image using the same config.txt settings, however there wayland/wayfire is in use so who knows how that translates to a pure xinput world?
I believe the solution is that I need to specify a Coordinate Transformation Matrix but here’s what’s happening:
- xinput sees my touch device TSTP MTouch as a “Floating slave”
root@zynthian://zynthian# xinput ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ GHW Micro GHW USB AUDIO Consumer Control id=6 [slave keyboard (3)] ↳ GHW Micro GHW USB AUDIO id=7 [slave keyboard (3)] ↳ vc4-hdmi-0 id=10 [slave keyboard (3)] ↳ vc4-hdmi-1 id=11 [slave keyboard (3)] ↳ TSTP MTouch id=8 [slave keyboard (3)] ∼ TSTP MTouch id=9 [floating slave]
2. I can reattach the device with xinput reattach and xinput enable the device. I can also specify the coordinate translation matrix temporarily, but as soon as I issue systemctrl restart zynthian, the devices are reinitialized and it is again detached..?
- The logs at
/var/log/Xorg.0.logindicate this device has no driver and doesn’t get added when zynthian starts:
[ 10.920] (II) No input driver specified, ignoring this device.
[ 10.920] (II) This device may have been added with another device file.
[ 11.275] (II) modeset(0): Disabling kernel dirty updates, not required.
[ 39.744] (II) config/udev: removing device TSTP MTouch
[ 39.744] (II) evdev: TSTP MTouch: Close
[ 39.744] (II) UnloadModule: "evdev"
[ 39.745] (II) config/udev: removing device TSTP MTouch
[ 39.772] (II) evdev: TSTP MTouch: Close
[ 39.772] (II) UnloadModule: "evdev"
[ 48.506] (II) config/udev: Adding input device TSTP MTouch (/dev/input/mouse
0)
[ 48.506] (II) No input driver specified, ignoring this device.
[ 48.506] (II) This device may have been added with another device file.
[ 48.560] (II) config/udev: Adding input device TSTP MTouch (/dev/input/event
3)
Does anyone have any suggestions? Thank you so much!!
