Jump to content
Sign in to follow this  
jim

Touch screen

Recommended Posts

I 'm writing a new topic on this subject because i didn't have any answer with pcduino team about my last post :

http://pcduino.com/forum/index.php?topic=4102.0

I would just have a tutorial to make a new kernel who take in charge usb touch screen (egalax driver). For the moment i don't have the time for this and for this reason i bought a beagle bone black with this touch screen : 
http://www.4dsystems.com.au/product/22/138/Beagle_Bone_LCD_Capes/4DCAPE_70T/

This kit work's directly (with touch screen) ! It's perfect for home automation project ! I like my pcduino but i spend lot of time to search informations about it ... I have already a screen and a touch panel kit (15") to use with it but i don't have the time to configure it ... undecided.gif

Share this post


Link to post
Share on other sites

Some one have done this before, you can follow these steps:

1. add usb touch driver
$ sudo cp usbtouchscreen.ko /usr/lib/modules/3.4.29+
add "usbtouchscreen" to /etc/modules

2. install requried package and calibrate the touch
$ sudo apt-get install utouch xinput-calibrator && 
$ sudo insmod /usr/lib/modules/3.4.29+/usbtouchscreen.ko &&
$ xinput-calibrator

3. add calibration data to /usr/share/X11/xorg.conf.d/99-calibration.conf

$ sudo cat > /usr/share/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
    Identifier    "calibration"
    MatchProduct    "eGalax Inc. USB TouchController"
    Option    "Calibration"    "56 2012 1935 125"
EndSection

EOF

4. restart system

$ sudo reboot

Share this post


Link to post
Share on other sites

hi all, since my last email i didn't have the time to test more my pcduino (i'm working on stm32f4 for the moment) but i want to use my touch screen with my pcduino ! i followed your tutorial here : http://learn.linksprite.com/pcduino/usb-development/7-hdmi-lcd-with-usb-touch-for-pcduino/ but when i try xinput_calibrator, i obtain this : 

Code: [select]

ubuntu@ubuntu:~$ xinput_calibrator
Error: No calibratable devices found.

when i use lsusb, pcduino detect my touch controler : 

Code: [select]

Bus 002 Device 002: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
Bus 003 Device 003: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 005: ID 03f0:2c24 Hewlett-Packard Logitech M-UAL-96 Mouse
Bus 003 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
I downloaded the driver for it on egalax web site : http://www.eeti.com.tw/touch_driver/Linux/20140318/ARM_&_MIPS/eGTouch_v2.5.3810.L-ma.zip
unzip it.
When i launched setup.sh i obtain this error :

Code: [select]

(I) Found /etc/rc.local file.
(I) Found a HID compliant touch controller.
(I) X.Org X server 1.11.3
(I) X version is 1.7.6 upwards
(E) Can't load uinput module. Please rebuild the module before installation.

i tried to find uinput, modprobe uinput but i obtained this :

Code: [select]

ubuntu@ubuntu:~$ modprobe uinput
FATAL: Module uinput not found.

Do you have an idea to help me ? For information, this touch screen works on win7.

Share this post


Link to post
Share on other sites

Thanks for your rapid answer. I suppose to add uinput i use this :
 

Code: [select]

$ sudo cp uinput.ko /usr/lib/modules/3.4.29+
#add "uinput" to /etc/modules
$sudo nano /etc/modules

or do i need to create a uinput folder in /etc/modules/uinput/uinput.ko ?

Share this post


Link to post
Share on other sites
Ok i add your file in /lib/modules/3.4.29+ and add it to /etc/modules but when i execute lsmod i don't see it :

Code: [select]
ubuntu@ubuntu:~$ lsmod
Module                  Size  Used by
sw_interrupt            2424  0 
gpio                    4509  0 
pwm                     5050  0 
adc                     1671  0 
hardwarelib             1551  4 sw_interrupt,gpio,pwm,adc
usbtouchscreen         11599  0 
rt5370sta             616973  0 
8192cu                537008  0 
mali_drm                2087  1 
drm                   156992  2 mali_drm
mali                  167225  0 
disp_ump                 823  0 
ump                    43938  4 mali,disp_ump

and if i try :

Code: [select]
ubuntu@ubuntu:~$ sudo modprobe uinput
FATAL: Error inserting uinput (/lib/modules/3.4.29+/uinput.ko): Invalid module format
 

Share this post


Link to post
Share on other sites

Hey modjo!

I've exactly the same usb touchscreen kit:

Bus 003 Device 004: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen

and modules aren't available with pcduinov1/v2 using kernel 3.4.29+ so to have these modules working you'll need to compile yourself:


usbtouchscreen
hid-multitouch



So you'll need to recompile kernel 3.4.29+ with above selected modules...and all is ok(tested and verified by me)

Greets.
Alex.

Share this post


Link to post
Share on other sites

Hey modjo!

 

I've exactly the same usb touchscreen kit:

 

Bus 003 Device 004: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen

 

and modules aren't available with pcduinov1/v2 using kernel 3.4.29+ so to have these modules working you'll need to compile yourself:

 

 

usbtouchscreen

hid-multitouch

 

 

So you'll need to recompile kernel 3.4.29+ with above selected modules...and all is ok(tested and verified by me)

 

Greets.

Alex.

Hello Alex,

I have the same problem (uinput module not loaded (LXDE 14.04, PCDUINO V3)). I see you could solve the problem. Unfortuantely I cannot follow your solution! Could you go in more detail how-to?

Thank you in advance

Ruediger

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×