eGalax touchscreen calibration - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Configuration (/forum-17.html) +--- Thread: eGalax touchscreen calibration (/thread-832.html) |
RE: eGalax touchscreen calibration - raspuca - 30th Jul, 2013 07:39 AM Great, and how can I update the skin? Thanks RE: eGalax touchscreen calibration - ph87 - 15th Aug, 2013 09:46 AM After spending some loooong nights I got it working!!! I had succesfull calibrated the Touchscreen using your install.sh but... Today I wanted to test it, but it doesn't work anymore... The Calibration Data have changed! How can the calib data change from one day to another? data Yesterday: calib_x_d=1220;calib_x_fact=-0.8;calib_y_d=710;calib_y_fact=-0.8;swap_axes=0; data Today: calib_x_d=1180;calib_x_fact=-0.12;calib_y_d=740;calib_y_fact=-0.1;swap_axes=0; What does it depend on? An other problem is, that I've got a 1280x720 screen but ts_calibtrate recognizes it as a 1440x900 so I can't use his data - I've to calibrate it for my own!!! Hope you can help me... RE: eGalax touchscreen calibration - Markamc - 15th Aug, 2013 06:21 PM (15th Aug, 2013 09:46 AM)ph87 Wrote: After spending some loooong nights I got it working!!! I had succesfull calibrated the Touchscreen using your install.sh but... That calib file is used with Andrei's patch and doesn't change automatically....must be edited manually. The calibration file generated with ts_calib is stored in /etc/pointercal and is only used when you are using uimapper, change the conf file as in tutorial, and check all is ok with evtest. Set your resolution/overscan the same in /boot/config.txt as in xbmc. It's all in the tutorial, it explains it's an alternative method, in order to give easy framebuffer calibration, BTN_RIGHT and single press select. RE: eGalax touchscreen calibration - ph87 - 15th Aug, 2013 08:55 PM Thanke you very much!!! There was something I really missunderstood.... I'll have a try this night...! RE: eGalax touchscreen calibration - brantje - 16th Aug, 2013 12:24 AM (30th Jul, 2013 07:39 AM)raspuca Wrote: Great, and how can I update the skin? http://forum.xbian.org/showthread.php?tid=1120 RE: eGalax touchscreen calibration - ph87 - 16th Aug, 2013 07:31 AM Sorry guys, but I need your help - I can't get it work!!! With evtest all does work!! I've updated the config.txt (ts_calibrate recognizes the resolution right now!!!) Does the install.sh update the etc/pointercal automatically? Do I've to disable Andrei's method to use yours? This is my ts_calibrate output: Code: Please follow the instructions on the display... After calibration the Mouse Arrow is about 20cm away... Edit: When stopping uimapper the calibration is right (maybe then I Andrei's version is active - but Single click doesn't work every time) with uimapper running the pointer is very laggy RE: eGalax touchscreen calibration - Markamc - 16th Aug, 2013 08:33 AM (16th Aug, 2013 07:31 AM)ph87 Wrote: Sorry guys, but I need your help - I can't get it work!!! Andrei's patch is the default config for your TS and will work with the calib file, if uiimapper is not running then it will use the the calib file you posted initially and will not have single click/BTN_RIGHT. If you run the install script and therefore ts_calib then it will create a new pointercal file. Are you sure it's 20cm (200mm) away? How big is your TS? You can check that uimapper is running correctly by typing in ssh... Terminal ps aux Terminal ... ... root 2482 19.6 1.3 8328 5104 ? S< 22:04 0:01 python ./input-read.py /dev/input/event3 -D root 2483 17.8 1.3 8328 5116 ? S< 22:04 0:01 python ./input-create.py configs/touchscreen.py ... ... can you see the python script running, this is is the uimapper processes creating the userinput from the egalax event3. Also check the TS in evtest with uimapper started/stopped and see if the co-ordinates are different, i.e. top left and bottom right, values should be scaled and offset and within the screen resolution when using uimapper. Terminal stop xbmc stop uimapper evtest Terminal stop xbmc start uimapper evtest You can diagnose x,y co-ordinates in xbmc too. In the skin folder you can edit addon.xml file. Changing debugging="false" to "true" displays the pointer position on the screen. Using this you can see how the overscan effects the pointer max/min values http://wiki.xbmc.org/index.php?title=Addon.xml If the pointer seems laggy, you can change the nice value in uimapper.conf file), this increases the process priority, mine is at -7 by default, but you could (not recommended) go upto (down-to) -20.....-10 makes a big difference. Recently many process values have changed a lot to -20 to increase priority. -20 to +20 (hig>low). Type in SSH to see... Terminal ps -efl mark RE: eGalax touchscreen calibration - ph87 - 16th Aug, 2013 09:22 AM I've got a 10" the same as you can get from chalk-elec but I've got a other LVDS-board and hacked up the touchscreen to USB so it does work... Okay that is what I did!! TERMINAL: ps aux Code: 0 S root 482 1 3 70 -10 - 9470 epoll_ 22:55 ? 00:00:30 python ./input-read.py /dev/input/event3 -D stop uimapper: evtest ---> OK start uimapper evtest Code: *********************************************** /etc/pointercal before running install.sh with event3 Code: 8623 28 222424 -52 6602 -106948 65536 1280 720 0 Code: 16199 -15 -37926624 -830 13874 -21981168 65536 1280 720 0 It's still will not working! Thank you for your help!!!! RE: eGalax touchscreen calibration - Markamc - 16th Aug, 2013 09:29 AM It's not working (applying the calibration values) because uimapper is not being used by xbmc...since it seems it is used by something else Ok, so when uimapper is running, evtest can see egalax on event3 and uimapper on event4? and if you select uimapper - touchscreen in evtest is says the process message above, i.e it is 'grabbed'? can list the line in /etc/init/uimapper.conf file with event# please RE: eGalax touchscreen calibration - ph87 - 16th Aug, 2013 09:37 AM Output of install.sh Code: lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-Chicony_USB_Keyboard-event-if01 -> ../event1 /etc/init/uimapper.conf Code: env UIMAPPER_DEV="/dev/input/event3" Output of evtest: Code: /dev/input/event0: Chicony USB Keyboard EDIT::: uimapper was stopped!!! Update: Output of evtest: Code: /dev/input/event0: Chicony USB Keyboard RE: eGalax touchscreen calibration - Markamc - 16th Aug, 2013 09:40 AM Ok, you are special and have a multitouch, I have not tested, try using event4 (touchscreen) and see if it works! RE: eGalax touchscreen calibration - ph87 - 16th Aug, 2013 09:42 AM Updated last post RE: eGalax touchscreen calibration - Markamc - 16th Aug, 2013 09:48 AM does that mean you tried event4? this solution was originally meant for egalax non-multitouch-TS, but it would be great to see it work since I don't think xbmc has full multituch support yet; I am also looking at buying the 7" version from those guys when they have sorted the manufacturing problems.. here is the output i have from egalax in evtest, this is what it needs, basically a EV_KEY > BTN_TOUCH, with EV_ABS ABS_X & Y Terminal 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 983 Min 0 Max 2047 Event code 1 (ABS_Y) Value 894 Min 0 Max 2047 RE: eGalax touchscreen calibration - ph87 - 16th Aug, 2013 09:56 AM I doesn't work with 4 only with 3!!! has in /etc/init/uimapper.conf to be the event from the uimapper(event5) or from the touichscreen(event3)? RE: eGalax touchscreen calibration - Markamc - 16th Aug, 2013 10:08 AM Basically, I grab the device before xbmc does. With egalax I have one event in xbian (or 2 events in a similar rpi xbmc distro) available for the device and if I grab the BTN_TOUCH device then uimapper handles the touchscreen event and xbmc cannot grab it. It seems that xbmc is grabbing the device since uimapper has not got complete control of events. I think this could be changed easily in the python script, but i need to (or you) do some more work. I think we need to grab 2 events , not necessarily the PEN, but the multitouch and touch. I am surprised though that when xbmc is not running the uimapper device is grabbed? by what? |