From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 From: Michael Schutte To: kbd@lists.altlinux.org Date: Thu, 11 Jun 2009 20:38:25 +0200 Message-Id: <1244745505-29716-1-git-send-email-michi@uiae.at> X-Mailer: git-send-email 1.6.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: [kbd] [PATCH 2/2] Update setkeycodes manpage information about hardwired keycodes X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 18:38:46 -0000 Archived-At: List-Archive: 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 --- 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