From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264622AbUEaMum (ORCPT ); Mon, 31 May 2004 08:50:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264625AbUEaMul (ORCPT ); Mon, 31 May 2004 08:50:41 -0400 Received: from main.gmane.org ([80.91.224.249]:37085 "EHLO main.gmane.org") by vger.kernel.org with ESMTP id S264622AbUEaMud (ORCPT ); Mon, 31 May 2004 08:50:33 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Giuseppe Bilotta Subject: Re: Fw: Re: keyboard problem with 2.6.6 Date: Mon, 31 May 2004 14:43:20 +0200 Message-ID: References: <20040529133704.GA6258@ucw.cz> <20040529154443.GA15651@ucw.cz> <20040530114332.GA1441@ucw.cz> <20040530125918.GA1611@ucw.cz> <20040530203146.GA1941@ucw.cz> <20040530212816.GA2987@ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: oblomov.dipmat.unict.it X-Newsreader: MicroPlanet Gravity v2.60 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Vojtech Pavlik wrote: > On Sun, May 30, 2004 at 10:51:18PM +0200, Giuseppe Bilotta wrote: > > > > Interesting. Nevertheless it's just a naming difference, and thus > > > shouldn't be a problem. > > > > Well, it's not just that, not if we want Meta kernel keys to > > become Meta X keys. Which wouldn't be a bad thing, since it > > would mean we'd have the keyboard acting the same under console > > and X. But in this case it would be nice if Linux knew about > > more modifiers than just shift, ctrl, alt, meta. > > Keep in mind that the kernel keys we're talking about are keycodes, not > keysyms, and thus are not a result of a keymap. On the other hand, the > xkb tables you've shown are for keysyms. > > The equivalences are: > > Kernel XKB > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > KEY_LEFTALT == key > KEY_RIGHTALT == key > KEY_LEFTMETA == key > KEY_RIGHTMETA == key > KEY_COMPOSE == key > > There is a 1:1 mapping. > > Now, if you want to make them _do_ the same both in X and on console, > then we're talking keymaps, and there I think is no problem again, > because the kernel can handle up to 9 modifiers as far as I know, > although they don't all have names. > > linux/keyboard.h:#define NR_SHIFT 9 Point fully taken. I retreat in a corner with a big 'A' cone cap on my head. -- Giuseppe "Oblomov" Bilotta Can't you see It all makes perfect sense Expressed in dollar and cents Pounds shillings and pence (Roger Waters)