Results 1 to 4 of 4
I've been trying to get my Egalax USB touchscreen calibrated. Currently in Linux When I move my finger right the cursor goes down and when I move left it goes ...
- 03-03-2007 #1Just Joined!
- Join Date
- Sep 2006
- Posts
- 27
Bad eeprom error
I've been trying to get my Egalax USB touchscreen calibrated. Currently in Linux When I move my finger right the cursor goes down and when I move left it goes up and so on.
I finaly got the drivers compiled (on my Mandriva 2007).
But, I get a bad eeprom error when I try to do a 4 point calibration.
I found a link that gave the following suggestion
Doing so allows me to move on past the Error when I type "#./4pcal /dev/tkdat0"Add the call to Send4PtData() and a re-read(marked in bold) of the eeprom
in main_() of 4pcal.c
Code:if (CachedReadEEPROM(RomFile, deviceFD, eeprom)) { printf("bad eeprom\n"); Send4PtData(); if (CachedReadEEPROM(RomFile, deviceFD, eeprom)) { Dev_RestoreState(deviceFD); close(deviceFD); return 0; } }
I still get the error, but then the Calibration screen comes up with the 4 crosses, one which is blinking. and I'm told to press the blinking one untill I hear a beep. Well I press it and nothing. I sit there untill it times out. I get the same with 25 point calibration.
My xorg.conf looks as follows
the info for the touchscreen being at the end.Code:# File generated by XFdrake (rev 57713) # ********************************************************************** # Refer to the xorg.conf man page for details about the format of # this file. # ********************************************************************** Section "Files" # font server independent of the X server to render fonts. FontPath "unix/:-1" # minimal fonts to allow X to run without xfs FontPath "/usr/share/fonts/misc:unscaled" EndSection Section "Extensions" Option "Composite" EndSection Section "ServerFlags" #DontZap # disable <Crtl><Alt><BS> (server abort) #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching) AllowMouseOpenFail # allows the server to start up even if the mouse does not work EndSection Section "Module" Load "dbe" # Double-Buffering Extension Load "v4l" # Video for Linux Load "extmod" Load "type1" Load "freetype" Load "glx" # 3D layer EndSection Section "InputDevice" Identifier "Keyboard1" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" Option "XkbOptions" "compose:rwin" EndSection Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/mouse" EndSection Section "Monitor" Identifier "monitor1" VendorName "Plug'n Play" ModelName "SDM-HS74P" HorizSync 28-81 VertRefresh 48-75 # Monitor preferred modeline (60.0 Hz vsync, 64.0 kHz hsync, ratio 5/4) ModeLine "1280x1024" 108 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync # TV fullscreen mode or DVD fullscreen output. # 768x576 @ 79 Hz, 50 kHz hsync ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630 # 768x576 @ 100 Hz, 61.6 kHz hsync ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616 EndSection Section "Device" Identifier "device1" VendorName "nVidia Corp." BoardName "NVIDIA GeForce4 (generic)" Driver "nv" Option "DPMS" EndSection Section "Screen" Identifier "screen1" Device "device1" Monitor "monitor1" DefaultColorDepth 24 Subsection "Display" Depth 8 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240" EndSubsection Subsection "Display" Depth 15 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240" EndSubsection Subsection "Display" Depth 16 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240" EndSubsection Subsection "Display" Depth 24 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240" EndSubsection EndSection Section "ServerLayout" Identifier "layout1" InputDevice "Keyboard1" "CoreKeyboard" InputDevice "Mouse1" "CorePointer" Screen "screen1" InputDevice "TKPANEL" "SendCoreEvents" EndSection ## TouchKit section begin (Please do NOT edit this section!!) ## Section "InputDevice" Identifier "TKPANEL" Driver "touchkit" Option "Device" "/dev/tkdat0" Option "DebugLevel" "0" EndSection ## TouchKit section end ##
If I try to
"./4pcal /dev/ttyS0"
and
"./4pcal /dev/ttyS1"
and a bunch of others but they only give me the bad eeprom not even the calibration screen.
any suggestions would be great.
thanks
- 03-03-2007 #2Linux Newbie
- Join Date
- Feb 2007
- Location
- N. Ireland
- Posts
- 198
I would venture as far as to say that the eeprom is damaged in some way (just by the sheer volume if errors) or mabey the code is a little dodgy. Anyone else have ideas?
TimFinished building PC using PC Pro's A-List! Will add specs soon =)
- 03-05-2007 #3Just Joined!
- Join Date
- Sep 2006
- Posts
- 27
I was my mistake. I download a kernel source for the wrong kernel. I found this out once I fix a few other problems (all of which were user error)
I got it all working great now. Thanks for all the help
- 03-06-2007 #4Linux Newbie
- Join Date
- Feb 2007
- Location
- N. Ireland
- Posts
- 198
Help? lol. It was one post
Glad its working for you.
TimFinished building PC using PC Pro's A-List! Will add specs soon =)


Reply With Quote