Skip to contentSkip to conversation

Completely disable AT/PS2 keyboard support in 2.4?

DISCUSSION Jurgen Kramer 5 participants 7 messages Jun 9, 2003 – Jun 10, 2003 Input drivers

lore
Share & tools
lore
#0 lore raw

Hi,

Is it possible to completely disable AT/PS2 keyboard support in 2.4 or is this still needed when I only use a USB keyboard?

I am currently getting dozens of keyboard messages:

keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272

I am not sure if the comes from the USB keyboard or from the non-connected PS2 port.

Thanks,

Jurgen

#1 lore raw
Quoted 14 lines · Jurgen Kramer

Is it possible to completely disable AT/PS2 keyboard support in 2.4 or is this still needed when I only use a USB keyboard?

I am currently getting dozens of keyboard messages:

keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272

Quoted 2 lines

I am not sure if the comes from the USB keyboard or from the non-connected PS2 port.

In 2.4.x, the input layer converts input events to PC/AT scancodes, and still relies on the PS/2 low-level keyboard driver scancode conversion to interprete them. This means you must include the PS/2 low-level keyboard driver. If you don't, you may get strange results, especially on architectures where you have a different low-level keyboard driver.

BTW, I guess your arrow keys are not working?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#2 lore raw

My arrow keys are working just fine. The "can't emulate rawmode for keycode" messages seem to appear without a key being pressed. The keyboard or the keyboard receiver (it's a wireless keyboard) is probably just sending out keycodes at will...

Quoted 36 lines · Geert Uytterhoeven
Quoted 14 lines · Jurgen Kramer

Is it possible to completely disable AT/PS2 keyboard support in 2.4 or is this still needed when I only use a USB keyboard?

I am currently getting dozens of keyboard messages:

keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272

Quoted 2 lines

I am not sure if the comes from the USB keyboard or from the non-connected PS2 port.

In 2.4.x, the input layer converts input events to PC/AT scancodes, and still relies on the PS/2 low-level keyboard driver scancode conversion to interprete them. This means you must include the PS/2 low-level keyboard driver. If you don't, you may get strange results, especially on architectures where you have a different low-level keyboard driver.

BTW, I guess your arrow keys are not working?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#3 lore raw
Quoted 6 lines · Jurgen Kramer

My arrow keys are working just fine. The "can't emulate rawmode for keycode" messages seem to appear without a key being pressed. The keyboard or the keyboard receiver (it's a wireless keyboard) is probably just sending out keycodes at will...

On my config (Logitech wireless mouse and kb with USB receiver) :
- 272 keycode happens on each left click,
- 273 or 276 on each right click (actual button pressed dependant there are 2 buttons recognised as the right one on my Optical Trackman),
- 275 on each middle click,
- 274 on each wheel click...

Hope it helps.

LB

#4 lore raw
Quoted 7 lines · Lionel Bouton

Jurgen Kramer wrote:
On my config (Logitech wireless mouse and kb with USB receiver) :
- 272 keycode happens on each left click,
- 273 or 276 on each right click (actual button pressed dependant there are 2 buttons recognised as the right one on my Optical Trackman),
- 275 on each middle click,
- 274 on each wheel click...

Same here... Here's a patch that fixed it (something similar was added to 2.5 recently)

drivers/input/keybdev.c renamed from drivers/input/keybdev.c.orig +2 -1
@@ -172,7 +172,8 @@
 	if (type != EV_KEY) return;
 
 	if (emulate_raw(code, down))
-		printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", code);
+		if(code < BTN_MISC)
+			printk(KERN_WARNING "keybdev.c: can't emulate rawmode for keycode %d\n", code);
 
 	tasklet_schedule(&keyboard_tasklet);
 }
Signature · 1 line
Pekka Pietikainen
#5 lore raw
In reply to Jurgen Kramer
Quoted 4 lines · Jurgen Kramer

My arrow keys are working just fine. The "can't emulate rawmode for keycode" messages seem to appear without a key being pressed. The keyboard or the keyboard receiver (it's a wireless keyboard) is probably just sending out keycodes at will...

OK, so the arrow-keys (and other keys generating E0/E1-prefixed scancodes) not working happens on `other' architectures only (e.g. MIPS with dummy keyboard.c).

Quoted 19 lines · Geert Uytterhoeven
Quoted 18 lines · Jurgen Kramer
Quoted 16 lines

Is it possible to completely disable AT/PS2 keyboard support in 2.4 or is this still needed when I only use a USB keyboard?

I am currently getting dozens of keyboard messages:

keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272 keyboard.c: can't emulate rawmode for keycode 272

I am not sure if the comes from the USB keyboard or from the non-connected PS2 port.

Quoted 7 lines
Quoted 7 lines

In 2.4.x, the input layer converts input events to PC/AT scancodes, and still relies on the PS/2 low-level keyboard driver scancode conversion to interprete them. This means you must include the PS/2 low-level keyboard driver. If you don't, you may get strange results, especially on architectures where you have a different low-level keyboard driver.

BTW, I guess your arrow keys are not working?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#6 lore raw
In reply to Jurgen Kramer

On 09 Jun 2003 12:54:36 +0200 Jurgen Kramer <[email protected]> wrote:

| Hi,
| 
| Is it possible to completely disable AT/PS2 keyboard support
| in 2.4 or is this still needed when I only use a USB keyboard?
| 
| I am currently getting dozens of keyboard messages:
| 
| keyboard.c: can't emulate rawmode for keycode 272
| keyboard.c: can't emulate rawmode for keycode 272
| keyboard.c: can't emulate rawmode for keycode 272
| 
| I am not sure if the comes from the USB keyboard or from
| the non-connected PS2 port.

I have made a couple of patches for non-AT/PS2 keyboard controllers in 2.4.x -- and which a few people have told me that they have used successfully. The latest version that I have done is:
http://www.osdl.org/archive/rddunlap/patches/kbc_option_2420.patch
if you would like to try it.

--
~Randy