Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

eGalax touchscreen calibration
Thank you for your donation

Pages (15): 1 2 3 4 5 ... 15 Next »
Post Reply 
 
Thread Rating:
  • 5 Votes - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
eGalax touchscreen calibration
24th Apr, 2013, 04:40 PM
Post: #1
raspuca Offline
Registered
Posts: 23
Joined: Apr 2013
Reputation: 0
eGalax touchscreen calibration
Hi All!! I'm a new member and i like this forum Smile
I ha ve an issue with xBian...i have a eGalax touchscreen usb and the touch is recognized by the xbian, but is not calibrated with my finger...how could calibrate it?? It was perfect for my carpc project!
Thank you very much
Luca
Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 07:32 AM
Post: #2
Markamc Offline
Registered
Posts: 94
Joined: Apr 2013
Reputation: 4
RE: eGalax touchscreen calibration
Hi Luca,

I have my egalax touch screen (car-pc project) working and calibrated with Xbian. I used the Xbian image, it has the kernel modules necessary for touchscreen support. The only thing I did was follow the guide to re-compile xbmc with the patched files from Andrei included. Follow this guide, it worked for me, then you can add the file: usr/share/eGalaxCalibration/touchscreen_axes_calib, with you data and modify the values to adjust your screen calibration (as Andrei describes)

https://github.com/xbianonpi/xbian/wiki/Compiling-XBMC-&-XBMC-dependencies

The only thing I needed to do was remove some coding (link below) as I have stated on Andrei's blog, so I could achieve a double click; I found I had no click just a constant mousedrag error in xbmc

http://engineering-diy.blogspot.co.uk/2013/02/raspberry-pi-raspbian-xbmc-and-egalax-7.html?showComment=1364419629030#c8991511687109589988

Don' forget to make a swapfile, I needed to, to compile XBMC on 256mb pi

For reference, I needed to play with the offset and scale values in the calib file for my 7" 1280x720 touchscreen,
calib fle parameters are as follows:

calib_x_d=1280;calib_x_fact=-0.625;calib_y_d=760;calib_y_fact=-0.374799606;swap_axes=0;

(i scaled the values t fit within a bezel around the screen)

Hope this helps

mark
Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 07:38 AM
Post: #3
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: eGalax touchscreen calibration
@Both, can you guys add some log files on how to recognize if this touchscreen is connected? That we can add a condition to stop executing that small piece of code.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 08:07 AM
Post: #4
raspuca Offline
Registered
Posts: 23
Joined: Apr 2013
Reputation: 0
RE: eGalax touchscreen calibration
Thanks you very much!! Tomorrow i will try!
@CurlyMo where can i find the log?
Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 08:11 AM
Post: #5
Markamc Offline
Registered
Posts: 94
Joined: Apr 2013
Reputation: 4
RE: eGalax touchscreen calibration
Does this help, I compiled beta1 to get calib to work and removed some code to get double click back. I cut the file down to attach. If you want more let me know


Attached File(s)
.txt  xbmc-log.txt (Size: 2.97 KB / Downloads: 5)
Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 08:19 AM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: eGalax touchscreen calibration
What is the output of cat /proc/bus/input/devices

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 08:26 AM
Post: #7
Markamc Offline
Registered
Posts: 94
Joined: Apr 2013
Reputation: 4
RE: eGalax touchscreen calibration
(25th Apr, 2013 08:19 AM)CurlyMo Wrote:  What is the output of cat /proc/bus/input/devices


Attached File(s)
.txt  devices.txt (Size: 657 bytes / Downloads: 11)
Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 09:30 AM
Post: #8
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: eGalax touchscreen calibration
I misunderstood you, so the post where totally irrelevant. So keep this thread clean i removed them.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 09:37 AM
Post: #9
Markamc Offline
Registered
Posts: 94
Joined: Apr 2013
Reputation: 4
RE: eGalax touchscreen calibration
I can confirm this works for me. If you like i can email my MouseStat.cpp / LinuxInputDevices.cpp file so you can compare.

I appreciate you misunderstood, although I disagree that my post should be removed as being "irrelevant". It took me quite some time to make this work and any help I could provide to the OP should be considered as "relevant" to "his" problem until the beta can provide such fixes for all. Please reconsider, I don't like wasting my spare time

Kind regards

mark
Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 05:28 PM
Post: #10
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: eGalax touchscreen calibration
@brantje, can you confirm that if we remove these lines, the device still works (and maybe a little better). That is essentially what Markamc suggested:
https://github.com/xbianonpi/xbian-patches/blob/master/xbmc/eGalaxTouchScreen.patch#L34-L40

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 05:39 PM
Post: #11
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: eGalax touchscreen calibration
Note that that patch requires updating, @CurlyMo BTW the patch you commited didn't cause the compilation errors, it was a commit on the XBMC git.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 05:44 PM
Post: #12
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: eGalax touchscreen calibration
I know, but what i already said, i was recreating a patch that already existed. So my suggestions where irrelevant because i didn't knew that yesterday.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 05:48 PM
Post: #13
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: eGalax touchscreen calibration
I see, but if I understand right, Markamc wants to help is with fixing the eGalaxTouchScreen.patch? (https://github.com/xbianonpi/xbian-patches/blob/master/xbmc/eGalaxTouchScreen.patch )

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 05:51 PM
Post: #14
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: eGalax touchscreen calibration
He suggests removing these lines: https://github.com/xbianonpi/xbian-patch...ch#L34-L40

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Apr, 2013, 06:31 PM
Post: #15
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: eGalax touchscreen calibration
Then try it Smile

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (15): 1 2 3 4 5 ... 15 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [PROBLEM] Touchscreen calibration is wrong and i'm going crazy. wash 5 19,812 17th Jan, 2015 10:34 PM
Last Post: wash
  Tutorial: Touchscreen calibration & extra features Markamc 0 7,558 2nd Jul, 2013 12:11 AM
Last Post: Markamc

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 20th May, 2025, 01:49 PM Powered By MyBB, © 2002-2025 MyBB Group.