From owner-freebsd-hackers Fri Apr 14 3:13:26 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id 1B8BF37BE7E for ; Fri, 14 Apr 2000 03:13:24 -0700 (PDT) (envelope-from mellon@jurai.net) Received: (from mellon@localhost) by sasami.jurai.net (8.9.3/8.8.7) id GAA89854; Fri, 14 Apr 2000 06:13:13 -0400 (EDT) Date: Fri, 14 Apr 2000 06:13:13 -0400 From: Anatoly Vorobey To: "Daniel O'Connor" Cc: hackers@freebsd.org Subject: Re: PC Keyboard Scancodes Message-ID: <20000414061313.A89767@sasami.jurai.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from doconnor@gsoft.com.au on Fri, Apr 14, 2000 at 05:54:16PM +0930 X-Disclaimer: I was young, I needed the money! Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You, Daniel O'Connor, were spotted writing this on Fri, Apr 14, 2000 at 05:54:16PM +0930: > Hi, > I put together a new PC and noticed the keyboard I bought has 3 extra keys > (Wakeup, Sleep, and Power). I wondered if they could be used by mapping > scancodes to the corresponding meanings, but I can't find the scan codes. > > I made a keymap file which mapped the scan codes from 109 to 255 to > 'debug' but pressing the keys don't trigger it :( > > Does anyone know if/how I can use them? Suggestions thus far have been to > patch syscons to print all the scan codes it gets :) No need to patch. Put syscons into the K_RAW mode (open the device, and use the KDSKBMODE ioctl - search for it in syscons source for details), and syscons'll give you back the scancodes when you read it. This is what X does, by the way. One reason why your approach might not have been working is that keymaps really translate from keycodes to charcodes, not from scancodes to charcodes, and the keyboard driver might've been unsuccessful in matching nonstandard scancodes to keycodes. -- Anatoly Vorobey, mellon@pobox.com http://pobox.com/~mellon/ "Angels can fly because they take themselves lightly" - G.K.Chesterton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message