Jump to content


Photo

Touch screen


  • Please log in to reply
9 replies to this topic

#1 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:29 AM

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/f...hp?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...pes/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



#2 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:30 AM

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 << EOF
Section "InputClass"
    Identifier    "calibration"
    MatchProduct    "eGalax Inc. USB TouchController"
    Option    "Calibration"    "56 2012 1935 125"
EndSection

EOF

4. restart system

$ sudo reboot



#3 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:30 AM

It you do not want to compile the usb touch driver, please download the prebuilt one from attachments

Attached Files



#4 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:31 AM

@LDS, thanks for your reply, i'm sure it can help some people on this forum !

I'm trying this and let you know if it's works !



#5 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:31 AM

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.linkspr...ch-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....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.



#6 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:31 AM

There's a uinput file : http://cnlearn.links...4/07/uinput.zip

try add it driver .



#7 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:31 AM

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 ?



#8 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:32 AM

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
 


#9 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 14 February 2015 - 04:32 AM

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.



#10 GeminiWhite

GeminiWhite

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 September 2016 - 09:51 AM

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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users