lkml.org 
[lkml]   [2000]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Capturing the raw keyboard presses.
Date
In article <Pine.LNX.4.10.10002161115250.1182-100000@Wotan.suse.de> you wrote:
>> I assume that this is possible, and fairly easy. I want to log
>> these keystrokes for debugging, etc purposes at the RAW level. I
>> think I've found where I should do it (pc_keyb.c), but I wanted
>> to know what someone would suggest for this.

> Yes, it is fairly easy. Put a printk into the handle_scancode() in keyboard.c
> Bernd

You can use "showkey -s" which is a fairly complete scancode dumper. You can
use the result of those scancodes to use setkeycode to manipulate the
kernels scancode (normal and e0) table.

Greetings
Bernd

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

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