Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4825676iob; Mon, 9 May 2022 02:31:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ5yXdoowYp8XJqB40OagN+SNQWulK3KDny48I/INSlSj9HOMpG1h3aH4dlIL5/GC588Yt X-Received: by 2002:a17:90b:1c87:b0:1ca:f4e:4fbe with SMTP id oo7-20020a17090b1c8700b001ca0f4e4fbemr25436210pjb.159.1652088675598; Mon, 09 May 2022 02:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652088675; cv=none; d=google.com; s=arc-20160816; b=T/tgByXS7mTQImisitFkNmVYCDJ7raHPfkW36aWd82SaLgHPVPAecZh8X+yR8D1458 tO02OjDzVQj9gtyxAnEW/gypav6It9K/nyltjj4vrsSlT2Urc7HdsdMGMb51br9g73nU 1g4uawwIX+m4dkoAaDWnZ9DjIj6OysLr5ZfbNH0lHU3eiS+QC9bViZgafzcyP+kBEQyq OUaWs3WgPlxr7YP3tTVEd9sOmIDMX+fbIzLEIQVbOoRCjFK/qV1x1m6K3LaJTMYuvkCh QoPphmDTCBFeGVvH6IAyCKKNLudx7ftP6TkWN395KnJ0ZfLlVXtcMsuqjW4JbLs1m0wD GZ9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=ZqUNvjWc6qfxPvZnmvjPbtp1QQWguZNI9GetenDDpAw=; b=y1FzGnBSmliOkoSq7UF3KFy+eJKH9CCrPhzsQHTefhMIr8AbJhF20hhdUrS3Jzmyce geIcATwy4oAsnrru/YS2EBz9dPhmWF9s0wwDdpdS5Qrzgtc/CmZavlO19E4auimTg+6B kmz85Sm7Ddu6XhjB5MLZii9AkabiGRDTWPH8RmAT6wD5m8GQnl37jUVTEtzN7dGIIbBx g1/fdWtIyrNo0h1e3VRMkUAStqrcolVwqWO5RpZ+sWsNX544q3ixqTCnXriVAPtORpsU x2OmEAkCCt/R4om6wK6zpiQPgz952jwfi9Qas5kZLsoauPAS/f2UfaBUt7JyYFvUg14/ Bb+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=cqi4Xo5Z; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t20-20020a1709028c9400b00153b2d16615si9591721plo.541.2022.05.09.02.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:31:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=cqi4Xo5Z; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 934071CD250; Mon, 9 May 2022 02:19:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391964AbiEFMdD (ORCPT + 99 others); Fri, 6 May 2022 08:33:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392044AbiEFMcK (ORCPT ); Fri, 6 May 2022 08:32:10 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D423E6A40F; Fri, 6 May 2022 05:27:45 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id dk23so14167318ejb.8; Fri, 06 May 2022 05:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZqUNvjWc6qfxPvZnmvjPbtp1QQWguZNI9GetenDDpAw=; b=cqi4Xo5Zc3oZLNL2p8Mjafx627DEi8TsXDj8MW0s/XP1VJzr2PYmlG978syo4B3A5z GWO9R+8yzfg6/0kAZc4VkX5v9s2vyB1HqhKBRREQCZ/YCwZYxJb3HUgei+NJpTljzsh6 M+0PKWPSBJodsRdD+bheM3mIEPfH0vGNL8SYiWI0mKRZ9+TXPX5UW6LmBOSupzs3wTtg by9huPz4nC3HgVFcWFguIfKBd3FTz1g0RfXT3i3nIDizbIIl4LL4M7ZkPiiSzuypbdm/ ejvmAoLuYxOSelkXtpttvtNPxDPZFPYIZnX7YDX/lkKNrJ5V9Xjxzz7osSEoJ4HJA42c yXOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZqUNvjWc6qfxPvZnmvjPbtp1QQWguZNI9GetenDDpAw=; b=VuGur058yFE3K7x1I0ZuL00x2hRBmEyLwXiLzvH2fYSt/FHWo63dxtSC6qU9Y3PQCR hp+eQerhpmgdXfWz84Mik/kuC0wYjqv2tEIUEIK9g8xlN8U9Go6RW1uMOZy+4ro429aD EVjQgbVK8UKyoQwgIx6Ke6Zb6dweEU3ruAEXokFS+kOJ1443FPE/FwaHUc7IdT5dz6XY +3+djmI70XkkgZWAgwCVyFkPcurvy1EGT3xm3AFn7XSVbs4FGoPCGvHxtrQNgKumwe9w 1auh2KwjUyIWYreeCzLmHNHBWkwqIHojWTC0CiTgm1U2esD7qnnVPSHlrdJBoqzBMMRp mwnA== X-Gm-Message-State: AOAM533YY1PkYWVOYj6x608cqEjMKQxvT/6AS+x7vCIcautgK0SCR/FQ LHam3av32Zr300jv8gMqp1w= X-Received: by 2002:a17:907:62a2:b0:6e0:e201:b94e with SMTP id nd34-20020a17090762a200b006e0e201b94emr2728871ejc.730.1651840064344; Fri, 06 May 2022 05:27:44 -0700 (PDT) Received: from luca020400-fedora.lan (93-51-1-159.ip298.fastwebnet.it. [93.51.1.159]) by smtp.googlemail.com with ESMTPSA id k11-20020a056402048b00b0042617ba6383sm2178829edv.13.2022.05.06.05.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 05:27:43 -0700 (PDT) From: Luca Stefani Cc: Luca Stefani , Corentin Chary , Hans de Goede , Mark Gross , acpi4asus-user@lists.sourceforge.net (open list:ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS), platform-driver-x86@vger.kernel.org (open list:ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] platform/x86: asus-nb-wmi: Add keymap for MyASUS key Date: Fri, 6 May 2022 14:25:36 +0200 Message-Id: <20220506122536.113566-2-luca.stefani.ge1@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220506122536.113566-1-luca.stefani.ge1@gmail.com> References: <20220506122536.113566-1-luca.stefani.ge1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,SPOOFED_FREEMAIL_NO_RDNS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This event is triggered by pressing Fn+F12 on ASUS Zenbook UX425JA Map it to KEY_PROG1 to allow userspace to configure it Signed-off-by: Luca Stefani --- drivers/platform/x86/asus-nb-wmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index a81dc4b191b7..57a07db659cb 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c @@ -553,6 +553,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = { { KE_KEY, 0x7D, { KEY_BLUETOOTH } }, /* Bluetooth Enable */ { KE_KEY, 0x7E, { KEY_BLUETOOTH } }, /* Bluetooth Disable */ { KE_KEY, 0x82, { KEY_CAMERA } }, + { KE_KEY, 0x86, { KEY_PROG1 } }, /* MyASUS Key */ { KE_KEY, 0x88, { KEY_RFKILL } }, /* Radio Toggle Key */ { KE_KEY, 0x8A, { KEY_PROG1 } }, /* Color enhancement mode */ { KE_KEY, 0x8C, { KEY_SWITCHVIDEOMODE } }, /* SDSP DVI only */ -- 2.35.1