Linux console tools development discussion
 help / color / mirror / Atom feed
* [kbd] [PATCH 2/2] Update setkeycodes manpage information about hardwired keycodes
@ 2009-06-11 18:38 Michael Schutte
  2009-06-13 11:21 ` Alexey Gladkov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Schutte @ 2009-06-11 18:38 UTC (permalink / raw)
  To: kbd

At least newer kernels don’t use hardwired scancode-keycode mappings.
Rephrase the affected part of the setkeycodes(8) manpage.

Signed-off-by: Michael Schutte <michi@uiae.at>
---
 man/man8/setkeycodes.8 |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/man/man8/setkeycodes.8 b/man/man8/setkeycodes.8
index 69dee20..8cad162 100644
--- a/man/man8/setkeycodes.8
+++ b/man/man8/setkeycodes.8
@@ -29,10 +29,8 @@ the sequence produced by the Pause key, and apart from shiftstate
 related scancodes, and apart from the key up/down bit,
 the stream of scancodes consists of unescaped
 scancodes xx (7 bits) and escaped scancodes e0 xx (8+7 bits).
-It is hardwired in the current kernel that in the range 1-88
-(0x01-0x58) keycode equals scancode. For the remaining scancodes
-(0x59-0x7f) or scancode pairs (0xe0 0x00 - 0xe0 0x7f) a
-corresponding keycode can be assigned (in the range 1-127).
+To these scancodes or scancode pairs, a corresponding keycode can be
+assigned (in the range 1-127).
 For example, if you have a Macro key that produces e0 6f according
 to showkey(1), the command
 .RS
@@ -40,6 +38,10 @@ to showkey(1), the command
 .RE
 will assign the keycode 112 to it, and then loadkeys(1) can be used
 to define the function of this key.
+.LP
+Some older kernels might hardwire a low scancode range to the
+equivalent keycodes; setkeycodes will fail when you try to remap
+these.
 
 .SH "2.6 KERNELS"
 In 2.6 kernels key codes lie in the range 1-255, instead of 1-127.
-- 
1.6.3.1



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

* Re: [kbd] [PATCH 2/2] Update setkeycodes manpage information about hardwired keycodes
  2009-06-11 18:38 [kbd] [PATCH 2/2] Update setkeycodes manpage information about hardwired keycodes Michael Schutte
@ 2009-06-13 11:21 ` Alexey Gladkov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2009-06-13 11:21 UTC (permalink / raw)
  To: kbd

11.06.2009 22:38, Michael Schutte wrote:
> At least newer kernels don’t use hardwired scancode-keycode mappings.
> Rephrase the affected part of the setkeycodes(8) manpage.
> 
> Signed-off-by: Michael Schutte <michi@uiae.at>

Thanks! Applied.

-- 
Rgrds, legion



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

end of thread, other threads:[~2009-06-13 11:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-11 18:38 [kbd] [PATCH 2/2] Update setkeycodes manpage information about hardwired keycodes Michael Schutte
2009-06-13 11:21 ` Alexey Gladkov

Linux console tools development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
		kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
	public-inbox-index kbd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kbd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git