Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932959Ab1BYWZr (ORCPT ); Fri, 25 Feb 2011 17:25:47 -0500 Received: from novprvlin0050.provo.novell.com ([137.65.248.33]:33918 "EHLO novprvlin0050.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932401Ab1BYWZp (ORCPT ); Fri, 25 Feb 2011 17:25:45 -0500 Message-Id: <4D68C70E02000023000290F5@novprvlin0050.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 8.0.2 Date: Fri, 25 Feb 2011 15:25:34 -0700 From: "Joey Lee" To: Cc: , , , , , "Joey Lee" , , , Subject: Re: [PATCH] eeepc-wmi: set the touchpad toggle key code to F21 References: <1298611140-21573-1-git-send-email-keng-yu.lin@canonical.com> <20110225071827.GA14053@core.coreip.homeip.net> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2819 Lines: 65 於 五,2011-02-25 於 09:14 -0600,Chris Bagwell 提到: > On Fri, Feb 25, 2011 at 1:18 AM, Dmitry Torokhov > wrote: > > On Fri, Feb 25, 2011 at 07:52:11AM +0100, Corentin Chary wrote: > >> On Fri, Feb 25, 2011 at 6:19 AM, Keng-Yu Lin wrote: > >> > Signed-off-by: Keng-Yu Lin > >> > --- > >> > drivers/platform/x86/eeepc-wmi.c | 2 +- > >> > 1 files changed, 1 insertions(+), 1 deletions(-) > >> > > >> > https://bugs.freedesktop.org/show_bug.cgi?id=31333 > >> > > >> > diff --git a/drivers/platform/x86/eeepc-wmi.c b/drivers/platform/x86/eeepc-wmi.c > >> > index d399775..da00cbc 100644 > >> > --- a/drivers/platform/x86/eeepc-wmi.c > >> > +++ b/drivers/platform/x86/eeepc-wmi.c > >> > @@ -113,7 +113,7 @@ static const struct key_entry eeepc_wmi_keymap[] = { > >> > { KE_KEY, 0x32, { KEY_MUTE } }, > >> > { KE_KEY, 0x5c, { KEY_F15 } }, /* Power Gear key */ > >> > { KE_KEY, 0x5d, { KEY_WLAN } }, > >> > - { KE_KEY, 0x6b, { KEY_F13 } }, /* Disable Touchpad */ > >> > + { KE_KEY, 0x6b, { KEY_F21 } }, /* Disable Touchpad */ > >> > { KE_KEY, 0x82, { KEY_CAMERA } }, > >> > { KE_KEY, 0x83, { KEY_CAMERA_ZOOMIN } }, > >> > { KE_KEY, 0x88, { KEY_WLAN } }, > >> > >> Hum, I'm not very comfortable with this patch now that we got > >> KEY_TOUCHPAD_TOGGLE. > >> I know, it doesn't work with current Xorg, but if we continue to > >> workaround that, it'll never be fixed. > >> > >> Dmitry, Matthew, any advice ? > > > > 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). > > I submitted last month a patch to udev to do the scancode-to-F21 > mapping. So that part should be covered for near term. > > I also agree if we are going to change kernel side, we should change > to KEY_TOUCHPAD_TOGGLE in both eeepc-laptop and eeepc-wmi. > > http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=0d8b6be5f5238360d2d8e220d6da280f842c5358 > Found acer-wmi also have Touchpad toggle but mapping to F22 {KE_KEY, 0x82, {KEY_F22} }, /* Touch Pad On/Off */ Will also send patch to udev keymap first, then change the wmi driver mapping to KEY_TOUCHPAD_TOGGLE. Thank's Joey Lee -- 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/