All of lore.kernel.org
 help / color / mirror / Atom feed
* Completely disable AT/PS2 keyboard support in 2.4?
@ 2003-06-09 10:54 Jurgen Kramer
  2003-06-09 13:34 ` Geert Uytterhoeven
  2003-06-09 15:05 ` Randy.Dunlap
  0 siblings, 2 replies; 7+ messages in thread
From: Jurgen Kramer @ 2003-06-09 10:54 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Completely disable AT/PS2 keyboard support in 2.4?
  2003-06-09 10:54 Completely disable AT/PS2 keyboard support in 2.4? Jurgen Kramer
@ 2003-06-09 13:34 ` Geert Uytterhoeven
  2003-06-09 14:45   ` Jurgen Kramer
  2003-06-09 15:05 ` Randy.Dunlap
  1 sibling, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2003-06-09 13:34 UTC (permalink / raw)
  To: Jurgen Kramer; +Cc: Linux Kernel Development

On 9 Jun 2003, Jurgen Kramer wrote:
> 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.

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 -- geert@linux-m68k.org

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Completely disable AT/PS2 keyboard support in 2.4?
  2003-06-09 13:34 ` Geert Uytterhoeven
@ 2003-06-09 14:45   ` Jurgen Kramer
  2003-06-09 15:01     ` Lionel Bouton
  2003-06-10  9:11     ` Geert Uytterhoeven
  0 siblings, 2 replies; 7+ messages in thread
From: Jurgen Kramer @ 2003-06-09 14:45 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linux Kernel Development

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 Mon, 2003-06-09 at 15:34, Geert Uytterhoeven wrote:
> On 9 Jun 2003, Jurgen Kramer wrote:
> > 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.
> 
> 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 -- geert@linux-m68k.org
> 
> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Completely disable AT/PS2 keyboard support in 2.4?
  2003-06-09 14:45   ` Jurgen Kramer
@ 2003-06-09 15:01     ` Lionel Bouton
  2003-06-09 18:39       ` Pekka Pietikainen
  2003-06-10  9:11     ` Geert Uytterhoeven
  1 sibling, 1 reply; 7+ messages in thread
From: Lionel Bouton @ 2003-06-09 15:01 UTC (permalink / raw)
  To: Jurgen Kramer; +Cc: Geert Uytterhoeven, Linux Kernel Development

Jurgen Kramer wrote:

>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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Completely disable AT/PS2 keyboard support in 2.4?
  2003-06-09 10:54 Completely disable AT/PS2 keyboard support in 2.4? Jurgen Kramer
  2003-06-09 13:34 ` Geert Uytterhoeven
@ 2003-06-09 15:05 ` Randy.Dunlap
  1 sibling, 0 replies; 7+ messages in thread
From: Randy.Dunlap @ 2003-06-09 15:05 UTC (permalink / raw)
  To: Jurgen Kramer; +Cc: linux-kernel

On 09 Jun 2003 12:54:36 +0200 Jurgen Kramer <gtm.kramer@inter.nl.net> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Completely disable AT/PS2 keyboard support in 2.4?
  2003-06-09 15:01     ` Lionel Bouton
@ 2003-06-09 18:39       ` Pekka Pietikainen
  0 siblings, 0 replies; 7+ messages in thread
From: Pekka Pietikainen @ 2003-06-09 18:39 UTC (permalink / raw)
  To: Lionel Bouton; +Cc: Jurgen Kramer, Geert Uytterhoeven, Linux Kernel Development

On Mon, Jun 09, 2003 at 05:01:32PM +0200, Lionel Bouton wrote:
> 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)

--- linux-2.4.20-20.1.2007.nptl/drivers/input/keybdev.c.orig	2003-05-31 14:23:10.000000000 +0300
+++ linux-2.4.20-20.1.2007.nptl/drivers/input/keybdev.c	2003-05-31 14:23:58.000000000 +0300
@@ -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);
 }

-- 
Pekka Pietikainen





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Completely disable AT/PS2 keyboard support in 2.4?
  2003-06-09 14:45   ` Jurgen Kramer
  2003-06-09 15:01     ` Lionel Bouton
@ 2003-06-10  9:11     ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2003-06-10  9:11 UTC (permalink / raw)
  To: Jurgen Kramer; +Cc: Linux Kernel Development

On 9 Jun 2003, Jurgen Kramer wrote:
> 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).

> On Mon, 2003-06-09 at 15:34, Geert Uytterhoeven wrote:
> > On 9 Jun 2003, Jurgen Kramer wrote:
> > > 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.
> > 
> > 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 -- geert@linux-m68k.org

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-06-10  8:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-09 10:54 Completely disable AT/PS2 keyboard support in 2.4? Jurgen Kramer
2003-06-09 13:34 ` Geert Uytterhoeven
2003-06-09 14:45   ` Jurgen Kramer
2003-06-09 15:01     ` Lionel Bouton
2003-06-09 18:39       ` Pekka Pietikainen
2003-06-10  9:11     ` Geert Uytterhoeven
2003-06-09 15:05 ` Randy.Dunlap

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.