From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Milburn Subject: Re: support for Logitech Wave Date: Wed, 30 Apr 2008 18:30:07 +0100 Message-ID: <200804301830.07161.kevin@kmilburn.me.uk> References: <200804250012.19227.linux-user@kmilburn.me.uk> <200804301141.08619.linux-user@kmilburn.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from fhw-relay07.plus.net ([212.159.14.215]:35377 "EHLO fhw-relay07.plus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754256AbYD3SBu (ORCPT ); Wed, 30 Apr 2008 14:01:50 -0400 In-Reply-To: <200804301141.08619.linux-user@kmilburn.me.uk> Content-Disposition: inline Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Jiri Kosina Cc: linux-input@vger.kernel.org On Wednesday 30 April 2008 11:41:08 Kevin Milburn wrote: > Looks like I need to have some fun with getting xkbd and evdev in X working > properly..... > OK, I've had some success with this, but it's left me with a few more questions. I can now use all the extra keys which result in a keycode of less than 255, which appears to be a limitation within the Xorg evdev driver. while experimenting, I've tried using showkey and setkeycodes commands but have encountered a few issues.. Firstly, when showkey is set to keycode mode, which sets the ioctl KDSKBMODE to K_MEDIUMRAW, it show all the expected keycodes. setting it to show scancodes, which sets the ioctl KDSKBMODE to K_RAW, results in the scancodes being show for all the expected keys EXCEPT those with a keycode of 392 or higher (I don't know where the actual break is as this keyboard has no keycodes between 236 and 392). Is this a known issue where these scancodes don't appear, or is it something that needs looking into? Secondly, the primary reason for trying the above was to obtain the scancodes so I could alter the keycodes to work with X. Trying to alter one of the working scancodes (e071) to a new keycode using the setkeycodes command failed with an 'Invalid Argument'. Further research lead me to a comment indicating that setkeycodes does not work on USB keyboards. If this is correct (which it seems to be), is there any other way of altering the keycodes generated by the kernel? TIA Kevin