From patchwork Wed Jul 29 19:31:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Stelmach?= X-Patchwork-Id: 6896031 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D89999F358 for ; Wed, 29 Jul 2015 19:32:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 064E92065E for ; Wed, 29 Jul 2015 19:32:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7237C2051C for ; Wed, 29 Jul 2015 19:32:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752477AbbG2TcG (ORCPT ); Wed, 29 Jul 2015 15:32:06 -0400 Received: from smtpo.poczta.interia.pl ([217.74.65.205]:51353 "EHLO smtpo.poczta.interia.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752429AbbG2TcF (ORCPT ); Wed, 29 Jul 2015 15:32:05 -0400 X-Interia-R: Interia X-Interia-R-IP: 89.65.17.18 X-Interia-R-Helo: Received: from localhost (89-65-17-18.dynamic.chello.pl [89.65.17.18]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by www.poczta.fm (INTERIA.PL) with ESMTPSA; Wed, 29 Jul 2015 21:31:56 +0200 (CEST) From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= To: Darren Hart Cc: Corentin Chary , acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?=C5=81ukasz=20Stelmach?= Subject: [PATCH v2] asus-laptop: Add key found on Asus F3M Date: Wed, 29 Jul 2015 21:31:23 +0200 Message-Id: <1438198283-2180-1-git-send-email-stlman@poczta.fm> X-Mailer: git-send-email 2.1.4 In-Reply-To: <20150729044329.GA80946@vmdeb7> References: <20150729044329.GA80946@vmdeb7> MIME-Version: 1.0 X-Interia-Antivirus: OK X-IPL-POID: 4 X-IPL-SAS-SPAS: 1.4 X-IPL-SAS-UREP: 0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1438198319; bh=Ggwbh90U87KpJ3u5v16a6fR9WpVmB93Iva0VjdGHtb8=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:From:To:Cc:Subject: Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding:X-Interia-Antivirus: X-IPL-POID:X-IPL-SAS-SPAS:X-IPL-SAS-UREP; b=J4zoNO1zSuvExSGoQnS9OQpN9CoELYwWwjmAtbi6Mmm3W7BxPj5/mrhZFJB7O2486 w/H4Fg/5jEcA11KSbtmj/IjaoeNm6akhWiWJKJfRu+bhk72CwC3ZetGMd9x1/qPomD znJrzqK0bZ+PEX/RvcETWe8f/lx/UDGLnawJU8Wc= Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Asus F3M has two keys labeled with an icon of a touchpad. The first, reported as 0x6B is next to the power key and the second, reported as 0x6A, is F9 combined with Fn button. When I was pressing the latter, I was getting "Unknown key 6a pressed" message before applying this patch. Asus F3M does not support WMI so the commit does not update key mappings in the asus-nb-wmi.c file. I have not tested this mapping on any other Asus laptop. Signed-off-by: ?ukasz Stelmach Acked-by: Corentin Chary --- drivers/platform/x86/asus-laptop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 58d29c4..f2b5d0a 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c @@ -332,6 +332,7 @@ static const struct key_entry asus_keymap[] = { {KE_KEY, 0x65, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + TV */ {KE_KEY, 0x66, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + TV */ {KE_KEY, 0x67, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV */ + {KE_KEY, 0x6A, { KEY_TOUCHPAD_TOGGLE } }, /* Lock Touchpad Fn + F9 */ {KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } }, /* Lock Touchpad */ {KE_KEY, 0x6C, { KEY_SLEEP } }, /* Suspend */ {KE_KEY, 0x6D, { KEY_SLEEP } }, /* Hibernate */