On Sat, 13 Apr 2002 06:47, Ga�tan RYCKEBOER wrote: <snip> > For now, it is working with HID, mouse + stylus, but not in absolute > mode. Thi is an obvious limit. > > I would like to make it working, by pathing hid driver, or an AIPTEK > driver which was realeased with kernel more recent than 2.4.18. > > I'm now searching for > 1/ Where minor/major number are stored in the driver ? > 2/ Protol used by these tablets, wich i'll try to decode and implement > in the old aiptek module. I think you have a problem with understanding how the hid driver works (understandable, it took me ages to figure out in detail) - there is no major and minor numbers for the hid core. Basically, the hid driver talks to all USB HID devices, and figures out whether to send whatever comes from the device (via the host controller and usbcore) to either /dev/usb/hiddevX or the input subsystem. The input subsystem then sends the output to the mouse, keyboard or joystick output drivers, and also sends it to the event device (/dev/input/eventX). For a diagram of how it fits together, look at: http://www.linux-usb.org/linux.conf.au.02/talk/html/slide_11.html
Note the wacom driver. That is for a few devices that don't really speak HID, even though they claim to, and should, do so. If your device is like this, then you need to clone or modify wacom. However this is pretty unlikely (since you already have it working with the mouse driver). Instead, you probably want to make an absolute mode driver for the input subsystem. You can either do this in kernel space, or in user space. I recommend user-space, unless you can find a requirement for kernel space. The user space driver would read the event output (corresponding to your tablet, there will be other event outputs in any real system) and drive whatever user space program needs the output (eg X or a drawing program). Note that this isn't a USB problem (because the USB part is already solved), but instead is a input subsystem problem. I suggest you wander over to the linuxconsole project (http://linuxconsole.sf.net) and check out their resources. The CVS has some useful resources (although their kernel side is a bit of a mess with respect to the shipped kernels), including patches for various apps, and a demo program for showing how the event interface works: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/linuxconsole/ruby/utils/evtest.c?rev=1.16 You can also get good help (including finding out if you are duplicating existing work) on the linuxconsole mailing list. Brad _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
