Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 25 Jan 2003 08:05:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 25 Jan 2003 08:05:57 -0500 Received: from twilight.ucw.cz ([195.39.74.230]:56515 "EHLO twilight.ucw.cz") by vger.kernel.org with ESMTP id ; Sat, 25 Jan 2003 08:05:56 -0500 Date: Sat, 25 Jan 2003 14:15:01 +0100 From: Vojtech Pavlik To: John Bradford Cc: Vojtech Pavlik , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2.5.59] support japanese JP106 keyboard on new console. Message-ID: <20030125141501.A5266@ucw.cz> References: <20030125120113.B28830@ucw.cz> <200301251310.h0PDAaai000191@darkstar.example.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200301251310.h0PDAaai000191@darkstar.example.net>; from john@grabjohn.com on Sat, Jan 25, 2003 at 01:10:36PM +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 25, 2003 at 01:10:36PM +0000, John Bradford wrote: > > > The keymapping on my Japanese keyboard changes quite a bit when it's > > > set up to use set 3, instead of the default set 2. I've temporarily > > > switched back to using set 2, until I've got time to set it up > > > properly, but the language keys don't function in set 2, (they > > > generate the same scancode as the space bar). > > > > > > Let me know if I can provide any extra info from this keyboard - it's > > > an IBM 5576 Keyboard-2, part number 94X1110. > > > > If you can provide the complete key -> scancode table for that keyboard, > > or at least differences against standard US keyboard for both set 2 and > > set 3, that'd be great. > > OK, half way through writing it down, I've realised what is happening > - in set 2, the keyboard seems to be emulating another keyboard > layout, (but apparently not a US or UK one). > > For example, ; and : are on different keys. Shift ; gives + and shift > : gives * > > The keycodes generated, though, show up as follows: > > ; - 39 > shift ; (+) - 13 > : - 42, 39, release 39, release 42 > shift : (*) - 9 > > So, if I press : on it's own, the keyboard actually simulates pressing > shift and ; > > Likewise, if I press right-shift and @ to get ` the keyboard actually > sends a release 54 as soon as I press @, even though I'm still holding > down right-shift, then sends 41, release 41, then 54 Yeah, I've seen this before on some weird keyboards. We need to make sure we understand properly decode what the keyboard is pretending to be - no need to really detect what keys were pressed in reality and what the keyboard just wants us to think are pressed. > I suspect set 3 will producde a more direct mapping of a single > keycode for each key, but we shall see... I hope so. > I'll send along the complete list when I've finished it, (it's taking > ages :-) ). -- Vojtech Pavlik SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/