Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2974391iog; Mon, 20 Jun 2022 08:34:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s12FcfBRK4eGyTFBdTc2c89vXh/0TldaSN4hbi9wYMl1QJWi3w/mqSVt/B/pDYDoL5Y4iv X-Received: by 2002:a05:6402:3592:b0:42d:fb03:319c with SMTP id y18-20020a056402359200b0042dfb03319cmr29738918edc.137.1655739265150; Mon, 20 Jun 2022 08:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655739265; cv=none; d=google.com; s=arc-20160816; b=lxTH+QvCMGiKgQ4xIH4jEfEqGHTBq53e8l1M36WUOfyqI29Pyz0dIp1nz8HDH/R4UX B2inDvt69fxqe8lcymnWJzO5C1aNLJ9xDg6u4tCqcHshtsLVUS5H3dQKoBps8Nefx4lI 6poyFTrqtP+OtkqhMEuZwPs8mnVkpxD0ssWpddpElCm0L1szWlC/IjA3IR05N+phdMgf n6Y72NhXR+zgxpIIgIbJdjD95drN6cAQSN2zOds9qYRkEGtu8tbWxWE+2gyJoM4bkqkJ 8dt/8seyKSFV2W2b97U6iYSRsc/i3K94BAZeDVEzhgrzvW8AfH/85iMYihgE2J1AVGY4 jJ/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uoD4CohKeFKAdzz/7CKztb2Hub8lOJ4GYMuhlqlAhgY=; b=cNAAcgNegLpoDdzxMSgplUoRKTIXqkGsTxCCn/zCPd9BLR+8ghAMicQfVL+/BeU9qJ i/yh+Krg+vXkSomp4GIfsPW6e6eg9qcLwDHxe1AWTiGEYwyJ9hlqpyLjPsK0pWW1ss1N hmQhr5xjqt83CBiikXxVge8ybNQGOFvM4+Z+u/juSU9HEg/xH2PjY05FEHWJFmnZ9oLD nQAj7vDyQ/1I61sDgCPNHKp5eTY7xF35vMcL+xBeGr+9ppWlyVTf7rLf9Gq+da4WC5om 2vseIUfoQHIyYtkbUspzEfHBmH7TWPau3YucFD2gl1OaLQqfjMhYGr4GdzWqAavhDfT9 ICYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QmzpYUjr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr35-20020a1709073fa300b006fe8d7af992si9046784ejc.894.2022.06.20.08.33.59; Mon, 20 Jun 2022 08:34:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QmzpYUjr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241713AbiFTPZP (ORCPT + 99 others); Mon, 20 Jun 2022 11:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243945AbiFTPYv (ORCPT ); Mon, 20 Jun 2022 11:24:51 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64E702DC4; Mon, 20 Jun 2022 08:21:59 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id kq6so21771440ejb.11; Mon, 20 Jun 2022 08:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uoD4CohKeFKAdzz/7CKztb2Hub8lOJ4GYMuhlqlAhgY=; b=QmzpYUjrtva5X/XApH8CqKDt+tO0hWQclNzbj21drpdHVAo+cFhzyDSNwZaUtv2ggc ZYCVsXIMwOJwFeYsT/C8k2ew+tBiPnjhS8vumlzfr7dtfMlelT8YwwnHYSUPZMgUuqV1 EqEZR5DFBCCV6UAFOmrFR8kAQJI0MYlg6mBf1+MR9BhoqzjDWbj4dCrG+sPG0olRNVTa 6Y3jBXz3fDGHdm/KAf7zb+bdBOfwDn6pSrCJn/DUW1NALV1I2D3yhPTUuPLRxJvg3OjT ZCO2aiDM4yYVbRwn/V/UBO4eeo7r2xL4Qvstr3q8ivJF/sQG1SedP7SvoxNryCbCwq5C lAow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uoD4CohKeFKAdzz/7CKztb2Hub8lOJ4GYMuhlqlAhgY=; b=lQQwkCE4Xig7j9zCpPYhybkCygHLFtDiPLBWGwWsIWsmIE5q+ZG3jRoho74t8dPpqV Og32hHJsJpMhn7NUVpLqnpQZenN6iO4aigorYPaJh72k0K8fQ9RgbzX+zw+Go24Quy4y H1lqWrDfyAUCfEI7svsg2AcPy/Fi2DGbapY/09T8qmc5nDHO0YVZQz9huGaetW6Rye7h N5WMKpm53t2OJGKYISdB7n8ctUy0ClnFbYUtwKwfMTneMc6yfCcKRvdb4coPGHMJ0gIM JRXelkLi7SqbZFIKFZSF7fVRaokImPWhjmdRLDH6SUWmemdpBdf0ltQ9gJkEc+V7xeSg AfNQ== X-Gm-Message-State: AJIora+4dynu6h8SHtAZJvgZrqCEZ379IqSuFKCCoDYynCc0MwxT7i2/ fuk5SevoCSMGVyg3TUd27yyDgVBBDutqs02SRpeqTofH2yknbw== X-Received: by 2002:a17:907:6e90:b0:711:cb3c:8c1a with SMTP id sh16-20020a1709076e9000b00711cb3c8c1amr22207187ejc.516.1655738517835; Mon, 20 Jun 2022 08:21:57 -0700 (PDT) MIME-Version: 1.0 References: <20200821181433.17653-8-kenneth.t.chan@gmail.com> <20220612090507.20648-1-stefan.seyfried@googlemail.com> <20220612090507.20648-3-stefan.seyfried@googlemail.com> <6969ca0e-4a4c-c995-02a2-6645f875338c@redhat.com> <5f03f5b9-87bb-e27d-ce51-9c1572221f21@redhat.com> In-Reply-To: <5f03f5b9-87bb-e27d-ce51-9c1572221f21@redhat.com> From: Kenneth Chan Date: Mon, 20 Jun 2022 23:21:20 +0800 Message-ID: Subject: Re: [PATCH 2/2] platform/x86: panasonic-laptop: allow to use all hotkeys To: Hans de Goede Cc: Stefan Seyfried , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List , Stefan Seyfried Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 It took quite a while to do a full compile, just to be safe. On Fri, 17 Jun 2022 at 19:07, Hans de Goede wrote: > > > Looking at this has also brought up an unrelated backlight question: > > Kenneth, since you have acpi-video reporting keypresses you will > likely also have an acpi_video (or perhaps a native intel) backlight > under /sys/class/backlight and I noticed that panasonic-laptop > uncondirionally registers its backlight so you may very well end > up with 2 backlight controls under /sys/class/backlight, which > we generally try to avoid (so that userspace does not have to > guess which one to use). > > Can you do: > ls /sys/class/backlight root@jaguar:~# ls -l /sys/class/backlight/ total 0 lrwxrwxrwx 1 root root 0 Jun 19 17:26 acpi_video0 -> ../../devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/ lrwxrwxrwx 1 root root 0 Jun 19 17:26 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/ lrwxrwxrwx 1 root root 0 Jun 19 18:48 panasonic -> ../../devices/virtual/backlight/panasonic/ > > and let me know the output? > > Also if there are 2 backlights there then please do: > cat /sys/class/backlight//max_brightness > to find out the range (0-value) root@jaguar:~# cat /sys/class/backlight/acpi_video0/max_brightness 20 root@jaguar:~# cat /sys/class/backlight/intel_backlight/max_brightness 6375000 root@jaguar:~# cat /sys/class/backlight/panasonic/max_brightness 21 > > and then try if they both work by doing: > > echo $number > /sys/class/backlight//brightness > > with different $number values in the range and see > if this actually changes the brightness. /sys/class/backlight/acpi_video0/brightness: works /sys/class/backlight/intel_backlight/brightness: works /sys/class/backlight/panasonic/brightness: does not work The mute, volume up/down keys are still duplicated by atkbd after applying 0005-platform-x86-panasonic-laptop-filter-out-duplicate-v.patch. -- Kenneth