* [PATCH] input: Extend raw mode to work up to keycode 0xFF
@ 2006-12-11 18:01 Florian Festi
2006-12-12 15:54 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Florian Festi @ 2006-12-11 18:01 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 479 bytes --]
Hi, [please CC me, as I am not subscribed]
currently keycodes above 240 are ignored if the tty is in raw mode. To make the key codes from 241 to 255 usable for programs in raw mode (like X11) the still unused scancodes were
added into that range. Right know these scancodes are used in arbitrary order due the lack of a better alternative. Comments on a better way of using them are welcome.
This extension is needed for some keycodes I submited in a previous patch.
Florian
[-- Attachment #2: rawmodeemulation.diff --]
[-- Type: text/x-patch, Size: 714 bytes --]
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 7a6c1c0..33a1aef 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -1043,7 +1043,8 @@ static const unsigned short x86_keycodes
264,117,271,374,379,265,266, 93, 94, 95, 85,259,375,260, 90,116,
377,109,111,277,278,282,283,295,296,297,299,300,301,293,303,307,
308,310,313,314,315,317,318,319,320,357,322,323,324,325,276,330,
- 332,340,365,342,343,344,345,346,356,270,341,368,369,370,371,372 };
+ 332,340,365,342,343,344,345,346,356,270,341,368,369,370,371,372,
+ 96, 97, 98,110,122,124,127,256,273,298,311,366,378,380,382,383 };
#ifdef CONFIG_MAC_EMUMOUSEBTN
extern int mac_hid_mouse_emulate_buttons(int, int, int);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] input: Extend raw mode to work up to keycode 0xFF
2006-12-11 18:01 [PATCH] input: Extend raw mode to work up to keycode 0xFF Florian Festi
@ 2006-12-12 15:54 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2006-12-12 15:54 UTC (permalink / raw)
To: Florian Festi; +Cc: linux-kernel
On 12/11/06, Florian Festi <ffesti@redhat.com> wrote:
> Hi, [please CC me, as I am not subscribed]
>
> currently keycodes above 240 are ignored if the tty is in raw mode. To make the key codes from 241 to 255 usable for programs in raw mode (like X11) the still unused scancodes were
> added into that range. Right know these scancodes are used in arbitrary order due the lack of a better alternative. Comments on a better way of using them are welcome.
>
> This extension is needed for some keycodes I submited in a previous patch.
>
Values equal or greater 0xf0 (240) have special meaning in PS/2
protocol (aka rawmode) and therefore shall not be used for
transmitting keycodes. It looksl ike we have 0x1a0 range open
(although you will have to use evdev driver to get these keycodes,
which is not a bad thing).
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-12 15:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-11 18:01 [PATCH] input: Extend raw mode to work up to keycode 0xFF Florian Festi
2006-12-12 15:54 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox