egalax touchscreen not working
|
7th Aug, 2015, 04:48 AM
Post: #1
|
|||
|
|||
egalax touchscreen not working
Hey guys, I'm an amateur at all of this so I apologize in advance if I'm leaving out info or if I'm using the wrong terminology needed to troubleshoot this. Anyway, I'm trying to get my 7" egalax touchscreen to work with xbian on my raspberry pi 2.
I installed the driver and did the calibration process. After this xbian restarts automatically but there seems to be no change. There's no cursor and touching the screen doesn't do anything. The touchscreen works with raspian, so I know everything is good at least on the hardware end. Any help will be greatly appreciated. |
|||
8th Aug, 2015, 02:59 AM
Post: #2
|
|||
|
|||
RE: egalax touchscreen not working
Whats the output from the "evtest" command ?
(might need to install evtest by running "sudo apt-get install evtest") There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
9th Aug, 2015, 04:31 AM
Post: #3
|
|||
|
|||
RE: egalax touchscreen not working
Thanks for your reply. Frankly 'a lot of stuff' pops up after running the command but the word output is not there. Not exactly sure how to take a screen shot so I used the old fashioned method. Should be easier than my clumsy explanation:
IMAG0420_BURST004 by James Shimp, on Flickr Kinda odd it lists my keyboard twice? Oh and not sure if it helps but some additional info: I downloaded xbian and set up the wireless. I didn't update, download anything or change any settings. I just did the install, configured the wireless and installed the driver by typing "wget https://github.com/brantje/xbian-touch/raw/master/install.sh" then after that downloaded i typed "sudo sh install.sh" It then asked for the event number (which was listed egalax 2) so i pressed 2, did the calibration, it auto restarted and then like I said it just operated as if nothing happened. |
|||
11th Aug, 2015, 01:09 AM
(This post was last modified: 11th Aug, 2015 02:30 AM by deHakkelaar.)
Post: #4
|
|||
|
|||
RE: egalax touchscreen not working
Keyboard being mentioned twice is probably because its got mouse or touch pad as well (seen as an extra input device).
If tinkering with Pi's, its better to connect from your PC to the Pi's BASH command prompt via an SSH client over network as this makes copying and pasting text possible (no need for clumsy pictures of your screen). That script you mention "https://github.com/brantje/xbian-touch/raw/master/install.sh", is suppose to do everything for you: 1) Install its own TSlib version (Touch Screen Libraries); 2) Calibrate; 3) Setup "uimapper" that will create another dummy input device with translated coordinates (touch area usually being much larger than the screen resolution so you need something to translate x-y coordinates). Looks like something went wrong with the script as after running that script, an extra input device should be displayed besides the eGalax one and keyboards when running "evtest" afterwards. Now "evtest" says "This device is grabbed by another process". What does "evtest" say when you stop Kodi/XBMC and uimapper ? Terminal sudo stop xbmc sudo stop uimapper evtest There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
11th Aug, 2015, 11:31 PM
Post: #5
|
|||
|
|||
RE: egalax touchscreen not working
OK bit of an update. I worked on this a lot yesterday and learned a lot. There's quite a bit of info so I'll try and make it as concise as possible. First off to answer your last question, stopping xbmc and unimapper doesn't seem to work. (I did this via SSH which works great but I can't seem to copy w/o entering a command. Anyway,)
xbian@xbian ~ $ sudo stop xbmc stop: Unknown instance: xbian@xbian ~ $ sudo stop unimapper stop: Unknown job: unimapper ----------------------------
Evtest seems to be working to some extent for whatever reason? This boggles my mind why it seems to work now but didn't before. The only thing is it reaches the 'interrupt to exit' point but seemingly locks up. Here it is via the SSH: xbian@xbian ~ $ evtest No device specified, trying to scan all of /dev/input/event* Not running as root, no devices may be available. Available devices: /dev/input/event0: DELL Dell USB Wired Multimedia Keyboard /dev/input/event1: DELL Dell USB Wired Multimedia Keyboard /dev/input/event2: eGalax Inc. USB TouchController Select the device event number [0-2]: 2 Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x100 Input device name: "eGalax Inc. USB TouchController" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 330 (BTN_TOUCH) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 324 Min 0 Max 2047 Event code 1 (ABS_Y) Value 755 Min 0 Max 2047 Properties: Testing ... (interrupt to exit) /boot/cmdline.txt/boot/cmdline.txtInput driver version is 1.0.1 Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x100 Input device name: "eGalax Inc. USB TouchController" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 330 (BTN_TOUCH) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 324 Min 0 Max 2047 Event code 1 (ABS_Y) Value 755 Min 0 Max 2047 Properties: Testing ... (interrupt to exit) I let it sit like this for around 40min before I tried to copy this (ctrl c) and this interrupted the testing. Right clicking doesn't work either (it enters previous commands) --------------------------------
The other thing to note is my original assessment as to the touchscreen failing to work all together was wrong. There is indeed a cursor but it typically starts somewhere (way) off screen. If you play with it a bit you can get it to show up, it's just that the calibration is way way off and the x/y axis' are inverted. So that's where I'm at so far. I noticed in the evtest it says 'not running as root' so I figure I'll run the evtest as root and see what happens. |
|||
12th Aug, 2015, 02:59 AM
Post: #6
|
|||
|
|||
RE: egalax touchscreen not working
You made a typo with the bit I am most interested at:
Terminal sudo stop uimapper I suspect uimapper is not running because brantje script failed somehow. Quote:(touch area usually being much larger than the screen resolution so you need something to translate x-y coordinates) Cant test as dont have working touch setup at the mo. Ps. when running evtest on device "eGalax Inc. USB TouchController", and its not grabbed by other process, you can touch the four corners of you screen to determine touch area resolution (mine is 4000 X 4000 I believe). There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
12th Aug, 2015, 03:24 AM
Post: #7
|
|||
|
|||
RE: egalax touchscreen not working
xbian@xbian ~ $ sudo stop uimapper
stop: Unknown instance: |
|||
12th Aug, 2015, 06:57 AM
Post: #8
|
|||
|
|||
RE: egalax touchscreen not working
Try start here up:
Terminal sudo start uimapper Run evtest again to see if another input device has appeared: Terminal evtest If so, boot up Kodi/XBMC: Terminal sudo start xbmc There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
12th Aug, 2015, 08:02 AM
Post: #9
|
|||
|
|||
RE: egalax touchscreen not working
xbian@xbian ~ $ sudo start uimapper
uimapper start/running, process 2791 xbian@xbian ~ $ evtest No device specified, trying to scan all of /dev/input/event* Not running as root, no devices may be available. Available devices: /dev/input/event2: eGalax Inc. USB TouchController Select the device event number [0-0]: 2 USAGE: Grab mode: evtest /dev/input/eventX Query mode: (check exit code) evtest --query /dev/input/eventX <type> <value> <type> is one of: EV_KEY, EV_SW, EV_LED, EV_SND <value> can either be a numerical value, or the textual name of the key/switch/LED/sound being queried (e.g. SW_DOCK). xbian@xbian ~ $ ^C xbian@xbian ~ $ sudo start xbmc xbmc start/running, process 2853 After this it loaded kodi. It then apparently automatically updated 'stuff' as I was typing this in. Didn't look back at the screen in time to see what updated. That being said there doesn't seem to be any changes. And again I seriously appreciate your replies. |
|||
15th Aug, 2015, 02:14 AM
(This post was last modified: 15th Aug, 2015 02:15 AM by deHakkelaar.)
Post: #10
|
|||
|
|||
RE: egalax touchscreen not working
Little explanation + it helps if you try to read that script that you tried to install:
https://raw.githubusercontent.com/brantje/xbian-touch/master/install.sh As you already noticed, x-y coordinates coming from "/dev/input/event2" are way of with Kodi because screen resolution differs from touch resolution. Solution is the "uimapper" Python script that runs in background, grabbing "/dev/input/event2" and creating a new input device for example "/dev/input/event3". This "event3" device will have the translated coordinates derived from the "/etc/pointercal" file, that was created with the "ts_calibrate" tool, and coordinates coming from the "event2" device. As the "event2" device is grabbed already by "uimapper", the only device still available for Kodi will be that "event3" device with translated coordinates. For you to check: 1) whats your current exports: Terminal export 2) With what parameters is uimapper started: Terminal cat /etc/init/uimapper.conf And please try to use the forums [code] or [term] tags when posting screen results or code! There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
19th Aug, 2015, 01:05 AM
Post: #11
|
|||
|
|||
RE: egalax touchscreen not working
Code: xbian@xbian ~ $ export I really need to get a manual and learn the basics of all this. |
|||
19th Aug, 2015, 04:40 AM
(This post was last modified: 19th Aug, 2015 05:44 AM by deHakkelaar.)
Post: #12
|
|||
|
|||
RE: egalax touchscreen not working
Hmmm I tried myself to run that touch install script but noticed my touch
is not detected/no drivers loaded so need to fix first to test. By the looks, everything looks configured correctly. Does that pointercal file exist thats created by the "ts_calibrate" tool ? Terminal cat /etc/pointercal You can run "ts_calibrate" from the bash command line if that pointercal file does not exist but need to activate SSH for the "root" account and set password using the "xbian-config" tool: Terminal sudo xbian-config su - export LD_LIBRARY_PATH=/usr/local/lib export TSLIB_CONSOLEDEVICE=none export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_TSDEVICE=/dev/input/event2 export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_CONFFILE=/usr/local/etc/ts.conf export TSLIB_PLUGINDIR=/usr/local/lib/ts ts_calibrate exit cat /etc/pointercal Are you sure no other input device is created after running: Terminal sudo stop xbmc sudo stop uimapper sudo start uimapper evtest Keep an eye on error/warn messages that might appear when running: Terminal dmesg or Terminal dmesg | tail I'll have a look and test shortly on me own touch when possible. Ps. Below one looks ok to learn bit of bash etc but still bit heavy: http://www.tldp.org/LDP/Bash-Beginners-Guide/html/ There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
22nd Aug, 2015, 01:49 AM
Post: #13
|
|||
|
|||
RE: egalax touchscreen not working
Terminal xbian@xbian ~ $ cat /etc/pointercal 307 -24273 48101768 21271 354 -3832164 65536 720 576 1 Stop xbmc command doesn't seem to work Terminal xbian@xbian ~ $ sudo stop xbmc stop: Unknown instance: As for dmesg command: Code: xbian@xbian ~ $ dmesg Hopefully this is useful. I'm not sure what I'm looking at here but I'm going to look more closely to see if I can find some kind of error. And thanks for that link, I've been reading a lot and it's actually a lot more interesting than I thought it would be. |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
touchscreen egalax + movie demonstration | themad06 | 1 | 8,193 |
10th Jul, 2013 01:52 AM Last Post: Markamc |