Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 10118 Details for
Bug 18628
keyboard repeat problem in 2.4.20 kernel on Toshiba laptops
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix keyboard key repeat problem on Toshiba laptops
keyrepeat.patch (text/plain), 959 bytes, created by
Andrew Cowie
on 2003-04-02 06:40:24 UTC
(
hide
)
Description:
patch to fix keyboard key repeat problem on Toshiba laptops
Filename:
MIME Type:
Creator:
Andrew Cowie
Created:
2003-04-02 06:40:24 UTC
Size:
959 bytes
patch
obsolete
>--- drivers/char/keyboard.c Sat Mar 30 07:45:50 2002 >+++ drivers/char/keyboard.c Fri Jan 10 08:23:45 2003 >@@ -94,6 +95,7 @@ > static struct tty_struct **ttytab; > static struct kbd_struct * kbd = kbd_table; > static struct tty_struct * tty; >+static unsigned char prev_scancode; > > void compute_shiftstate(void); > >@@ -213,7 +215,17 @@ > } > kbd = kbd_table + fg_console; > if ((raw_mode = (kbd->kbdmode == VC_RAW))) { >- put_queue(scancode | up_flag); >+ /* >+ * The following is a workaround for hardware >+ * which sometimes send the key release event twice >+ */ >+ unsigned char next_scancode = scancode|up_flag; >+ if (up_flag && next_scancode==prev_scancode) { >+ /* unexpected 2nd release event */ >+ } else { >+ prev_scancode=next_scancode; >+ put_queue(next_scancode); >+ } > /* we do not return yet, because we want to maintain > the key_down array, so that we have the correct > values when finishing RAW mode or when changing VT's */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18628
: 10118