Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp312268rdb; Sat, 19 Aug 2023 02:51:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/sqo0FW09wDI4WvG4j1A/04p8p/ssZPxMjenIW5T9OfHkQXqtCHYtOA+HZA8e+WXukJdL X-Received: by 2002:a05:6a00:1d87:b0:67f:8ef5:2643 with SMTP id z7-20020a056a001d8700b0067f8ef52643mr1805646pfw.2.1692438701083; Sat, 19 Aug 2023 02:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692438701; cv=none; d=google.com; s=arc-20160816; b=gtqiiyVrOOooGtlgnpr0MkAPHfuNSrDFIx5gLJCvXBKiZQGQqXeslPplurYUuvklx2 sw9HKYO1aOPy6XVCc2fUSy8ATZX4rsZFdQtwdmg28hDhIvtt/gApZyqaoWtG2mDSIYu+ HZsZCzKzK7TuXbc0pp4brZP6viP3tuX+/geGE97Pu6OocohbZYLMQeh5k9xenBWH0qe9 x26zrqZR96G9dVa+AW0X0qRg/eemFirQI2OqJACpnqDMn2Tv2WMKkO8XjqxGr5BZJyCx 9ZPrUl7mthn+jXAHlYScynwPDBOvS3pSXMlPkiSzx9rqx9T7EPgENbcbGF9NuWPH/c7l oJTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from; bh=nE7ahM3KdZ2VI23xb9G7/PxmJdZk1mAF8M88r8tiA30=; fh=Q3BvEpmOqCfx+wLXxgNyCzzVULEvpC1g33oIxDLHnhw=; b=bv7ZDbGs/l67tdDbLCqXx0SJbbqyiCcpoHdJyZRj2pcGhMoySFk6gB0e21D50tvinN 3FfGMbWLFfmKJjr/QJIlXP9FIV7nVYoSYTIiJhYRHR2fGt2XCT1FCiORmK7A6O+iISTN iCa4CxSO88lgYlZlgHa55UByJ15QXkoD+Vs70um7nz9KX0PcCTDYat1CrfpQUQ/v3mme KowWlRPRW2E9y46J2rS/Otn74I2tHyqMlU9ZhtUVnvCvu9Lft8apn5gWGppP/2YRX+Yl SccpUPPqCUQMz7CSKqpvWqD2lGGQKA0ID7ns8R1P1D3k5dieo8B2ngqyJVG+gVK+m+Nr i/Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c7-20020a62e807000000b0068265f40634si3037647pfi.400.2023.08.19.02.51.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 02:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 290A532E73; Sat, 19 Aug 2023 01:29:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344281AbjHSHNM (ORCPT + 99 others); Sat, 19 Aug 2023 03:13:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344511AbjHSHMx (ORCPT ); Sat, 19 Aug 2023 03:12:53 -0400 Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [134.119.228.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97164422B for ; Sat, 19 Aug 2023 00:12:48 -0700 (PDT) Received: from [77.64.243.219] (helo=note-book.lan) by smtprelay08.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qXG8c-00040A-Gc; Sat, 19 Aug 2023 09:12:46 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Sat, 19 Aug 2023 09:12:15 +0200 Subject: [PATCH] platform/x86: ideapad-laptop: Add support for new hotkeys found on ThinkBook 14s Yoga ITL MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230819-lenovo_keys-v1-1-9d34eac88e0a@apitzsch.eu> X-B4-Tracking: v=1; b=H4sIAE5r4GQC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDC0NL3ZzUvPyy/Pjs1Mpi3dQUM1OLNJMUY5MUcyWgjoKi1LTMCrBp0bG 1tQD3vOGNXQAAAA== To: Ike Panhc , Hans de Goede , Mark Gross Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Mailer: b4 0.12.3 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Lenovo Thinkbook 14s Yoga ITL has 4 new symbols/shortcuts on their F9-F11 and PrtSc keys: F9: Has a symbol of a head with a headset, the manual says "Service key" F10: Has a symbol of a telephone horn which has been picked up from the receiver, the manual says: "Answer incoming calls" F11: Has a symbol of a telephone horn which is resting on the receiver, the manual says: "Reject incoming calls" PrtSc: Has a symbol of a siccor and a dashed ellipse, the manual says: "Open the Windows 'Snipping' Tool app" This commit adds support for these 4 new hkey events. Signed-off-by: André Apitzsch --- drivers/platform/x86/ideapad-laptop.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index d2fee9a3e239..6d9297c1d96c 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -1049,6 +1049,11 @@ static const struct key_entry ideapad_keymap[] = { { KE_IGNORE, 0x03 | IDEAPAD_WMI_KEY }, /* Customizable Lenovo Hotkey ("star" with 'S' inside) */ { KE_KEY, 0x01 | IDEAPAD_WMI_KEY, { KEY_FAVORITES } }, + { KE_KEY, 0x04 | IDEAPAD_WMI_KEY, { KEY_SELECTIVE_SCREENSHOT } }, + /* Lenovo Support */ + { KE_KEY, 0x07 | IDEAPAD_WMI_KEY, { KEY_HELP } }, + { KE_KEY, 0x0e | IDEAPAD_WMI_KEY, { KEY_PICKUP_PHONE } }, + { KE_KEY, 0x0f | IDEAPAD_WMI_KEY, { KEY_HANGUP_PHONE } }, /* Dark mode toggle */ { KE_KEY, 0x13 | IDEAPAD_WMI_KEY, { KEY_PROG1 } }, /* Sound profile switch */ --- base-commit: 7271b2a530428b879443b274c191b34536a4ea11 change-id: 20230819-lenovo_keys-ed658f4d34d7 Best regards, -- André Apitzsch