|
|
3787e6 |
diff -up kbd-1.15.2/man/man1/showkey.1.orig kbd-1.15.2/man/man1/showkey.1
|
|
|
3787e6 |
--- kbd-1.15.2/man/man1/showkey.1.orig 2009-10-09 17:26:13.000000000 +0200
|
|
|
3787e6 |
+++ kbd-1.15.2/man/man1/showkey.1 2011-01-05 12:45:25.726030798 +0100
|
|
|
3787e6 |
@@ -80,6 +80,19 @@ corresponds to what the keyboard hardwar
|
|
|
3787e6 |
to know the scan codes sent by various keys it is better to boot a
|
|
|
3787e6 |
2.4 kernel. Since 2.6.9 there also is the boot option atkbd.softraw=0
|
|
|
3787e6 |
that tells the 2.6 kernel to return the actual scan codes.
|
|
|
3787e6 |
+
|
|
|
3787e6 |
+.SH NOTES
|
|
|
3787e6 |
+The raw scan codes are available only on AT and PS/2 keyboards,
|
|
|
3787e6 |
+and even then they are disabled unless the
|
|
|
3787e6 |
+.B atkbd.softraw=0
|
|
|
3787e6 |
+kernel parameter is used.
|
|
|
3787e6 |
+When the raw scan codes are not available, the kernel uses a fixed built-in
|
|
|
3787e6 |
+table to produce scan codes from keycodes. Thus,
|
|
|
3787e6 |
+.BR setkeycodes (8)
|
|
|
3787e6 |
+can affect the output of
|
|
|
3787e6 |
+.B showkey
|
|
|
3787e6 |
+in scan code dump mode.
|
|
|
3787e6 |
+
|
|
|
3787e6 |
.SH "SEE ALSO"
|
|
|
3787e6 |
.BR loadkeys (1),
|
|
|
3787e6 |
.BR dumpkeys (1),
|
|
|
3787e6 |
diff -up kbd-1.15.2/man/man8/setkeycodes.8.orig kbd-1.15.2/man/man8/setkeycodes.8
|
|
|
3787e6 |
--- kbd-1.15.2/man/man8/setkeycodes.8.orig 2009-10-09 17:26:13.000000000 +0200
|
|
|
3787e6 |
+++ kbd-1.15.2/man/man8/setkeycodes.8 2011-01-05 12:47:46.894739942 +0100
|
|
|
3787e6 |
@@ -38,6 +38,10 @@ to showkey(1), the command
|
|
|
3787e6 |
.RE
|
|
|
3787e6 |
will assign the keycode 112 to it, and then loadkeys(1) can be used
|
|
|
3787e6 |
to define the function of this key.
|
|
|
3787e6 |
+
|
|
|
3787e6 |
+USB keyboards have standardized keycodes and
|
|
|
3787e6 |
+.B setkeycodes
|
|
|
3787e6 |
+doesn't affect them at all.
|
|
|
3787e6 |
.LP
|
|
|
3787e6 |
Some older kernels might hardwire a low scancode range to the
|
|
|
3787e6 |
equivalent keycodes; setkeycodes will fail when you try to remap
|
|
|
3787e6 |
@@ -56,6 +60,14 @@ None.
|
|
|
3787e6 |
.SH BUGS
|
|
|
3787e6 |
The keycodes of X have nothing to do with those of Linux.
|
|
|
3787e6 |
Unusual keys can be made visible under Linux, but not under X.
|
|
|
3787e6 |
+
|
|
|
3787e6 |
+.B setkeycodes
|
|
|
3787e6 |
+affects only the "first" input device
|
|
|
3787e6 |
+that has modifiable scancode-to-keycode mapping.
|
|
|
3787e6 |
+If there is more than one such device,
|
|
|
3787e6 |
+.B setkeycodes
|
|
|
3787e6 |
+cannot change the mapping of other devices than the "first" one.
|
|
|
3787e6 |
+
|
|
|
3787e6 |
.SH "SEE ALSO"
|
|
|
3787e6 |
.I "dumpkeys (1), loadkeys (1), showkey (1), getkeycodes (8)"
|
|
|
3787e6 |
|