LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-12-2006, 07:54 PM   #16
mrado
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0

Use the SwapAxes option (option "SwapAxes "1") if your cursor is moving in the wrong direction. Hey ZX_SA do you have a copy of that driver without the device detection part, already compiled? My Elo 2700 controller seems to swap the Z and Y axes. Thanks Much
 
Old 01-12-2006, 11:57 PM   #17
ZX_SA
LQ Newbie
 
Registered: May 2004
Location: Stellenbosch, South Africa
Distribution: Kubuntu breezy, MDK10.2
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mrado
Hey ZX_SA do you have a copy of that driver without the device detection part, already compiled? My Elo 2700 controller seems to swap the Z and Y axes. Thanks Much
Nope, there's just the binary that's in the tarball on my website (http://www.softcoded.net/eduard/elousb) which already includes the device detection and I can also give you a newer binary compiled under Ubuntu Breezy with gcc 4.0.

You can just download the tarball, rip out the device detection code and recompile. It's not that difficult to do.
 
Old 06-22-2006, 02:36 AM   #18
ZX_SA
LQ Newbie
 
Registered: May 2004
Location: Stellenbosch, South Africa
Distribution: Kubuntu breezy, MDK10.2
Posts: 26

Original Poster
Rep: Reputation: 15
Lightbulb Xorg 7.0

Xorg 7 and higher are now using a new modular design for the source tree. Because of this, the hack used to get my original version of the driver compiled no longer worked.

Therefore, I've now made a few modifications and packaged the driver in an autoconf package similar to the xorg driver packages. The new source tarball and a new binary for Ubuntu Dapper is available for download on my website.
 
Old 08-01-2006, 04:29 AM   #19
bitmaster
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Hi Eduard,

Thank you very much for your time and effort. Your driver worked perfectly on my Elo touchscreen. The old one that is... I replaced it with your new 7.x driver after upgrading to Dapper with Xorg 7, but the cursor won't move. I didn't change any of the previously working xorg.conf settings. What could be wrong?

Regards,
Albert
The Netherlands
 
Old 07-25-2007, 11:25 AM   #20
GweeDo767
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
Has anyone tried this driver in Ubuntu 7.04? I am getting the following after installing all the needed pre-req's:

In file included from /usr/include/xorg/xisb.h:32,
from elousb.c:53:
/usr/include/unistd.h:418: error: conflicting types for 'xf86usleep'
/usr/include/xorg/xf86_ansic.h:320: error: previous declaration of 'xf86usleep' was here
In file included from /usr/include/xorg/xisb.h:32,
from elousb.c:53:
/usr/include/unistd.h:936:29: error: macro "getpagesize" passed 1 arguments, but takes just 0
elousb.c: In function 'EloPreInit':
elousb.c:275: error: 'TS_Raw' undeclared (first use in this function)
elousb.c:275: error: (Each undeclared identifier is reported only once
elousb.c:275: error: for each function it appears in.)
elousb.c :277: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c: In function 'ReadInput':
elousb.c:603: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c: In function 'ControlProc':
elousb.c:672: error: 'xDeviceTSCalibrationCtl' undeclared (first use in this function)
elousb.c:672: error: 'c' undeclared (first use in this function)
elousb.c:672: error: expected expression before ')' token
elousb.c: In function 'SwitchMode':
elousb.c:700: error: 'TS_Raw' undeclared (first use in this function)
elousb.c:700: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c :705: error: 'SendCoreEvents' undeclared (first use in this function)
elousb.c:705: error: 'DontSendCoreEvents' undeclared (first use in this function)
elousb.c: In function 'ConvertProc':
elousb.c:734: error: 'TS_Raw' undeclared (first use in this function)
make[2]: *** [elousb.lo] Error 1
make[2]: Leaving directory `/home/touch/Desktop/xf86-input-elousb-X11R7.0-1.0.0.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/touch/Desktop/xf86-input-elousb-X11R7.0-1.0.0.5'
make: *** [all] Error 2
 
Old 09-01-2007, 02:24 PM   #21
rough
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
ELO Public Driver compilation problems

I am having the exact same problem while trying to compile the
ELO public driver (i.e. elousb-package). Did anyone come up with a
solution? Please email me: ronrough@verizon.net


Quote:
Originally Posted by GweeDo767 View Post
Has anyone tried this driver in Ubuntu 7.04? I am getting the following after installing all the needed pre-req's:

In file included from /usr/include/xorg/xisb.h:32,
from elousb.c:53:
/usr/include/unistd.h:418: error: conflicting types for 'xf86usleep'
/usr/include/xorg/xf86_ansic.h:320: error: previous declaration of 'xf86usleep' was here
In file included from /usr/include/xorg/xisb.h:32,
from elousb.c:53:
/usr/include/unistd.h:936:29: error: macro "getpagesize" passed 1 arguments, but takes just 0
elousb.c: In function 'EloPreInit':
elousb.c:275: error: 'TS_Raw' undeclared (first use in this function)
elousb.c:275: error: (Each undeclared identifier is reported only once
elousb.c:275: error: for each function it appears in.)
elousb.c :277: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c: In function 'ReadInput':
elousb.c:603: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c: In function 'ControlProc':
elousb.c:672: error: 'xDeviceTSCalibrationCtl' undeclared (first use in this function)
elousb.c:672: error: 'c' undeclared (first use in this function)
elousb.c:672: error: expected expression before ')' token
elousb.c: In function 'SwitchMode':
elousb.c:700: error: 'TS_Raw' undeclared (first use in this function)
elousb.c:700: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c :705: error: 'SendCoreEvents' undeclared (first use in this function)
elousb.c:705: error: 'DontSendCoreEvents' undeclared (first use in this function)
elousb.c: In function 'ConvertProc':
elousb.c:734: error: 'TS_Raw' undeclared (first use in this function)
make[2]: *** [elousb.lo] Error 1
make[2]: Leaving directory `/home/touch/Desktop/xf86-input-elousb-X11R7.0-1.0.0.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/touch/Desktop/xf86-input-elousb-X11R7.0-1.0.0.5'
make: *** [all] Error 2

Last edited by rough; 09-01-2007 at 02:26 PM. Reason: type-o and to add email
 
Old 09-05-2007, 03:31 PM   #22
Nanners
LQ Newbie
 
Registered: Sep 2007
Location: Allentown, PA, USA
Distribution: Fedora 7, Ubuntu
Posts: 4

Rep: Reputation: 0
I'm having the same problem under Fedora Core 7. As soon as I run make I also get:


Quote:
In file included from /usr/include/xorg/xisb.h:32,
from elousb.c:53:
/usr/include/unistd.h:420: error: conflicting types for 'xf86usleep'
/usr/include/xorg/xf86_ansic.h:320: error: previous declaration of 'xf86usleep' was here
In file included from /usr/include/xorg/xisb.h:32,
from elousb.c:53:
/usr/include/unistd.h:938:29: error: macro "getpagesize" passed 1 arguments, but takes just 0
elousb.c: In function 'EloPreInit':
elousb.c:275: error: 'TS_Raw' undeclared (first use in this function)
elousb.c:275: error: (Each undeclared identifier is reported only once
elousb.c:275: error: for each function it appears in.)
elousb.c:277: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c: In function 'ReadInput':
elousb.c:603: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c: In function 'ControlProc':
elousb.c:672: error: 'xDeviceTSCalibrationCtl' undeclared (first use in this function)
elousb.c:672: error: 'c' undeclared (first use in this function)
elousb.c:672: error: expected expression before ')' token
elousb.c: In function 'SwitchMode':
elousb.c:700: error: 'TS_Raw' undeclared (first use in this function)
elousb.c:700: error: 'TS_Scaled' undeclared (first use in this function)
elousb.c:705: error: 'SendCoreEvents' undeclared (first use in this function)
elousb.c:705: error: 'DontSendCoreEvents' undeclared (first use in this function)
elousb.c: In function 'ConvertProc':
elousb.c:734: error: 'TS_Raw' undeclared (first use in this function)
make: *** [elousb.lo] Error 1
 
Old 09-07-2007, 08:15 AM   #23
Nanners
LQ Newbie
 
Registered: Sep 2007
Location: Allentown, PA, USA
Distribution: Fedora 7, Ubuntu
Posts: 4

Rep: Reputation: 0
Ok, this is a pretty arbitrary and sloppy work around, but it at least gets it to compile.

As a warning please note I'm trying this on a test system which I have very limited needs for, so this probably does break something, I just haven't figure out what yet.

In advance, yes, I know how bad an idea it is to change xorg files without understanding what problems that would cause. At the moment thought I need to get the driver working, and don't have the time to edit the driver directly, so this was the quickest method.

For this you need to change three files.

/usr/include/xorg/xf86_ansic.h
/usr/source/unistd.h
and the elousb.c file that came with the driver.

Add these to the top of elousb.c:

Code:
#define TS_Raw 57
#define TS_Scaled 58
#define SendCoreEvents 59
#define DontSendCoreEvents 60
At line 678 change both entries of xDeviceTSCalibrationCtl to xDeviceAbsCalibCtl.


In /usr/include/xorg/xf86_ansic.h at lines 325/325:

Code:
//#undef usleep
//#define usleep(ul)		xf86usleep(ul)
In /usr/source/unistd.h at line 939:

Changed:

Code:
extern int getpagesize (void)  __THROW __attribute__ ((__const__));
to

Code:
extern int getpagesize ()  __THROW __attribute__ ((__const__));
This allows the driver to compile, and install, at least I think it does. After I reboot after adding the elo touch information I'm now getting an error saying xorg can't find the input driver elousb.

The files elousb_drv.lo and elousb_drv.so where both added to /usr/lib/xorg/modules/input so I've assumed this worked, but I'm not sure since xorg can't seem to find the driver. I'm going to keep working on it, and try to figure out what I potentially broke in xorg with my changes, and look at trying to fix everything in the driver rather than by modifying xorg files.
 
Old 09-10-2007, 12:52 PM   #24
Nanners
LQ Newbie
 
Registered: Sep 2007
Location: Allentown, PA, USA
Distribution: Fedora 7, Ubuntu
Posts: 4

Rep: Reputation: 0
I'm currently stuck. I'm getting the following in my Xorg log:

(II) LoadModule: "elousb"
(II) Loading /usr/lib/xorg/modules/input//elousb_drv.so
(EE) LoadModule: Module elousb does not have a elousbModuleData data object.
(II) UnloadModule: "elousb"
(II) Unloading /usr/lib/xorg/modules/input//elousb_drv.so
(EE) Failed to load module "elousb" (invalid module, 0)


Since my experience with Xorg is limited I'm not sure what that means, can anyone provide any suggestions?

Last edited by Nanners; 09-10-2007 at 12:58 PM. Reason: Correction of typo.
 
  


Reply

Tags
fedora, xorg, x11, input, screen, fc7, touchscreen, touch, elo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MDK 10.2: No USB at all (/proc/bus/usb/devices missing) shrodi Mandriva 5 07-01-2005 11:28 AM
Cant access linux filesystem ext3 after upgrading from mdk 9.1 to mdk 10 drewineal Linux - Newbie 1 02-27-2005 03:45 PM
MDK 10.1 USB Router Sun_Tsu Mandriva 1 11-30-2004 10:13 AM
How do i mount USB HD in mdk 9.2 zoe182 Linux - Newbie 10 02-12-2004 09:45 PM
FritzX USB and MDK 9.1 johnnyX Linux - Hardware 0 10-01-2003 12:41 PM


All times are GMT -5. The time now is 02:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration