i.MX51 Ubuntu USB TS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX51 Ubuntu USB TS

i.MX51 Ubuntu USB TS

Using a USB Touchscreen on Ubuntu

  This example uses a XENARC 706TSA monitor http://www.xenarc.com/product/706tsa.html

To use a USB touchscreen on i.MX51 EVK, disable all touchscreen drivers on menuconfig and build the kernel:

Device Drivers  ---> 
       Input device support  ---> 
       [ ]   Touchscreens  --->

Ts_usb_menuconfig.jpg


Download xserver-xorg-input-evtouch (0.8.8-ubuntu3 version) from http://launchpadlibrarian.net/24760784/xserver-xorg-input-evtouch_0.8.8-0ubuntu3_armel.deb.

X crash is found if using latest 0.8.8-ubuntu6.1 version. For the details. See https://bugs.launchpad.net/ubuntu/+source/xf86-inputevtouch/+bug/511491

On MX51 EVK board, run “sudo dpkg –i xserver-xorg-input-evtouch_0.8.8-0ubuntu3_armel.deb” to install debian package.

Add fdi file by "sudo vi ./usr/share/hal/fdi/policy/20thirdparty/50-eGalax.fdi":

<?xml version="1.0" encoding="UTF-8"?> 
<deviceinfo version="0.2"> 
   <device> 
      <match key="info.product" contains="eGalax"> 
         <match key="info.capabilities" contains="input"> 
            <merge key="input.x11_driver" type="string">evtouch</merge> 
            <merge key="input.x11_options.minx" type="string">130</merge> 
            <merge key="input.x11_options.miny" type="string">197</merge> 
            <merge key="input.x11_options.maxx" type="string">3945</merge> 
            <merge key="input.x11_options.maxy" type="string">3894</merge> 
            <merge key="input.x11_options.Rotate" type="string">CCW</merge> 
            <merge key="input.x11_options.Swapy" type="string">true</merge> 
            <merge key="input.x11_options.taptimer" type="string">30</merge> 
            <merge key="input.x11_options.longtouchtimer" type="string">750</merge> 
            <merge key="input.x11_options.longtouched_action" type="string">click</merge> 
            <merge key="input.x11_options.longtouched_button" type="string">3</merge> 
            <merge key="input.x11_options.oneandhalftap_button" type="string">2</merge> 
            <merge key="input.x11_options.movelimit" type="string">10</merge> 
            <merge key="input.x11_options.touched_drag" type="string">1</merge> 
            <merge key="input.x11_options.maybetapped_action" type="string">click</merge> 
            <merge key="input.x11_options.maybetapped_button" type="string">1</merge> 
         </match> 
      </match> 
   </device> 
</deviceinfo>

Save above configuration.

Calibrating

Calibration in made by clicking on System -> Administration -> Calibrate Touchscreen

Follow the on screen instructions and reboot the system.

Calibrating using Xinput Calibrator

Xinput_calibrator is another option to calibrate touchscreen. It can be downloaded at: http://www.freedesktop.org/wiki/Software/xinput_calibrator

On i.MX5x Ubuntu, unpack the source code:

tar -xzvf xinput_calibrator-0.7.5.tar.gz 

Install xorg-dev, it's required to build xinput_calibrator

sudo apt-get install xorg-dev 

Configure, build and install xinput_calibrator

./configure 
./make 
./make install

Execute xinput_calibrator. A four-point calibration screen will be shown. Follow the instructions on screen and after complete xinput_calibrator will return the calibration parameters.

Replace the given calibration parameters on file /usr/share/hal/fdi/policy/20thirdparty/50-eGalax.fdi and reboot the system.


Labels (2)
%3CLINGO-SUB%20id%3D%22lingo-sub-1100919%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX51%20Ubuntu%20USB%20TS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100919%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-380493664%22%20id%3D%22toc-hId-380493664%22%20id%3D%22toc-hId-1297696300%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EUsing%20a%20USB%20Touchscreen%20on%20Ubuntu%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23eeeeff%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22note%22%3E%26nbsp%3B%20This%20example%20uses%20a%20XENARC%20706TSA%20monitor%20%3CA%20class%3D%22free%20external%22%20href%3D%22http%3A%2F%2Fwww.xenarc.com%2Fproduct%2F706tsa.html%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fwww.xenarc.com%2Fproduct%2F706tsa.html%3C%2FA%3E%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ETo%20use%20a%20USB%20touchscreen%20on%20i.MX51%20EVK%2C%20%3CSTRONG%3Edisable%3C%2FSTRONG%3E%20all%20touchscreen%20drivers%20on%20menuconfig%20and%20build%20the%20kernel%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3EDevice%20Drivers%26nbsp%3B%20---%26gt%3B%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Input%20device%20support%26nbsp%3B%20---%26gt%3B%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5B%20%5D%26nbsp%3B%26nbsp%3B%20Touchscreens%26nbsp%3B%20---%26gt%3B%0A%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ts_usb_menuconfig.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ts_usb_menuconfig.jpg%22%20style%3D%22width%3A%20600px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37848iE966C7765E05877B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Ts_usb_menuconfig.jpg%22%20alt%3D%22Ts_usb_menuconfig.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%20Download%20xserver-xorg-input-evtouch%20(0.8.8-ubuntu3%20version)%20from%20%3CA%20class%3D%22free%20external%22%20href%3D%22http%3A%2F%2Flaunchpadlibrarian.net%2F24760784%2Fxserver-xorg-input-evtouch_0.8.8-0ubuntu3_armel.deb%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Flaunchpadlibrarian.net%2F24760784%2Fxserver-xorg-input-evtouch_0.8.8-0ubuntu3_armel.deb%3C%2FA%3E.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EX%20crash%20is%20found%20if%20using%20latest%200.8.8-ubuntu6.1%20version.%20For%20the%20details.%20See%20%3CA%20class%3D%22free%20external%22%20href%3D%22https%3A%2F%2Fbugs.launchpad.net%2Fubuntu%2F%2Bsource%2Fxf86-inputevtouch%2F%2Bbug%2F511491%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fbugs.launchpad.net%2Fubuntu%2F%2Bsource%2Fxf86-inputevtouch%2F%2Bbug%2F511491%3C%2FA%3E%3C%2FP%3E%3CP%3EOn%20MX51%20EVK%20board%2C%20run%20%E2%80%9Csudo%20dpkg%20%E2%80%93i%20xserver-xorg-input-evtouch_0.8.8-0ubuntu3_armel.deb%E2%80%9D%20to%20install%20debian%20package.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAdd%20fdi%20file%20by%20%22sudo%20vi%20.%2Fusr%2Fshare%2Fhal%2Ffdi%2Fpolicy%2F20thirdparty%2F50-eGalax.fdi%22%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%20%0A%3CDEVICEINFO%20version%3D%220.2%22%3E%20%0A%26nbsp%3B%26nbsp%3B%20%3CDEVICE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMATCH%20key%3D%22info.product%22%20contains%3D%22eGalax%22%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMATCH%20key%3D%22info.capabilities%22%20contains%3D%22input%22%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_driver%22%20type%3D%22string%22%3Eevtouch%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.minx%22%20type%3D%22string%22%3E130%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.miny%22%20type%3D%22string%22%3E197%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.maxx%22%20type%3D%22string%22%3E3945%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.maxy%22%20type%3D%22string%22%3E3894%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.Rotate%22%20type%3D%22string%22%3ECCW%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.Swapy%22%20type%3D%22string%22%3Etrue%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.taptimer%22%20type%3D%22string%22%3E30%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.longtouchtimer%22%20type%3D%22string%22%3E750%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.longtouched_action%22%20type%3D%22string%22%3Eclick%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.longtouched_button%22%20type%3D%22string%22%3E3%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.oneandhalftap_button%22%20type%3D%22string%22%3E2%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.movelimit%22%20type%3D%22string%22%3E10%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.touched_drag%22%20type%3D%22string%22%3E1%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.maybetapped_action%22%20type%3D%22string%22%3Eclick%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CMERGE%20key%3D%22input.x11_options.maybetapped_button%22%20type%3D%22string%22%3E1%3C%2FMERGE%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FMATCH%3E%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FMATCH%3E%20%0A%26nbsp%3B%26nbsp%3B%20%3C%2FDEVICE%3E%20%0A%3C%2FDEVICEINFO%3E%0A%3C%2FPRE%3E%3CP%3ESave%20above%20configuration.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1071055138%22%20id%3D%22toc-hId-1071055138%22%20id%3D%22toc-hId-1988257774%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ECalibrating%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3C%2FP%3E%3CP%3ECalibration%20in%20made%20by%20clicking%20on%20System%20-%26gt%3B%20Administration%20-%26gt%3B%20Calibrate%20Touchscreen%3C%2FP%3E%3CP%3EFollow%20the%20on%20screen%20instructions%20and%20reboot%20the%20system.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId--736399325%22%20id%3D%22toc-hId--736399325%22%20id%3D%22toc-hId-180803311%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ECalibrating%20using%20Xinput%20Calibrator%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3C%2FP%3E%3CP%3EXinput_calibrator%20is%20another%20option%20to%20calibrate%20touchscreen.%20It%20can%20be%20downloaded%20at%3A%20%3CA%20class%3D%22free%20external%22%20href%3D%22http%3A%2F%2Fwww.freedesktop.org%2Fwiki%2FSoftware%2Fxinput_calibrator%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fwww.freedesktop.org%2Fwiki%2FSoftware%2Fxinput_calibrator%3C%2FA%3E%3C%2FP%3E%3CP%3EOn%20i.MX5x%20Ubuntu%2C%20unpack%20the%20source%20code%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Etar%20-xzvf%20xinput_calibrator-0.7.5.tar.gz%20%3C%2FPRE%3E%3CP%3EInstall%20xorg-dev%2C%20it's%20required%20to%20build%20xinput_calibrator%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Esudo%20apt-get%20install%20xorg-dev%20%3C%2FPRE%3E%3CP%3EConfigure%2C%20build%20and%20install%20xinput_calibrator%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E.%2Fconfigure%20%0A.%2Fmake%20%0A.%2Fmake%20install%0A%3C%2FPRE%3E%3CP%3EExecute%20xinput_calibrator.%20A%20four-point%20calibration%20screen%20will%20be%20shown.%20Follow%20the%20instructions%20on%20screen%20and%20after%20complete%20xinput_calibrator%20will%20return%20the%20calibration%20parameters.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EReplace%20the%20given%20calibration%20parameters%20on%20file%20%2Fusr%2Fshare%2Fhal%2Ffdi%2Fpolicy%2F20thirdparty%2F50-eGalax.fdi%20and%20reboot%20the%20system.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1100919%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX51%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-10-2020 01:40 AM
Updated by: