From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6ADA6C43334 for ; Mon, 11 Jul 2022 12:10:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231486AbiGKMKF (ORCPT ); Mon, 11 Jul 2022 08:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbiGKMKF (ORCPT ); Mon, 11 Jul 2022 08:10:05 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 296C448EA4 for ; Mon, 11 Jul 2022 05:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657541403; 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=zZO1t8x1vKKXKqRlgpTXp1+pMPXfuqgvu4S1UnnB/Hc=; b=RtrTYJ4EJ75oP3jg1ay61c5ys6h4b0/EiZqn/5cYiGbW2uInalUUoSSMzi9R5h+lEKR4Rt WdJK9ecZlDpUYSCxYVSUaVADUfCSHpiY1IecCndNYtJv9r55uMyAI9w+uGmyUigp9tQWSv hO8flLwbXkFJUsft0Ln+nqKuF3xvNp0= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-504-lwnfZP45PNqQpoIcdrOZvQ-1; Mon, 11 Jul 2022 08:10:01 -0400 X-MC-Unique: lwnfZP45PNqQpoIcdrOZvQ-1 Received: by mail-ed1-f69.google.com with SMTP id x21-20020a05640226d500b0043abb7ac086so4019993edd.14 for ; Mon, 11 Jul 2022 05:10:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=zZO1t8x1vKKXKqRlgpTXp1+pMPXfuqgvu4S1UnnB/Hc=; b=Ie6W/gW6jRWxfl7bGuE7JRTwxuJcyDqePs3smiLXUetq2r79yYj8ZnmIcDwAY7L9wz mhIw27aQXmOawhJ6SuTtJfg492RH14Osn5CfMXrJAErPVAF91HaKFI3XKcmrLckJWfpH UAE4VzO9vtEZ9vnYykO21rE4kk1h9IPuDe3LTkkHpJCk2ijCEWVvItNBXZ9jPgk6gu/F 3j6WaimynMSaoLFULATALzTrSwygonzzKcJceAGgfesrGS6JHNYE0jn4h1eHTFBA20lv tAk7YNo05+uCyfXP2wbc7SzrNi6lrou6wvf7jCMArnjglLhrtTnde+f5L1ioQ7A9gopB YIyQ== X-Gm-Message-State: AJIora/twrsbzN1e0qXIXaFB2pcinYTVjd2LD3BtdI6Cx868hspZdA9A LdIuz4sNx8ASeGx4GPkkkJMbdnMhi51AoeQqmB2bUCD56YTxXKrGD9kGrbfD644/lU7Y9eH4r8A +Lh8uBXd9tEdmPF5IvJ8IJjYZMuhjK6Aipg== X-Received: by 2002:a05:6402:34c5:b0:43a:8f90:e643 with SMTP id w5-20020a05640234c500b0043a8f90e643mr24064572edc.88.1657541400742; Mon, 11 Jul 2022 05:10:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1unc4Zn4OKThc2UuVsZ8zNRcENKGzVs1wpa6vNt9iTO0Lm22fWG7sRgAh0Do/nGeuAIxmuWeg== X-Received: by 2002:a05:6402:34c5:b0:43a:8f90:e643 with SMTP id w5-20020a05640234c500b0043a8f90e643mr24064551edc.88.1657541400588; Mon, 11 Jul 2022 05:10:00 -0700 (PDT) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id s17-20020a056402037100b00437938c731fsm4242723edw.97.2022.07.11.05.09.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Jul 2022 05:09:59 -0700 (PDT) Message-ID: Date: Mon, 11 Jul 2022 14:09:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: input/i8042: Malfunctioning brightness keys on HP Elite Dragonfly G2 Content-Language: en-US To: Alex Dewar , dmitry.torokhov@gmail.com, tiwai@suse.de, markgross@kernel.org, "Lopez, Jorge A (Thin Clients)" Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org References: <20220629094314.b7xmfb3xccj7vs6v@ic-alex-elitebook> <3fedf676645bfa638c9a6c656121083abc2c98ea.camel@gmx.co.uk> <8b893c42-e514-bcef-0513-070b3723cdcc@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org Hi Alex, On 7/11/22 09:49, Alex Dewar wrote: > Hi Hans, > > On Sat, 2022-07-09 at 16:56 +0200, Hans de Goede wrote: >> Hi, >> >> On 7/5/22 19:25, Alex Dewar wrote: >>> Friendly ping? 🙂 >>> >>> I'm also CC'ing the x86 platform people into this, as I'm not sure >>> whether this problem is something more within their remit. >> >> Please test the atbkd device with "sudo evemu-record" or "sudo >> evtest" >> and if the brightness keys generate events there, write down the >> raw event codes (MSC events). > > I tried this but unfortunately this doesn't seem to be the whole story. > If I press "decrease brightness" I get: > Event: time 1657525393.922727, -------------- SYN_REPORT ------------ > Event: time 1657525397.043348, type 4 (EV_MSC), code 4 (MSC_SCAN), > value 81 > Event: time 1657525397.043348, type 1 (EV_KEY), code 190 (KEY_F20), > value 1 > Event: time 1657525397.043348, -------------- SYN_REPORT ------------ > Event: time 1657525397.050384, type 4 (EV_MSC), code 4 (MSC_SCAN), > value 81 > Event: time 1657525397.050384, type 1 (EV_KEY), code 190 (KEY_F20), > value 0 > > And if I press "increase brightness" I get: > Event: time 1657525397.050384, -------------- SYN_REPORT ------------ > Event: time 1657525398.607184, type 4 (EV_MSC), code 4 (MSC_SCAN), > value 81 > Event: time 1657525398.607184, type 1 (EV_KEY), code 190 (KEY_F20), > value 1 > Event: time 1657525398.607184, -------------- SYN_REPORT ------------ > Event: time 1657525398.614190, type 4 (EV_MSC), code 4 (MSC_SCAN), > value 81 > Event: time 1657525398.614190, type 1 (EV_KEY), code 190 (KEY_F20), > value 0 > > There's no difference! And I also get the same thing if I press the > *actual* mute mic button 😞. > > Any ideas? >From this it looks like we need to use some other interface to get these events (+ ignore the above events). Do you have a "HP WMI hotkeys" device in your list of input devices? And are you getting any events on that ? Likewise do you have a "Video Bus" device and any events on that ? I've also added Jorge from HP to the Cc. Jorge, can you help with this ? Regards, Hans