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 3E49BC43334 for ; Sat, 9 Jul 2022 14:56:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229460AbiGIO4V (ORCPT ); Sat, 9 Jul 2022 10:56:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiGIO4U (ORCPT ); Sat, 9 Jul 2022 10:56:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 07E611AD89 for ; Sat, 9 Jul 2022 07:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657378579; 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=lhe0MLtyoBkpahosVrejSAhtzTQ5suZXiUqbUoZC8Os=; b=Lz3hQ/S9xIlmgsaebXA+WEdABHXJyII6Eu5ZbmUxU+/N+6vZxr+WvZo90Z8/wspBmhkSVQ 1xoqkEK+N2mYOQ/VPqYlqDl7at/gnQLNytF11bszp9/GKZKL969RYrISQW27ltVwUCul/x NpRLhAKHXFQQgXuUIGRbHhd49/ost/A= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-395-spa4QV2lOvmuRXFOOCQNqg-1; Sat, 09 Jul 2022 10:56:17 -0400 X-MC-Unique: spa4QV2lOvmuRXFOOCQNqg-1 Received: by mail-ed1-f70.google.com with SMTP id z20-20020a05640240d400b0043a82d9d65fso1139637edb.0 for ; Sat, 09 Jul 2022 07:56:17 -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=lhe0MLtyoBkpahosVrejSAhtzTQ5suZXiUqbUoZC8Os=; b=vf/JSecw9QrWWjQy5hdR9FWy9boVhkI1kimzfRCczkVtIgDRRVQ9r+Pivo91LRhQ3x yM1hXDvdyiOJMcyGUk+ASVGJBYfkiNpGMfU+9QoELcGrW6ga+HosirmF6Byfmx4aevZ5 Eu/YfRLfyyfx3F7Ou57IO2YrHJ1VvkStaCQe3aXVJ83xSTIMXK5c0cFEQq1vZ46BnVGn susr+afun0tCcptF48wtdKMgFWdkRjRjymLJjSHBsz0BrBQkA6XbmlPoOoRyZdXE3KI1 YlwmIZG73HZ7ZA4WDYFvilabTl30mePVPI41RcTAzHCAoGeCGutnQZYPgyWfcIlqrm14 qiDg== X-Gm-Message-State: AJIora93FhtejAgTMrzF297F0XH2bGVBpSaLZteolEU19YdAEp46gLr+ Ksm7nrarypV+eDaV0yn0ve/ktHbwp1Oispxa+GuS38isv7GY+n2hqKPBwxk7RIZTWuPMWq5p221 +3saFAQj0mg/FAC/YyE2/tBA= X-Received: by 2002:a17:907:7ba8:b0:72b:1491:c73c with SMTP id ne40-20020a1709077ba800b0072b1491c73cmr8995978ejc.415.1657378576731; Sat, 09 Jul 2022 07:56:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tk8xtQIGFQOcmJKQJrfW5RgVDZYVRGPl9aPcP2hAw6MPO4bXHTwfaYbxpxXXpa5cElXNVuzQ== X-Received: by 2002:a17:907:7ba8:b0:72b:1491:c73c with SMTP id ne40-20020a1709077ba800b0072b1491c73cmr8995961ejc.415.1657378576545; Sat, 09 Jul 2022 07:56:16 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id ch15-20020a0564021bcf00b0043a71c376a2sm1087446edb.33.2022.07.09.07.56.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Jul 2022 07:56:16 -0700 (PDT) Message-ID: <8b893c42-e514-bcef-0513-070b3723cdcc@redhat.com> Date: Sat, 9 Jul 2022 16:56:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.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 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> From: Hans de Goede In-Reply-To: <3fedf676645bfa638c9a6c656121083abc2c98ea.camel@gmx.co.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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). Assuming the brightness keys indeed send events here, then: After that you need to create an update to: /lib/udev/hwdb.d/60-keyboard.hwdb to fix the mapping for your laptop. See the "To update this file, create a new file ..." section. You can find the DMI match pattern used in this file by doing: cat /sys/class/dmi/id/modalias Once you have things working, please submit a pull-req to upstream systemd to get these quirk included in the offical hwdb. Or send me a copy of the local 70-keyboard.hwdb override you have created and I can submit it upstream for you. Regards, Hans > > Best, > Alex > > On Wed, 2022-06-29 at 10:43 +0100, Alex Dewar wrote: >> Hi, >> >> I'm running Linux 5.18.7 on an HP Elite Dragonfly G2 laptop, which >> seems >> to use the i8042 driver. Mostly things seem to work (including >> hotkeys) >> except that the increase/decrease brightness keys instead send the >> "mic >> mute" keycode. (The *actual* mic mute key works fine.) >> >> Any ideas? Do we need to add a quirk? >> >> Best, >> Alex >