From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754221Ab1JPMaA (ORCPT ); Sun, 16 Oct 2011 08:30:00 -0400 Received: from oceanic.CalvaEDI.COM ([89.202.194.168]:61942 "EHLO oceanic.CalvaEDI.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751987Ab1JPMaA (ORCPT ); Sun, 16 Oct 2011 08:30:00 -0400 Message-ID: <4E9ACE59.2000003@calvaedi.com> Date: Sun, 16 Oct 2011 14:30:17 +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: Bug: changing keycodes generated by sony-laptop doesn't work References: <4E9ABBF6.3000504@calvaedi.com> In-Reply-To: <4E9ABBF6.3000504@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 Something about the way sony-laptop sends scancodes and keycodes to the input subsystem doesn't work. 1. using the /lib/udev/keymap utility to show the scancodes and keycodes generated by the Sony Vaio keys device shows them out-of sync: start keymap, press EJECT (mapped by sony-laptop to FN_E) twice, then AV MODE (mapped to PROG1) twice: # /lib/udev/keymap -i input/event5 Press ESC to finish scan code: 0x00 key code: fn_e scan code: 0x1B key code: fn_e scan code: 0x1B key code: prog1 scan code: 0x20 key code: prog1 ^C Notice that each time a key is pressed the scancode shown is the scancode of the previous key. 2. Changing the keycode for a given scancode has no effect: # /lib/udev/keymap input/event5 0x1B ejectcd setting scancode 0x1B to key code 161 # /lib/udev/keymap -i input/event5 Press ESC to finish scan code: 0x00 key code: fn_e scan code: 0x1B key code: fn_e ^C