All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Stian Jordet <liste@jordet.nu>
Cc: Vojtech Pavlik <vojtech@suse.cz>, linux-kernel@vger.kernel.org
Subject: Re: Mouse/Keyboard problems with 2.5.38
Date: Mon, 7 Oct 2002 15:00:52 +0200	[thread overview]
Message-ID: <20021007150052.A1380@ucw.cz> (raw)
In-Reply-To: <1033127503.589.6.camel@chevrolet>; from liste@jordet.nu on Fri, Sep 27, 2002 at 01:51:43PM +0200

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

On Fri, Sep 27, 2002 at 01:51:43PM +0200, Stian Jordet wrote:
> fre, 2002-09-27 kl. 09:10 skrev Vojtech Pavlik:
> > Unfortunately the little bit of information I needed scrolled away
> > already. Can you try with the other shift (right?)? That won't
> > probably crash your machine, but will most likely generate an "Unknown
> > scancode" message. Again, send me the log lines. This time they should
> > make it in the syslog well.
> Ok, the combination which freezes the computer is right SHIFT, and
> pageup/down, etc. Left SHIFT works just like expected. This time I first
> wrote 'cp /var/log/syslog /tmp/syslog', then 'echo cut-here >
> /var/log/syslog' Left-SHIFT+PAGEUP, arrow up two times, to get the cp..,
> enter. Then I edited /tmp/syslog and copied only what was after
> "cut-here". So the keystrokes included here should be Left-SHIFT+PAGEUP,
> ARROW-UP, ARROW-UP, ENTER. If this works like I think it should. As you
> can see, it did not generate an "Unknown scancode"...

Can you test whether the attached patch helps?

-- 
Vojtech Pavlik
SuSE Labs

[-- Attachment #2: alt-alt --]
[-- Type: text/plain, Size: 2869 bytes --]

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
'bk pull bk://linux-input.bkbits.net/linux-input' should work as well.

===================================================================

ChangeSet@1.626, 2002-10-07 14:29:57+02:00, vojtech@suse.cz
  Fix LAlt-RAlt combination on AT keyboards (generated "unknown scancode" message).


 i8042.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

===================================================================

diff -Nru a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
--- a/drivers/input/serio/i8042.c	Mon Oct  7 14:30:14 2002
+++ b/drivers/input/serio/i8042.c	Mon Oct  7 14:30:14 2002
@@ -63,7 +63,7 @@
 
 extern struct pt_regs *kbd_pt_regs;
 
-static unsigned long i8042_unxlate_seen[128 / BITS_PER_LONG];
+static unsigned long i8042_unxlate_seen[256 / BITS_PER_LONG];
 static unsigned char i8042_unxlate_table[128] = {
 	  0,118, 22, 30, 38, 37, 46, 54, 61, 62, 70, 69, 78, 85,102, 13,
 	 21, 29, 36, 45, 44, 53, 60, 67, 68, 77, 84, 91, 90, 20, 28, 27,
@@ -407,14 +407,14 @@
 		}
 
 		if (data > 0x7f) {
-			if (test_and_clear_bit(data & 0x7f, i8042_unxlate_seen)) {
+			if (test_and_clear_bit((data & 0x7f) | (i8042_last_e0 << 7), i8042_unxlate_seen)) {
 				serio_interrupt(&i8042_kbd_port, 0xf0, dfl);
 				if (i8042_last_e0 && (data == 0xaa || data == 0xb6))
-					set_bit(data & 0x7f, i8042_unxlate_seen);
+					set_bit((data & 0x7f) | (i8042_last_e0 << 7), i8042_unxlate_seen);
 				data = i8042_unxlate_table[data & 0x7f];
 			}
 		} else {
-			set_bit(data, i8042_unxlate_seen);
+			set_bit(data | (i8042_last_e0 << 7), i8042_unxlate_seen);
 			data = i8042_unxlate_table[data];
 		}
 

===================================================================

This BitKeeper patch contains the following changesets:
+
## Wrapped with gzip_uu ##


begin 664 bkpatch491
M'XL(`%9^H3T``[64;6_3,!#'7\>?XK1)J-5H8CM/;5G1'AD3$YNZ[15"E>M<
MF]#6F6)G[2`?'C<911HPM,$2RXD3YW__N_LIVW"ML>@[M_D7@S(EV_`^UZ;O
MZ%*C*[_:]3#/[=I+\P5Z][N\\<S+U$UIB'U_(8Q,X18+W7>8ZV^>F+L;[#O#
MXY/KL_TA(8,!'*9"3?$2#0P&Q.3%K9@G>D^8=)XKUQ1"Z04:X<I\46VV5IQ2
M;L^0Q3X-HXI%-(@KR1+&1,`PH3SH1@$1"1:H9;HWT:XI%VZ"#R08I3'M,9_3
MB@=1-R1'P-R(1T"YQZA'8V!!G_?Z8;Q#>9]2N$]U[[X0L,.@0\D!_%_?AT3"
MNVP%9_MSTQG:":S*.%/"9+D"._:O8(9WXUP4B8;6%!46PF`"6Z6:J7RI0$NA
M9)[@%BQ0:S'%MDL^@,VQ%Y*+GR4GG2<>A%!!R=M-'<PRFV?3U+BE7-IZ5$F1
MK7O><.!9AK+<R[HTX*YL<H^ISW@8L:CR;?5Y%=-UVH))I`&;T.1AA?^JN&XA
MX[P7\HKWNEU:,_7(1VO*7LP]>89[QKH!8[$%L.<'-8`L_(4__B?^`N@$+\+?
ME9@AF!0!*=P4.+$X9LKD(*3,2V5@F:(">[,.-+=@JBG@RJ!*+(:635WS5C?D
M'#K%LAZ6GXO'>O,,'(^B"!@YK6=MK`]I3>ELJJP-6X@IU-*C4JVL21QI1/7)
M=A`\.#B]NAQ='`]'9^<?3SZ_(4<!HVNIYN(X3C:!ED%M1D(E(SE'48S&F6FU
M$F$$O`*ZBB=MJ*#51)@+N]/6:G<7XO;KWX1MM^';.HC?!/&;((ZCT?R;;FT]
D;E3C1O6'9BWY)*G-CUJF*&>Z7`RZ22S'%`7Y#N\0[,\5!@``
`
end

  reply	other threads:[~2002-10-07 12:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-25 23:31 Mouse/Keyboard problems with 2.5.38 Stian Jordet
2002-09-25 23:47 ` Brad Hards
2002-09-26  8:58 ` Vojtech Pavlik
2002-09-26 11:32   ` Stian Jordet
2002-09-26 11:37     ` Vojtech Pavlik
2002-09-26 15:30       ` Stian Jordet
2002-09-26 16:57         ` Vojtech Pavlik
2002-09-26 22:50           ` Stian Jordet
2002-09-27  7:10             ` Vojtech Pavlik
2002-09-27 11:51               ` Stian Jordet
2002-10-07 13:00                 ` Vojtech Pavlik [this message]
2002-10-07 19:55                   ` Stian Jordet
2002-10-07 20:01                     ` Vojtech Pavlik
2002-10-08  0:20                       ` Stian Jordet
2002-10-08  8:17                         ` Vojtech Pavlik
2002-10-08 17:18                           ` Stian Jordet
2002-10-08 17:25                             ` Vojtech Pavlik
2002-10-08 23:48                               ` Stian Jordet
     [not found]                                 ` <20021009082215.C1890@ucw.cz>
2002-10-09 10:42                                   ` Stian Jordet
2002-10-09  0:54                               ` Stian Jordet
2002-09-30 22:10               ` Stian Jordet
     [not found] <20021008085842.A4412@ucw.cz>
2002-10-08 17:14 ` Stian Jordet
2002-10-08 17:23   ` Vojtech Pavlik

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=20021007150052.A1380@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liste@jordet.nu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.