Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932422Ab1BYJXH (ORCPT ); Fri, 25 Feb 2011 04:23:07 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:40808 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932167Ab1BYJXE (ORCPT ); Fri, 25 Feb 2011 04:23:04 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=gKzbj/lsPUVYEKk+oqeBAqS7xx13NnQ625fBEQIqxe1ujP9mq4RAKSaPHynLrrEbc0 SJ5ygQfEnhwNujn68jDxy6528hmgEj4k3gzhgkusrvwLxRcVHHRxEmCpdm8GKEB7kRgr KXETbFZjMjCe5zrXaV24xmtkOhVsRTyb3zm+c= MIME-Version: 1.0 In-Reply-To: <20110225071827.GA14053@core.coreip.homeip.net> References: <1298611140-21573-1-git-send-email-keng-yu.lin@canonical.com> <20110225071827.GA14053@core.coreip.homeip.net> From: =?UTF-8?B?S2VuZy1Zw7wgTGlu?= Date: Fri, 25 Feb 2011 17:22:43 +0800 X-Google-Sender-Auth: 3-mrEE9uC_2rfx4ntLzd1C2ZkS4 Message-ID: Subject: Re: [PATCH] eeepc-wmi: set the touchpad toggle key code to F21 To: Dmitry Torokhov , Martin Pitt Cc: Corentin Chary , Matthew Garrett , acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, tyson.chen@canonical.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 833 Lines: 17 On Fri, Feb 25, 2011 at 3:18 PM, Dmitry Torokhov wrote: > I believe that the kernel should use KEY_TOUCHPAD_TOGGLE and userspace > should use udev's key re-mapping facilities while X is unable to process > keycodes above 255 to adjust to the keycode du jour. If all kernel > drivers were to use KEY_TOUCHPAD_TOGGLE then remapping would be much > easier (the utility would simply check capabilities for > KEY_TOUCHPAD_TOGGLE and do the remap). Can udev re-map a key code to another? Am I correct that udev can only re-map a scan code to a specified key code. -- 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/