eGalax touchscreen calibration
|
16th Aug, 2013, 10:12 AM
Post: #181
|
|||
|
|||
RE: eGalax touchscreen calibration
My evtest:
Code: /dev/input/event0: Chicony USB Keyboard My /etc/init/uimapper.conf Code: env UIMAPPER_DEV="/dev/input/event3" Code: XBian touch installer by brantje calibration does only work with 3 neither with 2 nor 4... install.sh has still no effect... When you want some Information please tell!!! Maybe I've confused you and did something wrong... I thank very very much for your help!!! |
|||
16th Aug, 2013, 10:18 AM
Post: #182
|
|||
|
|||
RE: eGalax touchscreen calibration
when you select event 5 in evtest can you get any output for touchscreen ABS_X and Y?
can you see in evtest which event gives feedback for touchscreen ABS_X & Y, when uimapper is stopped, is it event3? |
|||
16th Aug, 2013, 10:22 AM
Post: #183
|
|||
|
|||
RE: eGalax touchscreen calibration
evtest Output with event5
Code: Event: time 1376613295.596358, -------------- SYN_REPORT ------------ When I stop uimapper then does only event3 work in evtest uimapper stopped and evtest with event3 Code: Event: time 1376612887.937197, -------------- SYN_REPORT ------------ Thanky you very much again!!! But now I've to go to bed! I've to go up early and it's 2:36... Hope I'll have time tomorrow... |
|||
16th Aug, 2013, 10:35 AM
Post: #184
|
|||
|
|||
RE: eGalax touchscreen calibration
Yes, if uimapper is running it grabs 'exclusively' the event you have in uimapper.conf, in your case event3.
Your output from evtest (uimapper event5) seems to change the ABS_X/Y etc, but not the (ABS_MT_POS) See what the values are for top left and bottom right for the ABS_X/Y, these are the values that uimapper changes and xbmc uses, I still think the problem is that xbmc is grabbing the device and stopping uimapper from applying the calibration |
|||
16th Aug, 2013, 10:40 AM
Post: #185
|
|||
|
|||
RE: eGalax touchscreen calibration
Last post this night...
Top left: Code: Event: time 1376613528.965423, -------------- SYN_REPORT ------------ bottom right: Code: Event: time 1376613600.077752, -------------- SYN_REPORT ------------ Thanky you very much again!!! But now I've to go to bed! I've to go up early and it's 2:40... Hope I'll have time tomorrow... |
|||
16th Aug, 2013, 10:43 AM
Post: #186
|
|||
|
|||
RE: eGalax touchscreen calibration
Ok, so the values are good and uimapper is generating them, so I think we need to make xbmc grab the device and then maybe all ok
goodnight my friend --------------------------------------------- PM'd you with something to test |
|||
17th Aug, 2013, 06:51 PM
Post: #187
|
|||
|
|||
RE: eGalax touchscreen calibration
I wonder why uimapper isn't starting.
Edit: marc, if i plug in an usb drive, and remove it, than uimapper is stopped. Is there an way to keep it running? XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
18th Aug, 2013, 02:35 AM
Post: #188
|
|||
|
|||
RE: eGalax touchscreen calibration
(17th Aug, 2013 06:51 PM)brantje Wrote: I wonder why uimapper isn't starting. Hi Branjte, Uimapper will respawn and should pick event before xbmc does, i can get reconnected when I unplug and replug. Problem is once xbmc has grabbed a device it needs to lose it so uimapper can get it again. If the event number changes (i.e. with new device added) then this can pose a problem. I have rewritten some code for the conf file that auto-selects the eGalax event number, works for only one entry for eGalax though (sometimes on some distros there are more than one event no. listed for device). Fortunately only one event on xbian though. See here... http://markamc.cybaman.net/?p=50#comment-77 If you can see a way to mod the code then it would be good, once the calib is done , it only needs to monitor correct event for device. This latest uimapper.conf works for me atm, I am testing. |
|||
20th Aug, 2013, 10:28 PM
Post: #189
|
|||
|
|||
RE: eGalax touchscreen calibration
I'm busy with a nice touch skin: TouchFluence
XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
26th Aug, 2013, 12:10 AM
Post: #190
|
|||
|
|||
RE: eGalax touchscreen calibration
I like your TouchFluence skin! Good job!
|
|||
27th Aug, 2013, 02:05 AM
Post: #191
|
|||
|
|||
Possible Solution to make it work on N-TRIG Multitouchscreens
Hello guys,
finally I've got make it work on my Multitouchscreen (same type as you can get from chalc-elec [10"]). While swiping the pointer is a bit laggy but it works great with a Touch-skin where you don't have to swipe At first this is not my work!!! Nearly all scripts and hints were made my brantje and Markamc (thank you very much for your very good and fast support!) -Thank you very much!!!! So that is what you have to do (this worked for me): Terminal wget https://github.com/brantje/xbian-touch/raw/master/install.sh sudo sh install.sh stop uimapper stop xbmc wget --no-check -O uimapper.tar.gz "https://docs.google.com/uc?export=download&id=0B4lrG9aRe-8MWXUtaktRbWVFdDA" sudo mkdir -p /scripts && tar -zxvf uimapper.tar.gz -C /scripts Next step: Terminal 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: Chicony USB Keyboard /dev/input/event1: Chicony USB Keyboard /dev/input/event2: N-Trig Pen /dev/input/event3: N-Trig MultiTouch /dev/input/event4: N-Trig Touchscreen Select the device event number [0-4]: Now open uimapper.conf: Terminal sudo nano /etc/init/uimapper.conf Terminal #!upstart description "uimapper" env UIMAPPER_DEV="/dev/input/event3" <-------- Put in here your event Number for Multitouch env UIMAPPER_CONF="configs/multitouch.py" <-------- change to multitouch.py env UIMAPPER_DIR="/scripts/uinput-mapper" start on (input-device-added SUBSYSTEM=input) stop on input-device-removed nice -10 kill timeout 1 expect fork script chdir $UIMAPPER_DIR exec ./input-read.py $UIMAPPER_DEV -D | ./input-create.py $UIMAPPER_CONF & exec ./input-read.py "/dev/input/event4" -D & <--------Add this line with your event Number for Touchscreen end script respawn Now we have to reduce the tine for the touch-events (it's a capacitive touchscreen so it's more sensitive): Terminal nano /scripts/uinput-mapper/input-create.py Terminal if inrange <= 400: if holdtime > 0.02 and holdtime <= 0.50: Okay that must be all... Now just run: Terminal cd ~ sudo sh install.sh XBian touch installer by brantje Already installed... Recalibrating Listing event devices lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-Chicony_USB_Keyboard-event-if01 -> ../event1 lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-Chicony_USB_Keyboard-event-kbd -> ../event0 lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-N-trig_DuoSense_11.20.10.53.16-event-if01 -> ../event3 lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-N-trig_DuoSense_11.20.10.53.16-event-mouse -> ../event2 lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-N-trig_DuoSense_11.20.10.53.16-if01-event-mouse -> ../event2 What is the event number of the touchscreen? eg: event0 then you type 0, followed by [ENTER] Calibrating does only work with the event Number which I've mentioned above... Hope this works for you ---- Regards, ph87 |
|||
27th Aug, 2013, 08:55 PM
Post: #192
|
|||
|
|||
RE: eGalax touchscreen calibration
Marc, the ui-mapper is updated? If so, then i will place a new package on git, or i give you access.
May i prestent: Touchfluence -> Please test it and report back =) XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
27th Aug, 2013, 09:49 PM
Post: #193
|
|||
|
|||
RE: eGalax touchscreen calibration
(27th Aug, 2013 08:55 PM)brantje Wrote: Marc, the ui-mapper is updated? If so, then i will place a new package on git, or i give you access. Yep, I made updates to uimapper.tar.gz to fix bugs when changing resolution (may have been a conflict with xbmc patch). It should only be necessary to calibrate once, now scaling the calibration values to suit different screen modes...(again, for me at least!! always a disclaimer!) Some optional additions to uimapper.conf if you use a Ntrig, or other Multitouch device with many event entries. As explained above by ph87 I'll give it a go later. cheers. mark |
|||
28th Aug, 2013, 12:46 AM
Post: #194
|
|||
|
|||
AW: eGalax touchscreen calibration
It's working for me... but should I still update your scripts? Are there some other improvements regarding speed or handling... whose can be important?
|
|||
28th Aug, 2013, 02:39 AM
Post: #195
|
|||
|
|||
RE: eGalax touchscreen calibration
(28th Aug, 2013 12:46 AM)ph87 Wrote: It's working for me... but should I still update your scripts? Are there some other improvements regarding speed or handling... whose can be important? I made some changes to touchscreen.py, I have your mutlitouch.py config included in the new uimapper.tar.gz file so if you leave the conf file it should still work ok. I need to compare the two config files to see differences. It might be laggy since its reading two events from the TS, maybe I can find a way to grab all events but not read, I will look into the 'grab' code? Your TS is a much higher resolution to, maybe this makes a difference. No speed improvements atm though, just bugs with resolution changes and calibration. Also been looking into PyPy for speed improvements, a little busy at work so I have less time atm. I'll keep you posted... mark |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[PROBLEM] Touchscreen calibration is wrong and i'm going crazy. | wash | 5 | 19,104 |
17th Jan, 2015 10:34 PM Last Post: wash |
|
Tutorial: Touchscreen calibration & extra features | Markamc | 0 | 7,346 |
2nd Jul, 2013 12:11 AM Last Post: Markamc |