I have an LCD that is a Waveshare copy, this one.
I'm having trouble getting the touch to work properly in PIXEL.
I'm running the lates jessie (2017-01-11) on a Raspberry Pi 3. The LCD is displaying the Picture as it should.
The issue is that the touch area seems to be "bigger" that the screen. When I press the screen in the middle the cursor is in the same Place, but as I move to the borders of the screen the curser "falls behind", and when I'm right at the edge of the screen the cursor is about 10 mm in on the screen. So, I am unable to open the startmenu or perss any of the icons in the task bar.
I've run xinput_calibrator and saved the calibration data in /etc/X11/xorg.conf.d/99-calibration.conf with not luck.
What I have to get the touch screen working at all is this:
- 1. Added this to /boot/config.txt:
Code: Select all
dtparam=i2c_arm=on dtparam=spi=on dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150
- 2. Added this to /etc/modules:
Code: Select all
ads7846_device model=7846 cs=1 gpio_pendown=25 speed=1000000 keep_vref_on=1 swap_xy=1 pressure_max=255 x_plate_ohms=150 x_min=184 x_max=3869 y_min=141 y_max=3959
- 3. Added this to /etc/X11/xorg.conf.d/99-calibration.conf
Code: Select all
Section "InputClass" Identifier "calibration" MatchProduct "ADS7846 Touchscreen" Option "MinX" "2778" Option "MaxX" "63781" Option "MinY" "3254" Option "MaxY" "62964" Option "SwapXY" "0" # unless it was already set to 1 Option "InvertX" "0" # unless it was already set Option "InvertY" "0" # unless it was already set EndSection
However, when I run ts_calibrate and ts_test the touch works perfect! So I Think there might be something off with the X calibration. Or, is there a way to use tslib as driver for the touch screen in X?
I've seen a few other people on the Internet that has the same issue, but no solution.
Is there anyone here that might be able to assist me? I consider my self an advanced user, but this is something out of my league.
Thanks in advance!
Regards,
Jonas