Skip to content

device-xiaomi-markw: workaround to fix touchscreens

vipaoL requested to merge vipaoL/pmaports:markw-ts-temp-fix into master

A temporary fix for touchscreens as right now both touch screens just almost aren't working. It is a bad solution, I just need to separate the device tree to two variants, but I don't have enough time for that now, sorry for that.

Markw can have atmel or focaltech touchscreen. Both of the drivers try to initialize in the exact same time. The first one reserves the gpio pins and then the second one tries to grab them and fails. With some luck, the touchscreen will work after many reboots. https://gist.github.com/vipaoL/a5bb468fc589f629ef18a907f0ca8344

This MR removes the drivers from initfs (not too bad to just break fde if the touchscreens weren't work at all?) to get modprobe.d configs working for them and adds a modprobe.d rule that tries to force atmel driver to wait for the focaltech driver to end its probe.

I'll open an issue and separate the device tree later to support that properly, but I think it needs a quick fix for now.

Tested on:

  • Atmel
  • Focaltech
Edited by vipaoL

Merge request reports

Loading