InDashPC.org Forum Index InDashPC.org
In Dash Car PC forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Egalax TS driver makes me nuts !!!

 
Post new topic   Reply to topic    InDashPC.org Forum Index -> Kernel stuff
View previous topic :: View next topic  
Author Message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Wed Jan 26, 2005 3:26 pm    Post subject: Egalax TS driver makes me nuts !!! Reply with quote

Last time I tried to install that driver( Egalax ) on my 2.4.23 it was real simple and everything worked right out of the box.
After I lost my HDD, I restored pretty much everything but now I cannot get Egalax to work. No matter what I do, which devices mapping it to. No way. It does not work. Sad(
I'll better to write my own driver to be sure it will work though...
Back to top
View user's profile Send private message
dafcok
Newbie


Joined: 24 Dec 2004
Posts: 11

PostPosted: Sat Jan 29, 2005 5:08 am    Post subject: Reply with quote

AFAIK there is low-level information about usb protocols on the internet
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sat Jan 29, 2005 11:41 pm    Post subject: Reply with quote

The protocol is known, the driver itself has it inside. The only thing is to write the right driver. Which is hmmm. Time consuming...
Back to top
View user's profile Send private message
barb3tta
Newbie


Joined: 02 Feb 2005
Posts: 30

PostPosted: Wed Feb 02, 2005 5:45 am    Post subject: Reply with quote

Hi!
Great site!
I'm trying to install a carPC in my car.
I've:
epia m-9000
128MD RAM
DVD-ROM slim
TFT Lilliput with touchscreen.

I'm trying to build a LFS embedded distribution, but I'm quite a noob...
So Your project and site is very helpful for me!!!

Anyway, I've tried to use my lilliput 7" on my debian-home system, and I got it to work under X (thanks to a guide posted at mp3car.com). The big problem is the driver included in the 2.6 kernel won't work correctly with Lilliput TS. The reason is Lilliput TS controller has inverted axis!
So I have to "apply a patch":
in the drivers/usb/input/touchkitusb.c file go to line 55:
Code:
55:#define TOUCHKIT_GET_X(dat) (((dat)[3] << 7) | (dat)[4])
56:#define TOUCHKIT_GET_Y(dat) (((dat)[1] << 7) | (dat)[2])

and then invert X with Y and viceversa:
[code:1:bf91b97e36]#define TOUCHKIT_GET_Y(dat) (((dat)[3] << 7) | (dat)[4])

then recompile the kernel.
Dunno what kind of TS you have, this can be a solution.

bye!
Back to top
View user's profile Send private message Visit poster's website
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Wed Feb 02, 2005 4:49 pm    Post subject: Reply with quote

Cool. The other thing I noticed last time when I had this driver working was the scaling that needed based on a resolution you get.
How's the X dealing with it ?
Back to top
View user's profile Send private message
barb3tta
Newbie


Joined: 02 Feb 2005
Posts: 30

PostPosted: Wed Feb 02, 2005 11:52 pm    Post subject: Reply with quote

I didn't try too long the TS under X.

Here's the config that works quite good on xfree:
Section "InputDevice"
Identifier "touchscreen0"
Driver "evtouch"
Option "Device" "/dev/input/event2"
Option "DeviceName" "touchscreen"
Option "MinX" "49"
Option "MaxX" "1980"
Option "MinY" "100"
Option "MaxY" "1960"
Option "DragTimer" "500"
Option "MoveLimit" "100"
Option "ReportingMode" "Raw"
EndSection

The screen resolution was 1024x768.
I haven't tried any other settings.
I simply copy&pasted from the mp3car forum. Wink

bye!
Back to top
View user's profile Send private message Visit poster's website
sinman
Newbie


Joined: 02 Nov 2005
Posts: 9

PostPosted: Wed Nov 09, 2005 3:16 am    Post subject: Reply with quote

Sorry my bad english, I'm from Spain. Embarassed

I'm trying the epia iso, with lilliput, and I've the flip axis problem, but when I configured it in "general options", it do nothing and I think that the devFB needs restart, doesn't it?

In a standard distro with X server, i can do it by pressing Ctrl+alt+backspc but in this distro, I don't know how.

Is the only way, install it to a HDD and boot from it, to take the new parameters?
Back to top
View user's profile Send private message Visit poster's website
sinman
Newbie


Joined: 02 Nov 2005
Posts: 9

PostPosted: Wed Nov 09, 2005 4:22 am    Post subject: Reply with quote

Sorry, now it's OK, I burned the wrong ISO Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    InDashPC.org Forum Index -> Kernel stuff All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group