[linux-usb-devel] Re: help with writing a usb mouse driver

2004-11-30 Thread Greg KH
On Sat, Nov 27, 2004 at 11:39:37PM +0800, Jeffrey Lim wrote: > Note: pls cc me in any replies as i'm not subscribed to the list. > > hi guys, i've been trying to write a usb mouse driver for a custom > mouse, but i'm getting stuck. > > I previously started out with trying to hack usbmouse.c, but

Re: [linux-usb-devel] Re: help with writing a usb mouse driver

2004-11-28 Thread Lonnie Mendez
so u're saying there's no way to come up with a driver to wrestle control away from the hid code, unless the kernel does not have the support for the hid? Look in hid-core.c or equivalent source files, there should be a hid blacklist you can add the PID/VID of your usb mouse to. Recompile and the

[linux-usb-devel] Re: help with writing a usb mouse driver

2004-11-28 Thread Jeffrey Lim
On Sat, 27 Nov 2004 19:17:20 -0800, Randy.Dunlap <[EMAIL PROTECTED]> wrote: > > > > i've tried unloading hid, but u know what? It always loads itself (by > > modprobe, i suppose) in the end when i plug in my mouse. > > /proc/bus/usb/devices tells me that. My custom module (hacked from > > usbmouse.

[linux-usb-devel] Re: help with writing a usb mouse driver

2004-11-27 Thread Jeffrey Lim
On Sat, 27 Nov 2004 09:13:15 -0800, Randy.Dunlap <[EMAIL PROTECTED]> wrote: > > Yes, that's a config problem. You'll need to disable > HID support (or at least unload the HID driver(s)) > in order to try usbmouse. > i've tried unloading hid, but u know what? It always loads itself (by modprobe,

[linux-usb-devel] Re: help with writing a usb mouse driver

2004-11-27 Thread Randy.Dunlap
Jeffrey Lim wrote: On Sat, 27 Nov 2004 09:13:15 -0800, Randy.Dunlap <[EMAIL PROTECTED]> wrote: Yes, that's a config problem. You'll need to disable HID support (or at least unload the HID driver(s)) in order to try usbmouse. i've tried unloading hid, but u know what? It always loads itself (by mo

[linux-usb-devel] Re: help with writing a usb mouse driver

2004-11-27 Thread Jeffrey Lim
(Note: pls cc me in any replies as i'm not subscribed to this list) On Sat, 27 Nov 2004 08:35:49 -0800, Randy.Dunlap <[EMAIL PROTECTED]> wrote: > (moved from lkml to linux-usb-devel list) > hm, thanks. > > Is your USB mouse a full HID device, or does it only > support the HID Boot Protocol? >

[linux-usb-devel] Re: help with writing a usb mouse driver

2004-11-27 Thread Randy.Dunlap
(moved from lkml to linux-usb-devel list) Jeffrey Lim wrote: Note: pls cc me in any replies as i'm not subscribed to the list. hi guys, i've been trying to write a usb mouse driver for a custom mouse, but i'm getting stuck. I previously started out with trying to hack usbmouse.c, but apparently aft

[linux-usb-devel] Re: help with writing a usb mouse driver

2004-11-27 Thread Randy.Dunlap
Jeffrey Lim wrote: (Note: pls cc me in any replies as i'm not subscribed to this list) On Sat, 27 Nov 2004 08:35:49 -0800, Randy.Dunlap <[EMAIL PROTECTED]> wrote: (moved from lkml to linux-usb-devel list) hm, thanks. Is your USB mouse a full HID device, or does it only support the HID Boot Proto