From: Wayne W. <wh...@ma...> - 2003-02-15 01:15:52
|
On Fri, 14 Feb 2003, Zephaniah E. Hull wrote: > Thank you again, this has proven absolutely invaluable for the keyboard > side of the patch. > > I'm still waiting for a solution to the console also getting the events, > though the answers my head is giving back are not the ones I actually > want. You mean the keyboard events? It seems like that requires a kernel patch. I'm using the simple patch below so that USB keyboards are not attached to the console. Of course, it shouldn't be hardcoded like this. Cheers, Wayne diff -ru linux-2.5.59/drivers/char/keyboard.c linux-2.5.59-wayne/drivers/char/keyboard.c --- linux-2.5.59/drivers/char/keyboard.c 2002-12-09 19:26:49.000000000 -0800 +++ linux-2.5.59-wayne/drivers/char/keyboard.c 2003-01-25 09:02:28.000000000 -0800 @@ -1150,6 +1150,9 @@ if ((i == BTN_MISC) && !test_bit(EV_SND, dev->evbit)) return NULL; + if (!strncmp(dev->phys,"usb",3)) + return NULL; + if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL))) return NULL; memset(handle, 0, sizeof(struct input_handle)); |