FS#78427 - Since kernel 6.3.1 logitech unify receiver not working properly.
Attached to Project:
Arch Linux
Opened by Guy B (sushi2503) - Saturday, 06 May 2023, 10:38 GMT
Last edited by Toolybird (Toolybird) - Saturday, 10 June 2023, 03:03 GMT
Opened by Guy B (sushi2503) - Saturday, 06 May 2023, 10:38 GMT
Last edited by Toolybird (Toolybird) - Saturday, 10 June 2023, 03:03 GMT
|
Details
Hello,
Since kernel 6.3.1 (last update) the boot process hangs (~ 5 seconds) by uevent triggering with the following errors : logitech-hidpp-device 0003:046D:405E.0004: hidpp_devicenametype_get_count: received protocol error 0x07 The all log about logitech input: usb 1-8: new full-speed USB device number 2 using xhci_hcd mai 06 11:54:24 Cockpit kernel: usb 1-8: New USB device found, idVendor=046d, idProduct=c52b, bcdDevice=24.10 mai 06 11:54:24 Cockpit kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0 mai 06 11:54:24 Cockpit kernel: usb 1-8: Product: USB Receiver mai 06 11:54:24 Cockpit kernel: usb 1-8: Manufacturer: Logitech mai 06 11:54:24 Cockpit kernel: input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:046D:C52B.0001/input/input4 mai 06 11:54:24 Cockpit kernel: hid-generic 0003:046D:C52B.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:14.0-8/input0 mai 06 11:54:24 Cockpit kernel: input: Logitech USB Receiver Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:046D:C52B.0002/input/input5 mai 06 11:54:24 Cockpit kernel: input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:046D:C52B.0002/input/input6 mai 06 11:54:24 Cockpit kernel: input: Logitech USB Receiver System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:046D:C52B.0002/input/input7 mai 06 11:54:24 Cockpit kernel: hid-generic 0003:046D:C52B.0002: input,hiddev96,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-8/input1 mai 06 11:54:24 Cockpit kernel: hid-generic 0003:046D:C52B.0003: hiddev97,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-8/input2 mai 06 11:54:24 Cockpit kernel: usbcore: registered new interface driver usbhid mai 06 11:54:24 Cockpit kernel: usbhid: USB HID core driver mai 06 11:54:24 Cockpit kernel: logitech-djreceiver 0003:046D:C52B.0003: hiddev96,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-8/input2 mai 06 11:54:24 Cockpit kernel: input: Logitech Wireless Device PID:405e Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:405E.0004/input/input9 mai 06 11:54:24 Cockpit kernel: input: Logitech Wireless Device PID:405e Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:405E.0004/input/input10 mai 06 11:54:24 Cockpit kernel: hid-generic 0003:046D:405E.0004: input,hidraw1: USB HID v1.11 Keyboard [Logitech Wireless Device PID:405e] on usb-0000:00:14.0-8/input2:1 mai 06 11:54:24 Cockpit kernel: input: Logitech Wireless Device PID:2010 Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:2010.0005/input/input14 mai 06 11:54:24 Cockpit kernel: hid-generic 0003:046D:2010.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech Wireless Device PID:2010] on usb-0000:00:14.0-8/input2:2 mai 06 11:54:24 Cockpit kernel: logitech-hidpp-device 0003:046D:405E.0004: HID++ 4.5 device connected. mai 06 11:54:24 Cockpit kernel: logitech-hidpp-device 0003:046D:405E.0004: hidpp_devicenametype_get_count: received protocol error 0x07 mai 06 11:54:24 Cockpit kernel: input: Logitech Wireless Device PID:405e as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:405E.0004/input/input18 mai 06 11:54:24 Cockpit kernel: logitech-hidpp-device 0003:046D:405E.0004: input,hidraw1: USB HID v1.11 Keyboard [Logitech Wireless Device PID:405e] on usb-0000:00:14.0-8/input2:1 mai 06 11:54:24 Cockpit kernel: input: Logitech Wireless Device PID:2010 as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:2010.0005/input/input19 mai 06 11:54:24 Cockpit kernel: logitech-hidpp-device 0003:046D:2010.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech Wireless Device PID:2010] on usb-0000:00:14.0-8/input2:2 Steps to reproduce: Just boot and wait. Next, once booted and remove the unify receiver and plug it again there is a massive lag (~ 1 minute) before that the receiver get ready for the mouse and keyboard to be functional with following errors : kernel: logitech-hidpp-device 0003:046D:405E.0022: hidpp_devicenametype_get_count: received protocol error 0x07 kernel: logitech-hidpp-device 0003:046D:405E.0023: Couldn't get wheel multiplier (error -110) Unify receiver with K800 keyboard and M720 Triathlon mouse paired. The strange thing is that this happen on my desktop computer but no problem on my laptop with a unify receiver and a marathon 705 mouse. On the desktop the boot is fine without the unify receiver. Let me know if you need more info. Thank you. |
This task depends upon
Closed by Toolybird (Toolybird)
Saturday, 10 June 2023, 03:03 GMT
Reason for closing: Fixed
Additional comments about closing: linux 6.3.7.arch1-1
Saturday, 10 June 2023, 03:03 GMT
Reason for closing: Fixed
Additional comments about closing: linux 6.3.7.arch1-1
[1] https://wiki.archlinux.org/title/Kernel#Debugging_regressions
[2] http://vger.kernel.org/vger-lists.html#linux-input
I have reported the bug upstream :
https://bugzilla.kernel.org/show_bug.cgi?id=217412
https://github.com/systemd/systemd/issues/27557
In the given link from bugzilla.kernel.org (https://docs.kernel.org/admin-guide/bug-bisect.html) they say :
Devices not appearing
Often this is caused by udev/systemd. Check that first before blaming it on the kernel.
That's the reason why.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/hid/hid-logitech-hidpp.c?id=v6.4-rc1&id2=v6.3
I can confirm installing linux-mainline 6.4rc1-1 on ArchLinux that the issue has been resolved
[1] https://bbs.archlinux.org/viewtopic.php?pid=2099989#p2099989
But the second links are marked as linux-6.2rc6.r1261.g60b07cf5d346-1-x86_64.pkg.tar.zst and linux-headers-6.2rc6.r1261.g60b07cf5d346-1-x86_64.pkg.tar.zst
I need the headers for the first links to test and confirm.
Bisecting: 647 revisions left to test after this (roughly 9 steps)
[6861eaf79155f0a5544ff989754159f806795c31] Merge tag 'ata-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata
https://drive.google.com/file/d/1QIyEqPMX0h23zPhzmqgV00qAyoy_WNZr/view?usp=share_link linux-6.2.r6328.g6861eaf79155-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1gDkK5dpRYdazmD2IuX1G3EiZdSkjI_oF/view?usp=share_link linux-headers-6.2.r6328.g6861eaf79155-1-x86_64.pkg.tar.zst
BTW, anybody with a Logitech mouse using a USB receiver dongle, i.e. https://www.logitech.com/en-au/products/mice/unifying-receiver-usb.910-005934.html (which I would think is about every second PC user on the planet) just needs to plug the receiver out then in and you will see the mouse stays dead for about 20 secs. On a good kernel it works immediately.
Bisecting: 355 revisions left to test after this (roughly 8 steps)
[d5176cdbf64ce7d4eebf339205f17c23118e9f72] Merge tag 'pinctrl-v6.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
https://drive.google.com/file/d/11AAvUAbUjg5DH-l1RBw7GeCuDPSHQOZ7/view?usp=share_link linux-6.2.r5972.gd5176cdbf64c-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1S_z2Ub2_lbAzRs78vD2VxL462sMfume8/view?usp=share_link linux-headers-6.2.r5972.gd5176cdbf64c-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1BqTvXDZ3cSuafwFYdD847LmtKHkjcV8y/view?usp=share_link linux-6.3.2.arch1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1NXxzqnwYrr6x1RkGkWB4G_DZLpZ90FFv/view?usp=share_link linux-headers-6.3.2.arch1-1.1-x86_64.pkg.tar.zst
[1] https://bugzilla.kernel.org/show_bug.cgi?id=217412#c26
mai 17 17:42:36 Cockpit kernel: logitech-hidpp-device 0003:046D:2010.0005: HID++ 1.0 device connected.
↓
mai 17 17:42:39 Cockpit systemd-tty-ask-password-agent[430]: Password query on /dev/tty1 finished successfully.
mai 17 17:42:39 Cockpit systemd-cryptsetup[411]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/********
Which is also the case with the linux-6.2rc6.r1261.g60b07cf5d346-1-x86_64.pkg.tar.zst & linux-headers-6.2rc6.r1261.g60b07cf5d346-1-x86_64.pkg.tar.zst.
But completely flawlessly with linux-6.2.r5715.g0175ec3a28c6-1-x86_64.pkg.tar.zst & linux-headers-6.2.r5715.g0175ec3a28c6-1-x86_64.pkg.tar.zst which has the same behavior as kernel 6.2.13 (the last working one).
If someone else could confirm.
A "detail" : By non working kernels in xfce desktop > parameters > mouse/keyboard the name of the devices are not listed (example logitech K800) but the device id (0003:046D:2010.0005).
$ git bisect good
Bisecting: 174 revisions left to test after this (roughly 8 steps)
[241ed6ab74f94eb3d64ee6b950cd8091b1213225] Merge tag 'hwmon-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
https://drive.google.com/file/d/1M_LZzKsft6oxvbE6M9zPwwnn5oJ8WYnb/view?usp=share_link linux-6.2.r6153.g241ed6ab74f9-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1yuQjsIk45hwtsdU4A-woIrLieLSFcuIl/view?usp=share_link linux-headers-6.2.r6153.g241ed6ab74f9-1-x86_64.pkg.tar.zst
Edit:
Assuming the last kernel was bad
$ git bisect bad
Bisecting: 102 revisions left to test after this (roughly 7 steps)
[a738688177dcdffe8064dc5ecac6ec4431b6b951] Merge branch 'for-6.3/uclogic' into for-linus
https://drive.google.com/file/d/1d44Xlut4JfQfl0CYHJ6mGLLbk63ecoTq/view?usp=share_link linux-6.2rc7.r105.ga738688177dc-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1xHlGxQFEPhpqXG-0hxIZjKBPMIge3Mq5/view?usp=share_link linux-headers-6.2rc7.r105.ga738688177dc-1-x86_64.pkg.tar.zst
Edit2:
Assuming the last kernel was bad
$ git bisect bad
Bisecting: 39 revisions left to test after this (roughly 5 steps)
[2818ccb42a25a73465b8c9158ffccdef8e43699d] Merge branch 'for-6.3/hid-sensor' into for-linus
https://drive.google.com/file/d/1cVSMPCF7GuX4c9vCptm5_ZN9e5NTlXA2/view?usp=share_link linux-6.2rc7.r65.g2818ccb42a25-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1IVLYfk7y32FFiOkTMEgoW3UEIisDX4Au/view?usp=share_link linux-headers-6.2rc7.r65.g2818ccb42a25-1-x86_64.pkg.tar.zst
Could you also report your findings on the kernel bugzilla.
I'm going back to linux-6.2.r5715.g0175ec3a28c6-1-x86_64.pkg.tar.zst & linux-headers-6.2.r5715.g0175ec3a28c6-1-x86_64.pkg.tar.zst to confirm the "flawlessly" for tomorrow cold boot.
Let me know if you want to test your last edits (Edit & Edit2) :
linux-6.2rc7.r105.ga738688177dc-1-x86_64.pkg.tar.zst & linux-headers-6.2rc7.r105.ga738688177dc-1-x86_64.pkg.tar.zst
linux-6.2rc7.r65.g2818ccb42a25-1-x86_64.pkg.tar.zst & linux-headers-6.2rc7.r65.g2818ccb42a25-1-x86_64.pkg.tar.zst
Thanks a lot for your work done !
For me the second best after linux-6.2.r5715.g0175ec3a28c6-1-x86_64.pkg.tar.zst in which there is no doubt.
No I changed the pkgver to 1.2 so you can tell it apart. It contains https://lore.kernel.org/all/CAHk-%3DwhvhkSk6m8_AidhofgR9nq0Md%2BHbNad5r1RE69tZgbv6Q%40mail.gmail.com/
If it is behaving the same as the repo package please report on the kernel bugzilla.
Request from Jiri Kosina
>Could anyone who is able to reproduce the issue please check whether
>reverting
>
> 586e8fede7953b16 ("HID: logitech-hidpp: Retry commands when device is busy")
>
>has any observable effect?
>
>Thanks,
@sushi2503 can you report your previous findings for linux-6.3.2.arch1-1.1-x86_64.pkg.tar.zst preferable in direct response to that email, the link contains instructions on how to do that or on the kernel bugzilla report.
[1] https://patchwork.kernel.org/project/linux-input/patch/20230531082428.21763-1-hadess%40hadess.net/
[2] https://drive.google.com/file/d/1VZU37yfcHRzZra6ItjXP7zzlBUaokhCM/view?usp=share_link linux-6.3.5.arch1-1.1-x86_64.pkg.tar.zst
[3] https://drive.google.com/file/d/1SzHk4CVmi48ie89_j7boh9u_8u53UGkZ/view?usp=share_link linux-headers-6.3.5.arch1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1NXxzqnwYrr6x1RkGkWB4G_DZLpZ90FFv/view?usp=share_link linux-headers-6.3.2.arch1-1.1-x86_64.pkg.tar.zst
linux-6.3.2.arch1-1.1 working perfectly, no boot hang and no unplug/plug receiver hang.
Please confirm that the linux-6.3.2.arch1-1.1 reverted to 586e8fede7953b1695b5ccc6112eff9b052e79ac so I can confirm on kernel bugzilla.
Correct linux-6.3.2.arch1-1.1 reverted 586e8fede7953b1695b5ccc6112eff9b052e79ac.
Is the fix you already tested in linux-6.3.5.arch1-1.1-x86_64.pkg.tar.zst and reported did not fix the issue.
So, now I'm not sure if on kernel bugzilla they understand it ?
Edit : I reported (on kernel bugzilla) that this patch doesn't fix the problem but your modified linux-6.3.2.arch1-1.1 did. I hope that there will not be any confusion about.
https://bugzilla.kernel.org/show_bug.cgi?id=217523
@Mark Blakeney (bulletmark) : Would be good to confirm your observations about not working patched 6.3.5.arch1-1 on the new bug report.
Kernel [1][2] built with 6199d23c91ce53bfed455f09a8c5ed170d516824 [3] and 7c28afd5512e371773dbb2bf95a31ed5625651d9 [4] applied.
[1] https://drive.google.com/file/d/1mEy2sndZ_sdmK3c4eWgYa0qFPTuX7dQ8/view?usp=share_link linux-6.3.6.arch1-1.3-x86_64.pkg.tar.zst
[2] https://drive.google.com/file/d/1auwfA9z-h4ea4_SaPUHIo2PF1Dq4KwKM/view?usp=share_link linux-headers-6.3.6.arch1-1.3-x86_64.pkg.tar.zst
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6199d23c91ce53bfed455f09a8c5ed170d516824
[4] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7c28afd5512e371773dbb2bf95a31ed5625651d9
Thanks a lot loqs.
Edit:
6.3.7 is aiming for late Friday [3].
[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/commit/queue-6.3/hid-logitech-hidpp-handle-timeout-differently-from-b.patch?id=3af52215a70709dd1af93c33f5669ad813e52f7c
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/commit/queue-6.3/hid-hidpp-terminate-retry-loop-on-success.patch?id=af7cc83024d2812ea18978951f1a4880e467ba8d
[3] https://lore.kernel.org/stable/20230607200922.978677727%40linuxfoundation.org/