eGalax touchscreen calibration
|
28th May, 2013, 05:04 AM
Post: #61
|
|||
|
|||
eGalax touchscreen calibration
Can you put the new patch on pastebin and link it here?
Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
28th May, 2013, 03:43 PM
Post: #62
|
|||
|
|||
RE: eGalax touchscreen calibration
Here you go http://pastebin.com/yWg5JeDu. I altered the eGalaxTouchScreen.patch from the git with my new line of code.
Now I only have to figure out a nice way to access the context menu with only single leftclick avialable. Atm I use XBMC Commander on the phone or the pad or a usb keyboard for that. |
|||
29th May, 2013, 08:39 PM
Post: #63
|
|||
|
|||
RE: eGalax touchscreen calibration
(28th May, 2013 03:43 PM)TobyM Wrote: Here you go http://pastebin.com/yWg5JeDu. I altered the eGalaxTouchScreen.patch from the git with my new line of code.Well maybe an double click / long click? (28th May, 2013 12:44 AM)TobyM Wrote: The working touchscreen_axes_calib for a Acer T230H are:Hi mate, Thanks for getting it fixed. However, i connected my touchscreen via RCA, since there is no HDMI connector. The resolution is 720x480, so that the 420p resolution right? How can i generate an config file for that resolution? XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
29th May, 2013, 09:38 PM
Post: #64
|
|||
|
|||
RE: eGalax touchscreen calibration
The equation is,
m_mouseX = g_graphicsContext.GetWidth() - (int)(((float)levt.value) * (calib_x_fact)) - calib_x_d; 1280 - ((Touch screen values) * -0.666) - 1280 and for 1080 1920 - ((Touch screen values) * -0.666) - 1920 If you change the overscan though in config.txt or video calibration, this constant g_graphicsContext.GetWidth() effects the calibration values, so you can alter the last value to change the offset back to corner of screen. hope this makes sense |
|||
29th May, 2013, 10:26 PM
Post: #65
|
|||
|
|||
RE: eGalax touchscreen calibration
So from this
Quote:calib_x_d=1280;calib_x_fact=-0.66667;calib_y_d=720;calib_y_fact=-0.666667;swap_axes=0;I change it to this Quote:calib_x_d=720;calib_x_fact=-0.33334;calib_y_d=480;calib_y_fact=-0.333334;swap_axes=0; XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
29th May, 2013, 10:47 PM
Post: #66
|
|||
|
|||
RE: eGalax touchscreen calibration
you can try, although you might have to tweak the calib_x_d values, if it is using overscan when using RCA, i found it helpful having the pointer values displayed on screen so you can see the offset of the pointer to the touch onscreen. you only need to change addon.xml in chosen skin (default is skin.confluence) debugging to "true".
The raw x-y data from egalax, is like yours it gives 0-2047 points over the x-y coordinates of the screen also, so it will be worth calculating the scale factors again too, don't think they are far off though. |
|||
29th May, 2013, 11:25 PM
Post: #67
|
|||
|
|||
RE: eGalax touchscreen calibration
Afaik i don't use any overscan.
Will test those value's when new beta is ready. XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
1st Jun, 2013, 03:57 AM
Post: #68
|
|||
|
|||
RE: eGalax touchscreen calibration
hello everybody,
my touchscreen is working, but i have a little problem. in the middle of the screen the touch is very well calibrated. but when i touch the corners, the mouse position is on another position than i have touched. for example: if i touch in the upper right corner, the mouse position is about 1cm down and 1cm left. on the upper left corner, the mouse position is 1cm down and 1cm right. this is very strange. i have done video calibration so that the xbian will not fill the whole screen, but this should not be the solution?! hope you can help. |
|||
1st Jun, 2013, 05:12 AM
Post: #69
|
|||
|
|||
RE: eGalax touchscreen calibration
The video calibration in xbmc will affect the calibration values, again , if you have the pointer values set in the addon.xml, you can see how it scales the max/min pointer position. You need then to edit the scale factor and offsets to suit. I need to do this atm to fit my 7" screen within a 6.5" bezel. Hence values are different.
To move the pointer back to top-left, I need to make the calib_x_d / y_d values bigger , but if it doesn't reach the right-hand side then you need to change the scale facotrs also. Use putty to start and stop xbmc and change the values in the calib file to suit |
|||
6th Jun, 2013, 06:33 PM
Post: #70
|
|||
|
|||
RE: eGalax touchscreen calibration
Got it almost working, only thing left is the axes.
With swap_axes=1: up is down, left is right. And with swap_axes=0: up is right, left is down. XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
6th Jun, 2013, 09:50 PM
Post: #71
|
|||
|
|||
RE: eGalax touchscreen calibration | |||
6th Jun, 2013, 11:35 PM
Post: #72
|
|||
|
|||
RE: eGalax touchscreen calibration
(6th Jun, 2013 09:50 PM)Markamc Wrote:They are already in the minus -0.66667 and if i remove it, then the cursor won't show up, also adding + doesn't help.(6th Jun, 2013 06:33 PM)brantje Wrote: Got it almost working, only thing left is the axes. XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
7th Jun, 2013, 12:34 AM
Post: #73
|
|||
|
|||
RE: eGalax touchscreen calibration
OK, so you need to keep swap_axes = 1,
this should gives you the correct movement, albeit in the wrong direction. So next get the direction correct: the equation, is desired pointer_position = constant - (scale-factor*reported-touch-position) - constant the first constant is fixed at " the graphicsContext.GetWidth() value . You can find this by using the debugging 'true' in addon.xml and then moving mouse to maximum screen positions in xbmc. The display at the top will show pointer x,y values. So, now you should know the value used internally in xbmc, the sign of the scale factor will add/subtract the scaled touch position, so you need the correct 'calib_y_d' value, in theory should be the same as the first constant , but you can change to bring the pointer back in place. Initially set this the same as the maximum pointer values on screen. The formula in xbmc was written by Andrei, it doesn't need the initial constant really. If you cannot see pointer, at least the reported position may give you an indication that the hardware is working (as an aside, I've been looking into opengalax or python-uinput-mapper and python-evdev. these run as a daemon and remap the evdev egalax input/event to another uinput device which drive xbmc; advantages are by using a user generated input/event, it sorts the calibration externally to xbmc and allows for calibration parameters and possibly right-click) |
|||
7th Jun, 2013, 01:01 AM
Post: #74
|
|||
|
|||
RE: eGalax touchscreen calibration
Well i'm sure the hardware is working.
Testing now the internal value's. Resolution is now 1280x720, since i can connect my uhdmi->vga from my tablet to the raspberry using a uhdmi->hdmi converter. (7th Jun, 2013 12:34 AM)Markamc Wrote: the first constant is fixed at " the graphicsContext.GetWidth() value . You can find this by using the debugging 'true' in addon.xml and then moving mouse to maximum screen positions in xbmc. The display at the top will show pointer x,y values.Well with the 'mouse' in the right-bottom corner xbmc reports: 1260,706. I can't get the mouse in the right-corner, max i could get is 1266,146 XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
7th Jun, 2013, 01:18 AM
Post: #75
|
|||
|
|||
RE: eGalax touchscreen calibration
ok, so the calib file values are?
calib_x_d=1280;calib_x_fact=-0.66667;calib_y_d=720;calib_y_fact=-0.666667;swap_axes=0; as before |
|||
« 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 | 18,926 |
17th Jan, 2015 10:34 PM Last Post: wash |
|
Tutorial: Touchscreen calibration & extra features | Markamc | 0 | 7,301 |
2nd Jul, 2013 12:11 AM Last Post: Markamc |