Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3869989pxb; Tue, 10 Nov 2020 02:05:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzh3OVVzfXO1pZj8sk7a7nqA4JTh0NrhuEY+hHHH0+pMWGNuRwhuksL3GFATb48Y6GJwSeJ X-Received: by 2002:a05:6402:a51:: with SMTP id bt17mr19467979edb.328.1605002748827; Tue, 10 Nov 2020 02:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605002748; cv=none; d=google.com; s=arc-20160816; b=bjgM+AkFVkneNvUOgXR8GIgAUerGho2mNymaZ3K/Ykma52iyjiRw4/kssh5Fj68s0U TbhO+fXhFJLwsQq4kw5OVwh4cAoS6+szAAST/ogKFRA5JQJN3lJkkTcsEU1hhrK+RBEK ti9fPG9aNagERQmJ7ISKuvtpYib7U6InHIvmfKcAJSPpAXZvK428pBzl+CC7rX7XfCnM 7K7KUoU2MgLqIQaTGI5bwBV5Z5XfqUSOpcJGO6Gj1O0xAdwm+Ubysh9NwmoI5pjiZ+Kr YRoKO8vpH1HXrNHe6nRgO3sU2/E6e6SCT/IKC2uoyjAAWtecjrgQmEhWeLPgH6NLFqKx oX5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=x5v2eIsxN4Hq0YzpQxHhzvDLBoDO1wsqtaSQHydAams=; b=Z4NjGzbcXbGcyaLftsrF8BnL8JUtOXPix+EFPmaKx2Ic1fbhGwq2pAfq8T/wMfszge RTCbh/A6HjmolVgFxGjoZB+zglyDUPc83NyxaKnrfcUaq+T4ugxIWdqUKS2eMcmWQgbd O0FHRafGeEc/SQ77g4HdD0kX9uoF6pnUzday/iVS/knFYo7RH0tN3HNdYrlwIEybxBeC BIb5m+BhniMFG2Dv5bqnjYbH7R3vVUMsnQGnJagir+RVw6RLIkK2HBSJVv9ADufLZ9gp Riwtd/2Hhs3y86d6IjXS6BWiHFEZD0QYXbjCriLvmuJ8tSNTew1tc+WkLiHO2Vnf9X/7 xjNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dJiAoMMs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si8814662ejk.683.2020.11.10.02.05.25; Tue, 10 Nov 2020 02:05:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dJiAoMMs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727736AbgKJKDj (ORCPT + 99 others); Tue, 10 Nov 2020 05:03:39 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:25837 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgKJKDj (ORCPT ); Tue, 10 Nov 2020 05:03:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605002617; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x5v2eIsxN4Hq0YzpQxHhzvDLBoDO1wsqtaSQHydAams=; b=dJiAoMMs1KX2eiTVsdY7N7/hSRphmTdHiZwLzI9beBKMqA68JydsKXeN8s1OPC5tA9B5j2 839RdKvPMVP0mC8+cojy+WDQmyWzcHTxrn/AcdMbLDRmQwVQ286DlzcM+BInUjfuflx4fJ uT2FHE08u3etLpjGvdvk+CBy9zWqGKY= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-183-gwI_x4uQNxGzyUHiSVFyjw-1; Tue, 10 Nov 2020 05:03:35 -0500 X-MC-Unique: gwI_x4uQNxGzyUHiSVFyjw-1 Received: by mail-ed1-f72.google.com with SMTP id o2so4020456edw.1 for ; Tue, 10 Nov 2020 02:03:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=x5v2eIsxN4Hq0YzpQxHhzvDLBoDO1wsqtaSQHydAams=; b=TevtBQW2khEXk2ARIKNTPGeMNN2YYq3Aajk+n+qGYCa/0Rkpy4hxxXbWO526vOBohS iFUfCZGdvXpTsdl99hqae1KRViRSDpuQe7v3jQfXE+PkmQDVOSsBTya57EcCKBIoQw0X PVP6IWspBTqfznWX3syJswvx92Hlv/KoM374eikCpkJqS0u75zGmWnidmvJJFNaoJX4Y 7a1OeyZev7E/fkOSxq/F552nDOPbluZPHwyCj1O3GKH5GibWO0km8yeKrOJEBdGDHcvU +V7J7eHyMndL2rN/lCneEgfUHH90Zxm3xNZLKpmbl4+ABiROfekRi7Squn+rjUfETX09 +YBQ== X-Gm-Message-State: AOAM530HKH0lyB1d3bvbXWLWUC1cGf+QO5aCHzW30a7pS+rCrMQpc1YB oFnl8B/61Oa7HPkNACfJE18yRaSBtuxwYBfGK8aPEGpWA0QOLloGodz/AVuejLfEQFfeeu7jO61 2TKu54O51QU38RxskCg2+1PsbupyR+v9P5xyD/ofNcWq65ow88S1b/bAAvdUnO7jjSA8Rz95h4J VT X-Received: by 2002:a17:906:5fd0:: with SMTP id k16mr19926563ejv.133.1605002614419; Tue, 10 Nov 2020 02:03:34 -0800 (PST) X-Received: by 2002:a17:906:5fd0:: with SMTP id k16mr19926539ejv.133.1605002614097; Tue, 10 Nov 2020 02:03:34 -0800 (PST) Received: from x1.localdomain (2001-1c00-0c0c-fe00-6c10-fbf3-14c4-884c.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:6c10:fbf3:14c4:884c]) by smtp.gmail.com with ESMTPSA id h22sm5770975ejt.21.2020.11.10.02.03.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Nov 2020 02:03:33 -0800 (PST) Subject: Re: [PATCH] platform/x86: acer-wmi: add automatic keyboard background light toggle key as KEY_LIGHTS_TOGGLE To: Timo Witte Cc: jlee@suse.com, Darren Hart , Andy Shevchenko , "open list:ACER WMI LAPTOP EXTRAS" , open list References: <20200804001423.36778-1-timo.witte@gmail.com> From: Hans de Goede Message-ID: <097353a1-c4d6-7cba-92fc-dd8652fbaf9f@redhat.com> Date: Tue, 10 Nov 2020 11:03:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20200804001423.36778-1-timo.witte@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Quick self intro: I have take over drivers/platform/x86 maintainership from Andy; and I'm working my way through the backlog of old patches in patchwork: https://patchwork.kernel.org/project/platform-driver-x86/list/ On 8/4/20 2:14 AM, Timo Witte wrote: > Got a dmesg message on my AMD Renoir based Acer laptop: > "acer_wmi: Unknown key number - 0x84" when toggling keyboard > background light > > Signed-off-by: Timo Witte > Reviewed-by: "Lee, Chun-Yi" Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans I've made one small change I've replaced the (ignored) KEY_LIGHTS_TOGGLE key-code with KEY_KBDILLUMTOGGLE as that is the correct code to use for toggling the kbd backlight on/off. As the comment in input-event-codes.h says KEY_LIGHTS_TOGGLE is for "/* Reading light on or off */". Note this will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > drivers/platform/x86/acer-wmi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c > index 60c18f21588d..87797f785d6a 100644 > --- a/drivers/platform/x86/acer-wmi.c > +++ b/drivers/platform/x86/acer-wmi.c > @@ -111,6 +111,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = { > {KE_KEY, 0x64, {KEY_SWITCHVIDEOMODE} }, /* Display Switch */ > {KE_IGNORE, 0x81, {KEY_SLEEP} }, > {KE_KEY, 0x82, {KEY_TOUCHPAD_TOGGLE} }, /* Touch Pad Toggle */ > + {KE_IGNORE, 0x84, {KEY_LIGHTS_TOGGLE} }, /* Automatic Keyboard background light toggle */ > {KE_KEY, KEY_TOUCHPAD_ON, {KEY_TOUCHPAD_ON} }, > {KE_KEY, KEY_TOUCHPAD_OFF, {KEY_TOUCHPAD_OFF} }, > {KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} }, >