nixator
January 16, 2018, 12:50am
1
Hello, I load image to card and after start I discover problem with touchscreen - X axis is swaped. Please, could you give me advice where can I modify settings of touchscreen? I tryed modify standart X11 configs at /etc/X11 but probably not affected.
Thank you
Video of problem:
https://photos.app.goo.gl/lgXekX0cJm56jf483
nixator
January 16, 2018, 10:58pm
3
Hi my config is:
Web display config:
dtoverlay=piscreen,speed=16000000,rotate=270
SSH:
root@zynthian:~# cat /etc/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option “Calibration” "239 3919 3902 193"
Option “SwapAxes” "0"
EndSection
and good think to do is
root@zynthian:~# apt-get install -y xinput-calibrator
root@zynthian:~# DISPLAY=:0 xinput_calibrator
mheidt
January 17, 2018, 7:41am
4
yep, this is helpful as well
The calibration of @norbim doesn’t work for rotated screens.
My numbers are
205 3754 3801 226
You can do your own calibration:
apt-get install -y xinput-calibrator
Create a file calibrate.sh on the zynthian that contains
#!/bin/sh
xinput_calibrator -v
make it executable
chmod +x calibrate.sh
stop zynthian and run calibrate
systemctl stop zynthian
startx ./calibrate.sh
Follow the screen instructions
In the ssh output where you started startx, you find the calibration values