I bought yesterday my first 3.5" Touchscreen for my Raspberry Pi. (Elegoo 3.5 inches TFT LCD Touch Screen Monitor) On my Raspberry runs an OctoPrint Image (Raspbian based).
The Display is working. My problem is the touch function; it's kind of inverted. If I touch the upper right. My cursor is at lower right. If I drag from left to right, my course goes just up and down.
I downloaded this driver/program.
I also tried a calibration test with
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_test`
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
And that works fine. After I used xinput_calibrator to read the new calibration data and inserted it at /etc/X11/xorg.conf.d/99-calibration.conf
. After rebooting or restarting the "LCD-Show" driver, nothing changes.
Usually, the used program (LCD-show) overwrites every configuration. But I disabled it for debugging and to find my mistake.
For now, I don't know what to do. I changed different values (SwapAxes) but it's always inverted.
Edit - Steps I did with xinput-calibrator:
DISPLAY=:0.0 xinput_calibrator
I copied the Section to EndSection part into:
/etc/X11/xorg.conf.d/99-calibration.conf
After the restart, nothing changes. I also tried to change the "SwapXY" Value to 0. Again no changes.
lcd_rotate=2
to config.txt? I realize that's flipping the display not the input, but if the rotated display aligns input properly it might be a quick fix until you can sort out the input layer. – Sandor Dosa Apr 28 '17 at 16:22