Pi Zero W ignoring all attempts to calibrate Touchscreen
Posted: Wed Mar 15, 2017 11:17 pm
Hi, I purchased a Pi Zero W and an Adafruit 2.4" resistive touchscreen. Thanks to the latest kernel and some fiddling with the configuration files (a learning experience) I now have a working display, using fbcp to copy the main display. However, I can't seem to get the touchscreen working properly. For starters, the rules are ignored on boot (or on module reload) so it doesn't register as /dev/input/touchscreen, so I've been having to refer to it as /dev/input/event3 (which will of course change when I remove a device). Using this I have been able to get the ts_calibrate and ts_test programs to calibrate it fine, but within X is a different story. It seems it's not just ignoring the rules but also /etc/X11/xorg.conf.d/99-calibration.conf (so calibrations in X don't stick) and indeed any calibration generally with xinput_calibrator! This is to the extent that I can change the SwapXY value and the InvertX and InvertY values in 99-calibration.conf between 0 and 1 all I want and it doesn't change the mapping of the touchscreen.
In previous attempts to get this working I've tried Adafruit's image (doesn't allow the WiFi or Bluetooth to function) and tried a thing where I had to recompile the kernel with a patch (took 15 hours, after which it transpired I had misconfigured an early setting, so when it was installed my Pi wouldn't boot), so I've ended up learning quite a bit, but seemingly not enough to get this working. Is there something I'm missing, or, if not, is there some other kernel patch I could try that would fix the touchscreen bit?
Many thanks.
In previous attempts to get this working I've tried Adafruit's image (doesn't allow the WiFi or Bluetooth to function) and tried a thing where I had to recompile the kernel with a patch (took 15 hours, after which it transpired I had misconfigured an early setting, so when it was installed my Pi wouldn't boot), so I've ended up learning quite a bit, but seemingly not enough to get this working. Is there something I'm missing, or, if not, is there some other kernel patch I could try that would fix the touchscreen bit?
Many thanks.