RomanT
Posts: 2
Joined: Tue Aug 12, 2014 1:47 pm

USB touch screen calibration in Raspbian

Tue Aug 12, 2014 1:54 pm

Help me to calibrate USB touch screen calibration in Raspbian (Release date: 2014-06-20)

RomanT
Posts: 2
Joined: Tue Aug 12, 2014 1:47 pm

Re: USB touch screen calibration in Raspbian

Thu Aug 14, 2014 5:19 am

sudo apt-get install evtest matchbox-keyboard

edit file: /usr/share/x11/xorg.conf.d/10-evdev.conf
find a block:

Code: Select all

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection 
add a line:
Option "Calibration" "-275 33064 312 32350"
to get so:

Code: Select all

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "Calibration" "-275 33064 312 32350"
EndSection 
where
-275 it minimum coordinate axes X
33064 it maximum coordinate axes X
312 it minimum coordinate axes Y
32350 it maximum coordinate axes Y

see these values​​, you can run the program evtest
find a line type:
Event: time 1374175747.420998, type 3 (EV_ABS), code 0 (ABS_X), value 45
Event: time 1374175747.421011, type 3 (EV_ABS), code 1 (ABS_Y), value 4045

end reboot

messica
Posts: 7
Joined: Sat Feb 07, 2015 1:07 am

Re: USB touch screen calibration in Raspbian

Sat Feb 07, 2015 8:52 pm

Hi, what type of USB touch screen were you using for this? I'm having trouble getting mine to work at all after installation. For some reason it only works when I first startup NOOBS and while Raspbian is installing. After rebooting to raspi-config, it doesn't work at all anymore.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: USB touch screen calibration in Raspbian

Sat Feb 07, 2015 8:56 pm

messica wrote:Hi, what type of USB touch screen were you using for this? I'm having trouble getting mine to work at all after installation. For some reason it only works when I first startup NOOBS and while Raspbian is installing. After rebooting to raspi-config, it doesn't work at all anymore.
Noobs is just an installer.
You have to calibrate after you install Raspbian.

messica
Posts: 7
Joined: Sat Feb 07, 2015 1:07 am

Re: USB touch screen calibration in Raspbian

Sat Feb 07, 2015 9:08 pm

So the drivers are always there and working then? Does it reset the calibration after installing Raspian or something? :/

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: USB touch screen calibration in Raspbian

Sat Feb 07, 2015 9:12 pm

messica wrote:So the drivers are always there and working then? Does it reset the calibration after installing Raspian or something? :/
I think it's better to continue this in your original topic at http://www.raspberrypi.org/forums/viewt ... 28&t=99000

messica
Posts: 7
Joined: Sat Feb 07, 2015 1:07 am

Re: USB touch screen calibration in Raspbian

Sat Feb 07, 2015 9:14 pm

Can you help me in that topic?

Return to “HATs and other add-ons”