From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754254Ab1JPNa1 (ORCPT ); Sun, 16 Oct 2011 09:30:27 -0400 Received: from oceanic.CalvaEDI.COM ([89.202.194.168]:62555 "EHLO oceanic.CalvaEDI.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423Ab1JPNa0 (ORCPT ); Sun, 16 Oct 2011 09:30:26 -0400 Message-ID: <4E9ADC7C.8030903@calvaedi.com> Date: Sun, 16 Oct 2011 15:30:36 +0200 From: John Hughes User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111004 Icedove/3.0.11 MIME-Version: 1.0 To: linux-kernel@vger.kernel.org CC: Mattia Dongili , Stelian Pop Subject: Re: Bug: changing keycodes generated by sony-laptop doesn't work References: <4E9ABBF6.3000504@calvaedi.com> <4E9ACE59.2000003@calvaedi.com> In-Reply-To: <4E9ACE59.2000003@calvaedi.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/16/2011 02:30 PM, John Hughes wrote: > Something about the way sony-laptop sends scancodes and keycodes to > the input subsystem doesn't work. I forgot to say that this is in 2.6.32. Further testing shows that it is possible to change the keycode generated for a particular scancode but that the mapping is wrong. For example: # /lib/udev/keymap -i input/event6 Press ESC to finish scan code: 0x00 key code: fn_e scan code: 0x1B key code: fn_e ^C # /lib/udev/keymap input/event6 0x14 ejectcd setting scancode 0x14 to key code 161 # /lib/udev/keymap -i input/event6 Press ESC to finish scan code: 0x00 key code: ejectcd scan code: 0x1B key code: ejectcd scan code: 0x1B key code: ejectcd scan code: 0x1B key code: ejectcd ^C All the scancodes are 7 off, setting the mapping for scancode 0x14 changes the mapping for what the driver claims is scancode 0x1B. I guess this has something to do with a confusion between the jog-dial scancodes and the Vaio keys scancodes.