Re: Completely disable AT/PS2 keyboard support in 2.4?

Pekka Pietikainen (pp@netppl.fi)
Mon, 9 Jun 2003 21:39:06 +0300


On Mon, Jun 09, 2003 at 05:01:32PM +0200, Lionel Bouton wrote:
> Jurgen Kramer wrote:
> On my config (Logitech wireless mouse and kb with USB receiver) :
> - 272 keycode happens on each left click,
> - 273 or 276 on each right click (actual button pressed dependant there
> are 2 buttons recognised as the right one on my Optical Trackman),
> - 275 on each middle click,
> - 274 on each wheel click...

Same here... Here's a patch that fixed it (something similar was added
to 2.5 recently)

--- linux-2.4.20-20.1.2007.nptl/drivers/input/keybdev.c.orig 2003-05-31 14:23:10.000000000 +0300
+++ linux-2.4.20-20.1.2007.nptl/drivers/input/keybdev.c 2003-05-31 14:23:58.000000000 +0300
@@ -172,7 +172,8 @@
if (type != EV_KEY) return;

if (emulate_raw(code, down))
- printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", code);
+ if(code < BTN_MISC)
+ printk(KERN_WARNING "keybdev.c: can't emulate rawmode for keycode %d\n", code);

tasklet_schedule(&keyboard_tasklet);
}

-- 
Pekka Pietikainen

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/