On Wed, Oct 24, 2001 at 09:39:44AM +0200, O. Beaudoux wrote:
> Hi Vojtech,
> 
> > > > For this type of access, /dev/input/eventX was designed. It'll give you
> > > > all you describe.
> > >
> > > I have tried it but I cannot make it work. I run it under kernel 2.2.18
> > > and 2.4.0 (SuSE 7.1 installation). If it can work, I effectively think
> > > its the better choice :-)
> >
> > What's your problem with it? I'll help if I can.
> 
> Well, I try the evtest.c program under kernel 2.4.0. I use the following line 
> to compile it:
> 
> gcc -O2 -Wall -I/usr/src/linux/include evtest.c -o evtest
> 
> assuming that /usr/src/linux is a link to /usr/src/linux-2.4.0.SuSE/
> 
> When I run it, evtest gives me bad numbers (soft, prod, vendor numbers...), 
> enters in an infinite loop telling me "yyy" (!?) and when I mouve the mouse, 
> exits the loop and display and error message (Ioctl()...). Evtest displays 
> this:
> 
> ===
> Input driver version is 16.144.0
> Input device ID: bus 0x0 vendor 0x0 product 0x5 version 0x0
> Input device name: "Unknown"
> Supported events:
> Testing ... (interrupt to exit)
> yyy
>  
> evtest: error reading: Ioctl() inappropr? pour un p?riph?riques
> ===

How did you run it? What version of evtest is that?

> I think that this come from a bad compilation of evtest...
> Perhpas the good choice is to install a newer kernel but I've just got the 
> SuSE 7.1 ?
> 
> The /dev/input/eventX seems to be appealing, so any help should be 
> appreciate. Obvulsy, I can't find many document about its usage...

You can try 'cat /dev/input/eventX'.

> 
> > > > For a more low level access, /dev/hiddevX was designed. You shouldn't
> > > > need direct USB access.
> > >
> > > I know about it but it seems that (by default), every few devices are
> > > accessible through it...
> >
> > Yes, by default only non-input HID devices are available through it.
> > This can be changed, though.
> 
> Is there a simple way to make this change ? 

Yes, there is a single line macro in hiddev.h

> 
> 
> Thanks,
> Bod
> 
> 
> -- 
> Olivier Beaudoux
> ESEO
> 4 rue Merlet de la Boulaye, BP 926
> 49009 Angers cedex 01
> Tel: +33 (2) 41-86-67-67 
>       +33 (2) 41-86-67-05 (ligne directe)
> Fax:  +33 (2) 41-87-99-27
> Email: [EMAIL PROTECTED]
> 
> 

-- 
Vojtech Pavlik
SuSE Labs

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to