From: Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.21pre3-ac2
Date: Fri, 10 Jan 2003 14:30:28 +0100 [thread overview]
Message-ID: <20030110133028.GB12071@charite.de> (raw)
In-Reply-To: <20030110111547.GB18007@charite.de>
* Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>:
> * Alan Cox <alan@lxorguk.ukuu.org.uk>:
> > On Fri, 2003-01-10 at 09:45, Ralf Hildebrandt wrote:
> > > I got an oops with that kernel on two different machines:
> >
> > Can you build the kernel with the patch to mm/shmem.c reverted and
> > see if that fixes your crash ?
>
> Well, yes. Should I remove all changes to "mm/shmem.c" that are done
> from the ac2 patch?
Backing out of mm/shmem.c makess thee bug disappear. Unfortunately I
fforgot to applyy the keyboard pacth forr my Toshiba laptop, so I get
duplicate letters when typingg real fasst (as you caan see!)
The keyboard paccth:
--- drivers/char/keyboard.c.orig 2003-01-10 12:20:18.000000000 +0100
+++ drivers/char/keyboard.c 2003-01-10 14:28:24.000000000 +0100
@@ -95,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);
@@ -214,7 +215,16 @@
}
kbd = kbd_table + fg_console;
if ((raw_mode = (kbd->kbdmode == VC_RAW))) {
- put_queue(scancode | up_flag);
+ /* put_queue(scancode | up_flag); */
+ /* The following 'if' 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 */
--
Ralf Hildebrandt (Im Auftrag des Referat V a) Ralf.Hildebrandt@charite.de
Charite Campus Mitte Tel. +49 (0)30-450 570-155
Referat V a - Kommunikationsnetze - Fax. +49 (0)30-450 570-916
Okay, so I have this coworker who believes that NT is God's Gift to Sysadmins.
There are lots of weird gods around, aren't they?
Yeah, he means Cthulu. That's the kind of OS he/she/it'd give as a gift.
next prev parent reply other threads:[~2003-01-10 13:21 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-09 1:39 Linux 2.4.21pre3-ac2 Alan Cox
2003-01-09 2:02 ` Paulo Andre'
2003-01-09 11:24 ` Linux 2.4.21pre3-ac2 - some trivial patches Eyal Lebedinsky
[not found] ` <1042134064.27796.18.camel@irongate.swansea.linux.org.uk>
2003-01-09 21:10 ` Eyal Lebedinsky
2003-01-09 12:14 ` Linux 2.4.21pre3-ac2 Adrian Bunk
2003-01-09 13:15 ` Arjan van de Ven
2003-01-09 13:27 ` Adrian Bunk
2003-01-09 23:37 ` Jean-Daniel Pauget
2003-01-10 2:25 ` Alan Cox
2003-01-13 3:33 ` Bill Davidsen
2003-01-13 15:01 ` Alan Cox
2003-01-13 17:22 ` John Stoffel
2003-01-14 11:17 ` Horst von Brand
2003-01-10 9:45 ` Ralf Hildebrandt
2003-01-10 12:00 ` Alan Cox
2003-01-10 11:15 ` Ralf Hildebrandt
2003-01-10 13:30 ` Ralf Hildebrandt [this message]
2003-01-10 14:17 ` Ralf Hildebrandt
2003-01-10 15:17 ` Alan Cox
2003-01-10 11:21 ` Ralf Hildebrandt
2003-01-10 14:38 ` Adrian Bunk
[not found] <20030109015006$7068@gated-at.bofh.it>
2003-01-09 5:32 ` Allan Duncan
-- strict thread matches above, loose matches on Subject: below --
2003-01-09 11:42 rwhron
2003-01-09 23:15 Michael Madore
[not found] <20030113034016$67b9@gated-at.bofh.it>
[not found] ` <20030113142009$6327@gated-at.bofh.it>
2003-01-13 14:32 ` Bertrand VIEILLE [Bébert]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030110133028.GB12071@charite.de \
--to=ralf.hildebrandt@charite.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox