Install some dependencies:
sudo apt-get install libx11-dev libxext-dev libxi-dev x11proto-input-dev
Download xinput_calibrator somewhere in the Raspberry PI's folder structure.
wget http://github.com/downloads/tias/xinput ... 7.5.tar.gz
Unpack it and then navigate to the unpacked folder and then install it using:
sudo make install
After this step you should run xinput_calibrator(from Xserver terminal console: first startx then open console and then run it).
Follow the on screen instructions(touching some points on screen) and after calibration is complete you will receive a message like this:
Calibrating EVDEV driver for "eGalax Inc. USB TouchController" id=8
current calibration values (from XInput): min_x=1938, max_x=114 and min_y=1745, max_y=341
Doing dynamic recalibration:
Setting new calibration data: 121, 1917, 317, 1741
--> Making the calibration permanent <--
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
MatchProduct "eGalax Inc. USB TouchController"
Option "Calibration" "121 1917 317 1741"
Option "SwapAxes" "1"
For Raspbian you have to create a file:
sudo nano /usr/share/X11/xorg.conf.d/01-input.conf
Add in this file the content above(starting with Section "InputClass" line) and then save it(ctrl+O).
flydr2 wrote:Thanks for the details here all worked perfectly. Except the permanent calibration.
I will have to do some research to get that working.
papaulm wrote:...spent my entire night solving this problem and could' fix it.
Today I found this site: http://www.tutorials-raspberrypi.de/gpi ... passungen/, followed the steps from saving the "99-calibration.conf" File and now it works just fine. Can't explain it, removed the old file and now the settings are save and I don't have to recalibrate after a reboot.
Perhaps this can help you too.
Code: Select all
sudo nano /boot/cmdline.txt
Code: Select all
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Code: Select all
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait usbhid.mousepoll=0
I've had similar problems with an eGalax 7" touchscreen running on Jessie using Pixel. Calibrating with xinput_calibrator throws up some weird x & y numbers and fails to work correctly.John L. Gordon wrote: Sorry if this is duplicated, I have tried to get help with this.
I also am using an eGalax based touch screen with Jessie. This worked perfectly with Wheezy but will not work with Jessie.
The monitor is a Lilliput 10 inch resistive touch screen. Jessie will work with the HDMI Monitor but it won't recognise its 1024x600 display and defaults to 1280x760.
The main problem is the touch screen however. I have tried with and without drivers and the addition suggested to cmdline.txt. evtest finds input from the touch screen but not it seems at a monitored event. xinput_calibrator now downloads directly as xinput-calibrator but is still named xinput_calibrator in use (hyphen is the difference). This works but touch screen input is not recognised.
The problem seems to be the changes introduced when developing Jessie from Wheezy but unfortunately I can't yet locate the problem.
Can anyone help with this please.
It doesn't help in all cases. I just tried swapping them and my pointer was stuck at the upper left corner. Changing the file name back got it unstuck.n1ks wrote: ↑Sun Aug 20, 2017 7:49 pmI have now solved it by doing the following:
sudo apt-get install xserver-xorg-input-evdev xinput-calibrator -y
sudo mv /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
This is renaming 10-evdev.conf to 45-evdev.conf in order to get it to load after 40-libinput.conf. Xinput_calibrator now calibrates for me and i am able to save the calibration data into /usr/share/X11/xorg.conf.d/99-calibration.conf and i have a woring eGalax screen on Jessie/Pixel.
Hope it helps John