Troubleshooting:touchscreen

From postmarketOS
Jump to: navigation, search

Generic debugging steps

Test with evtest

You can test if the touchscreen emits any events with evtest.

Test with libinput debug-events

You can check if libinput understands the events your touchscreen driver emits with libinput debug-events.

For example it's possible that libinput doesn't get any events or that it doesn't get TOUCH_DOWN/TOUCH_UP events. You can see the raw events libinput receives with libinput record.

Mediatek devices

Some touchscreen drivers on Mediatek devices have issues because they don't follow the standards. You can compare the driver source of your driver (especially the functions tpd_up and tpd_down) with the Fairphone 1 touchscreen driver and see if adjusting your touchscreen driver to mostly match that behavior helps.

See also