Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp589025pxf; Wed, 10 Mar 2021 12:32:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1dirYTrt2Ktj5S3Zhsp9rQkW/6xIlNNi8REuOJ/Ry3q/B5GIl+p+E44bZcilWN0fsZ9jB X-Received: by 2002:a17:906:8a6e:: with SMTP id hy14mr245324ejc.356.1615408370773; Wed, 10 Mar 2021 12:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615408370; cv=none; d=google.com; s=arc-20160816; b=vGVvtCrvqW+n+C3XA0ckDeueI0flxGF+RU1ekKk4QnFN3jAn35C4G5tTt2Gp7HX0hR WR+TbQoTevx/ZdFkzwNndOwZS5mrOC2DJMtKpldz8G86tciQE/Po4sSgD9CTNjKH/oLu bnXIsLG8gtwzEDw823fZ91lWmyRE8qzCICLOHeYxDhJ91KQzrSLQBKRW7KtBmg7uEtGA 4zb3Yksy/GqbCD3pZSSAlFdwO7fRDcZ/gtflsHGGld2eaVH02FcHGHpb7P2ngWMAdlP8 /kwwyc0MVcBm/PTQRSdgNV6kTgXUFIlJ0qWkso2GLWqfMRiXrp3dK1DwpWKbLHmqnV/W B0lQ== 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:organization :from:references:to:subject:reply-to; bh=xnjW2gYcKzMYVuFzZCuAHuSWtjG8gtddXdtZPYAa8ug=; b=YIl35JzDwbS2MVP1FYv5JprwwF21uTl5/nJnxkclqJPKCyjYLqeBQLsbCLHlyQ5nlL YiKq+P8UN7qyY7rB2oVtjV3rinFeRZOyT0jkXdHvcW7xxaxh7p7vAmcmZIBe4l2S2SwJ LsJIimJBUzT1OuZs1/dBI5C7ywB3wR7EdXJ2H3LofyjTawwn3xqpUEZ+x6y8B0mVLeUk V9Ffn93xWysJMPv2z5Era34QZ+PWpsrYevCS5OUyyuV1GGwKmZ6rlGV7Ts1eiMWBqJY+ ZZYJRM7Kgn5+1EJL0OV/WMOwetr25tFEV69BNGAuwOCflYSzJh0m65xgI4SuE0GBd39R Ka5w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si294297edr.602.2021.03.10.12.32.24; Wed, 10 Mar 2021 12:32:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbhCJUb3 (ORCPT + 99 others); Wed, 10 Mar 2021 15:31:29 -0500 Received: from smtp70.ord1c.emailsrvr.com ([108.166.43.70]:38572 "EHLO smtp70.ord1c.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbhCJUbY (ORCPT ); Wed, 10 Mar 2021 15:31:24 -0500 X-Greylist: delayed 396 seconds by postgrey-1.27 at vger.kernel.org; Wed, 10 Mar 2021 15:31:23 EST X-Auth-ID: markh@compro.net Received: by smtp17.relay.ord1c.emailsrvr.com (Authenticated sender: markh-AT-compro.net) with ESMTPSA id 2735E600FD; Wed, 10 Mar 2021 15:24:46 -0500 (EST) Reply-To: markh@compro.net Subject: Re: Logitech G602 wireless mouse kernel error messages in 5.10.11+ kernels To: =?UTF-8?Q?Filipe_La=c3=adns?= , Jiri Kosina , sashal@kernel.org, Linux-kernel References: From: Mark Hounschell Organization: Compro Computer Svcs. Message-ID: <8276a207-abe7-06cc-0c25-f4eebf1a9525@compro.net> Date: Wed, 10 Mar 2021 15:24:45 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Classification-ID: 494214d0-accd-474b-8f27-c6eec4513597-1-1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/10/21 2:56 PM, Filipe Laíns wrote: > On Wed, 2021-03-10 at 13:55 -0500, Mark Hounschell wrote: >> I have been using a Logitech wireless G602 mouse since forever. As of >> kernel 5.10.11 I get the following kernel messages; >> >> >> $dmesg | grep -i logitech > (snip) >> . >> . >> . >> Every mouse event seems to produce another "Unexpected input report >> number 128" kernel message. >> >> The commit that started this is: >> >> commit 1e6fc9768ed2c3917e1fd7af26cb194dfe14f7da >> Author: Filipe Laíns >> Date:   Mon Jan 4 20:47:17 2021 +0000 >> >>      HID: logitech-dj: add the G602 receiver >> >>      [ Upstream commit e400071a805d6229223a98899e9da8c6233704a1 ] >> >>      Tested. The device gets correctly exported to userspace and I can see >>      mouse and keyboard events. >> >>      Signed-off-by: Filipe Laíns >>      Signed-off-by: Jiri Kosina >>      Signed-off-by: Sasha Levin >> >> The actual patch: >> >> diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c >> index 1ffcfc9a1e033..45e7e0bdd382b 100644 >> --- a/drivers/hid/hid-logitech-dj.c >> +++ b/drivers/hid/hid-logitech-dj.c >> @@ -1869,6 +1869,10 @@ static const struct hid_device_id >> logi_dj_receivers[] = { >>            HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, >>                  0xc531), >>           .driver_data = recvr_type_gaming_hidpp}, >> +       { /* Logitech G602 receiver (0xc537) */ >> +         HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, >> +               0xc537), >> +        .driver_data = recvr_type_gaming_hidpp}, >>          { /* Logitech lightspeed receiver (0xc539) */ >>            HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, >>                  USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1), >> >> >> >> markh@harley:~> lsusb >> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub >> Bus 003 Device 003: ID 046d:c537 Logitech, Inc. >> Bus 003 Device 002: ID 0424:2504 Standard Microsystems Corp. USB 2.0 Hub >> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub >> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> >> >> >> With the patch reverted: >> >> $dmesg | grep -i logitech > (snip) >> >> $lsusb >> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub >> Bus 003 Device 003: ID 046d:c537 Logitech, Inc. >> Bus 003 Device 002: ID 0424:2504 Standard Microsystems Corp. USB 2.0 Hub >> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub >> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> >> With or without the patch and error messages the mouse has always worked. >> >> Regards >> Mark > > Yes, sorry about that. The following patch should fix it, can you confirm? > You probably didn't notice any breakage because you do not have any of your > buttons bound to keyboard events. > > > commit ef07c116d98772952807492bd32a61f5af172a94 (hid/for-5.11/upstream-fixes) > Author: Filipe Laíns > Date: Fri Feb 5 14:34:44 2021 +0000 > > HID: logitech-dj: add support for keyboard events in eQUAD step 4 Gaming > > In e400071a805d6229223a98899e9da8c6233704a1 I added support for the > receiver that comes with the G602 device, but unfortunately I screwed up > during testing and it seems the keyboard events were actually not being > sent to userspace. > This resulted in keyboard events being broken in userspace, please > backport the fix. > > The receiver uses the normal 0x01 Logitech keyboard report descriptor, > as expected, so it is just a matter of flagging it as supported. > > Reported in > https://github.com/libratbag/libratbag/issues/1124 > > Fixes: e400071a805d6 ("HID: logitech-dj: add the G602 receiver") > Cc: > Signed-off-by: Filipe Laíns > Signed-off-by: Jiri Kosina > > diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c > index 45e7e0bdd382..fcdc922bc973 100644 > --- a/drivers/hid/hid-logitech-dj.c > +++ b/drivers/hid/hid-logitech-dj.c > @@ -980,6 +980,7 @@ static void logi_hidpp_recv_queue_notif(struct hid_device > *hdev, > case 0x07: > device_type = "eQUAD step 4 Gaming"; > logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem); > + workitem.reports_supported |= STD_KEYBOARD; > break; > case 0x08: > device_type = "eQUAD step 4 for gamepads"; > > That is correct, I don't have any buttons bound to keyboard events. With the original patch the G4(forward) and G5(Backward) buttons work in a browser. I guess G7, G8, and G9 buttons are programmable to keyboard events? However this patch does not seem to fix the messages I get. Regards Mark