> /*
> * Fix for Toshiba Satellites. Under some
> * circumstances, its keyboards behave like ignoring the
> * kbd repeat delay. This happens in conjunction with shift
> * keys (ctrl, alt, shift) and leads to undesirable repeat
> * of a key even if pressed briefly. Fix it by ignoring any
> * subsequent occurence of the second identical scancode for
> * 200 ms. IMO, this doesn't break anything on a good keyboard.
> *
> * Thanx to Andrei Pitis <pink@roedu.net>.
> */
> static int prev_scancode = 0;
> static int stop_jiffies = 0;
>
> /* new scancode, trigger delay */
> if (scancode != prev_scancode)
> stop_jiffies = jiffies;
>
> /* same scancode, accept only after the delay */
> else if (jiffies - stop_jiffies >= 10)
> stop_jiffies = 0;
>
> /* glitch! bail out... */
> else {
> printk( "Keyboard glitch detected, ignoring keypress\n" );
> return;
> }
> prev_scancode = scancode;
>
> --
> I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel. Pavel
> Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/