lkml.org 
[lkml]   [2003]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 2.6.0-test1/2: keyboard funnies in textmode
From
Date
On Fri, 2003-08-01 at 18:37, Andries Brouwer wrote:

> The usual answer is "showkeys" for keycodes, "showkeys -s"
> for scancodes. On 2.6 some cheating is involved, since the
> driver first translates and then untranslates, so raw mode
> is not exactly raw anymore, and replies may be wrong.
>

OK here it goes:

Laptop 2.4 showkey:
kb mode was UNICODE
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
keycode 28 release
keycode 124 press
keycode 124 release
keycode 124 press
keycode 124 release
keycode 124 press
keycode 124 release

Laptop 2.4 showkey -s:
0x7d
0xfd
0x7d
0xfd
0x7d
0xfd
0x2a
0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a
0x2a 0x2a
0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a
0x7d
0xfd
0x7d
0xfd
0x7d
0xfd 0xaa



Laptop 2.6 showkey:
keycode 0 press
keycode 1 release
keycode 55 release
keycode 0 release
keycode 1 release
keycode 55 release

Laptop 2.6 showkey -s:
0x7d
0xfd
0x7d
0xfd
0x7d
0xfd


PC 2.4 showkey:
keycode 43 release
keycode 43 press
keycode 43 release
keycode 43 press
keycode 43 release

PC 2.4 showkey -s:
0x2b 0xab
0x2b 0xab
0x2a
0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2b 0xab
0x2b
0xab 0xaa

PC 2.6 showkey:
keycode 84 press
keycode 84 release
keycode 84 press
keycode 84 release

PC 2.6 showkey -s:
0x2b 0xab
0x2b 0xab
0x2a
0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2a 0x2b 0xab
0x2b 0xab 0xaa

The difference between 2.4 and 2.6 on the laptop are very weird.
Hope this helps.

Greetings,

Jurgen


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.096 / U:6.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site