Skip to contentSkip to conversation

keycode 183 in defkeymap.map (was Re: Japanese keyboards broken in 2.6)

PATCH In review [email protected] 2 participants 2 messages Jul 23, 2003 – Jul 24, 2003 2 messages not in the archive Char and misc drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 keycode 183 in defkeymap.map (was Re: Japanese keyboards broken in 2.6)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"ND" == Norman Diamond <[email protected]> writes:

ND> "Andries Brouwer" <[email protected]> replied to me, thank you. Again, sorry ND> I cannot keep up with the mailing list. If Dr. Brouwer or anyone else has ND> advice or questions, please contact me directly. I am sending this both ND> personally and to the list.

I also got help from Brouwer with a similar (maybe the same) problem. Although his "keycode 183 = backslash bar" comment is a bit cryptic, but here is what I did and worked:

1. Add that line in drivers/char/defkeymap.map (that's kernel source, not a file in /etc/{kbd,console}/).

2. Get his kbd-1.08 source and rebuild loadkeys with the header files from 2.6 kernel. /usr/include/linux/keyboard.h you have probably would not work---NR_KEYS is capped to 128. (Note that the result of the compilation does not have to be installed anywhere).

3. Using the rebuilt loadkeys, rebuild drivers/char/defkeymap.c, mimicking what drivers/char/Makefile does (the rule is at the endof the Makefile).

4. Build the kernel.

For your convenience, I have attached patch that updates defkeymap.c and defkeymap.map to include the key definition, so you do not have to recompile loadkeys just to regenerate defkeymap.c file. You should be able to apply the following to your 2.6.0-test1 source and rebuild the kernel.

drivers/char/defkeymap.map +1 -0
@@ -259,6 +259,7 @@
 keycode 125 =
 keycode 126 =
 keycode 127 =
+keycode 183 = backslash bar
 string F1 = "\033[[A"
 string F2 = "\033[[B"
 string F3 = "\033[[C"
drivers/char/defkeymap.c_shipped +340 -4

398 lines not on this page · raw message

#3 lore raw
Quoted 10 lines · On Wed, Jul 23, 2003 at 03:55:33PM -0700, [email protected] wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"ND" == Norman Diamond <[email protected]> writes:

ND> "Andries Brouwer" <[email protected]> replied to me, thank you. Again, sorry ND> I cannot keep up with the mailing list. If Dr. Brouwer or anyone else has ND> advice or questions, please contact me directly. I am sending this both ND> personally and to the list.

I also got help from Brouwer with a similar (maybe the same) problem. Although his "keycode 183 = backslash bar" comment is a bit cryptic, but here is what I did and worked:

[...]

Quoted 5 lines

For your convenience, I have attached patch that updates defkeymap.c and defkeymap.map to include the key definition, so you do not have to recompile loadkeys just to regenerate defkeymap.c file. You should be able to apply the following to your 2.6.0-test1 source and rebuild the kernel.

thanks, it works as expected, my pipe key is back!

Signature · 2 lines
mattia
:wq!