User avatar
DHeadshot
Posts: 4
Joined: Wed Mar 15, 2017 10:50 pm
Location: UK
Contact: Yahoo Messenger AOL Twitter

Pi Zero W ignoring all attempts to calibrate Touchscreen

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.

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Pi Zero W ignoring all attempts to calibrate Touchscreen

Thu Mar 16, 2017 11:56 am

Hi and welcome to the forum.
Untried by myself, but does this help you :
viewtopic.php?f=44&t=143581&p=1126537#p1131081

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “General discussion”