View previous topic :: View next topic |
Author |
Message |
sandcrawler Tux's lil' helper
Joined: 24 Mar 2003 Posts: 149 Location: SaintLouis, MO
|
Posted: Wed Jan 11, 2006 6:05 pm Post subject: [HOW-TO] - Egalax usb touchscreen with kernel >2.6.14 |
|
|
EDITED April 2006
This has been tested on kernel gentoo-sources 2.6.14-r5 compiled with GCC 3.4.x and the FedoraIII drivers from Egalax and a lilliput 8" XGA touchscreen LCD.
Additionally this has now been tested on gentoo-sources 2.6.15-r1 under MODULAR Xorg 7 with XGL/Compiz under the Fedora Core 5 driver. Going to modular Xorg did throw hitch into the install.
You will need the following packages...
For Kernels <2.6.15
Code: |
The fedora core III driver from
http://www.egalax.com.tw/
the "verify_area" patch from
[url=http://www.colino.net/wordpress-1.5/archives/2005/10/29/fglrx-unknown-symbol-verify_area/]This Blogger[/url]
First, install the verify_area module and modprobe it.
tar zxpf verify_area.tar.gz
cd verify_area
make && make install
Then, unzip the FedoraIII.zip file.
This will extract "touchkit.setup.sh"
|
For Kernels >2.6.15
Code: |
Get the Fedora Core 5 package from
http://www.egalax.com.tw/
extract the source (tar zxpf packagename) and then
|
For what it's worth, it may be worth it to try the Fedora 5 instructions on kernels <2.6.15. It wasn't available when I originally did this howto. But, back to the howto...
type "sh touchkit.setup.sh"
You'll get some error messages about rpm not existing, a folder in /tmp will now exist called "touchkit."
cd to /tmp/touchkit
for the fedora III version
edit the setup file and take out lines 11 ("package=(make tcl tk)") through line 39 ("done").
for the fedora 5 version (thanks Ed!)
edit the setup file and change lines 21 and 22 to
PR_AUTO_ready=1
FULL_ready=1
Next,
for either version
next enter the /tmp/touchkit/usb folder and edit the Makefile by finding the line
KDIR:= /lib/modules/$whatever....
and change it to
KDIR:= /usr/src/linux
Oddly enough you'll probably have to change to /usr/src/linux and run make so that the make scripts are completed. Information about this is can be found in my reference at the end of this doc.
If you are running modular Xorg (Xorg 7.0+) at this point you need to stop and make sure the imake package has been installed. If you get an error about xmkmf that is because the XFree86-devel packages are no longer instaled and imake now provides that package. xmkmf is required to build this module.
now, go back to /tmp/touchscreen/
run setup (./setup)
select option 2
if everything works well you'll see most of the script run right with the exception of being able to find the rc.local file. Don't worry about that.
now change to the /tmp/touchkit/usb folder again.
insmod tkusb.ko
if that works then you are close to completion.
If the script didn't copy the tkusb.ko module to your modules tree then do it now
cp tkusb.ko /lib/modules/2.6.1x-xx/kernel/drivers/usb/input/
replace the x-xx with your kernel version (you can find this by uname -r)
Edit /etc/X11/xorg.conf and add the following.
In Section "ServerLayout" add
InputDevice "TKPANEL" "SendCoreEvents"
Add a new Input Device section like...
Section "InputDevice"
identifier "TKPANEL"
Driver "touchkit"
Option "Device" "/dev/tkdat0"
Option "DeviceName" "touchscreen"
Option "SendCoreEvents" "true"
Option "DebugLevel" "0
EndSection
Additionally I added touchkitusb to my hotplug blacklists as it's too much trouble to configure and we don't want it to interfere with tkusb.
echo "touchkitusb" >> /etc/hotplug/blacklist
At this point I am able to reboot and all the modules appear to take care of loading themselves.
you will probably want to run the 25pt calibration instead of the 4point calibration. ** I have been unable to run the calibration under XGL desktop. I'm still working on this as I have little time to test what is happening.
login as root, open a terminal and execute "touchcfg"
if the panel is not on the list of candidates, add it.
Click the advanced>> button at the bottom.
You'll have to hold your stylus on the bullseye until prompted to go to the next one.
Finally, depending on how your system detects everything, you may want to make sure the modules are loading and ready... going_mad provided us with this quick fix...
- added tkusb to loaded modules at boot time
- added usbpnpd and tpaneld to /etc/conf.d/local.start
I personally just had to add this to /etc/conf.d/local.start
/usr/bin/tpaneld -f 1>&2
Have fun... If you have any questions I'll probably forget how I fixed it, but you're welcome to ask anyway.
This howto was put together based on Tim Starr's Debian workaround found at
http://tzilla.is-a-geek.com/articles/egalax/ _________________ --
sandcrawler
Last edited by sandcrawler on Tue Apr 25, 2006 6:50 pm; edited 6 times in total |
|
Back to top |
|
|
jdaugherty n00b
Joined: 15 Aug 2005 Posts: 23
|
Posted: Tue Jan 24, 2006 3:16 am Post subject: |
|
|
What kernel are you using? Currently, i'm getting some compile failures with the vanilla 2.6.14 sources. |
|
Back to top |
|
|
evil-ed n00b
Joined: 08 Feb 2006 Posts: 1
|
Posted: Wed Feb 08, 2006 6:56 pm Post subject: |
|
|
since i'm using 2.6.15-nitro3 and have no ati card i've applied some fixes for your guide:
i took the setup Fedora 4 and don't used the verify_area patch !
for some reason patching of "setup" doesen't work for me so i changed the lines 21+22 to:
Quote: | PR_AUTO_ready=1
FULL_ready=1 |
a little sloppy, but it is working
so touchkit works for 2.6.15 kernels
bye ed |
|
Back to top |
|
|
going_mad n00b
Joined: 20 Sep 2003 Posts: 42
|
Posted: Tue Feb 21, 2006 7:08 pm Post subject: |
|
|
Great help, thank you so much!!!
Finally I've been able to calibrate my 7" Lilliput touchscreen following your direction on a 2.6.13-r5 gentoo box.
To go further I need to know how to have the touchscreen working when in X after avery start in automatic mode, not just in the calibration utility. Any hints?
Thanks again, great how-to!
G_M
[SOLVED]
- added tkusb to loaded modules at boot time
- added usbpnpd and tpaneld to /etc/conf.d/local.start |
|
Back to top |
|
|
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Thu Jul 20, 2006 2:44 am Post subject: |
|
|
BUMP: This works kernel 2.6.17 also.... I should make an e-build for this....
EDIT: I used the fedora V files _________________ Do not meddle in the affairs of wizards, for they are subtle and quick to anger. |
|
Back to top |
|
|
RaZoR1394 Guru
Joined: 09 Jan 2005 Posts: 356
|
Posted: Sun Jun 24, 2007 8:55 pm Post subject: |
|
|
rmh3093 - How goes the ebuild creation? _________________ http://en.wikipedia.org/wiki/Cell_(microprocessor)
Last edited by RaZoR1394 on Mon Jun 25, 2007 6:26 pm; edited 2 times in total |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Mon Jun 25, 2007 12:44 pm Post subject: |
|
|
Moved from Kernel & Hardware to Documentation, Tips & Tricks. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Mon Aug 20, 2007 12:52 am Post subject: |
|
|
The new version of the driver is really nice!!!! There is no more tpaneld!
All you have to do is build the verify_area module, build the tkusb module, cp the supplied egalax_drv.so to /usr/lib/xorg/modules/input, load the modules and then start X.... once in X start the TouchKit binary and you will get an awsome gui too to configure+calibrate the touchscreen _________________ Do not meddle in the affairs of wizards, for they are subtle and quick to anger. |
|
Back to top |
|
|
|