-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2019..2023 Collecting further mice with disconnect issues #22
Comments
Suspects still open from #15: Acer Lite-On |
Jinke Fan fixed the HP MSU1465 PixArt mouse: |
There is another PixArt USB device ID with |
There is a rare Dynex PixArt mouse ( |
Third Lenovo PixArt mouse ( |
My mouse disconnected almost exactly every 60 seconds. USB ID 046d:c077 Strings simply say "Logitech, Inc. M105 Optical Mouse'. |
@hktry Thanks. This ID is very common. It is implemented upstream since v4.0. Which kernel/distro are you running that the quirk is missing? TIA |
@sriemer 3.10.0-693.11.1.el7.x86_64 |
Okay, so it is the Red Hat kernel. If it is RHEL7, then enterprise support could be contacted. For CentOS7 there is likely not enough priority to backport the kernel patch. |
@sriemer Thanks. We will upgrade the linux kernel later to fix this problem |
Hello I came across this repository through a post and comment on Reddit about fixing a similar issue for a keyboard (Anne Pro 2). I'm not sure whether you consider supplying fixes for keyboards as well, but here goes: The device is recognized as Specifying Thanks! Dietrich |
Hi @dietrichm, thanks for reporting. usbhid device is usbhid device. I‘ll prepare the upstream kernel patch and the backports later on. Then I can send it to the Ubuntu kernel team. |
Vendor ID |
@dietrichm I've sent the Linux kernel patch |
Thanks! |
My Lenovo ThinkPad USB Travel Mouse (wired, optical) which I bought around two years ago also exhibits this behavior on multiple systems when not using a usbhid quirk at boot. All my systems run Debian Sid (unstable); I am currently using kernel Relevant lines of
--snip--
I don't really need anything, but I thought I'd pitch in since you're collecting info and I have one such mouse. Thanks for the boot argument advice. |
Thanks for the report, @wyatt8740. Patch Couldn't send this to stable as commits 8d5037dca7c2089f27e5903c2aecfc5bb10d7806 and 819d578d51d0ce73f06e35d69395ef55cd683a74 would have to be applied to stable kernels as well or this would require a whole bunch of backports. |
@dietrichm There is a second hardware revision of the Obins Anne Pro 2 keyboard (C15, 0x04d9:0xa292) which is getting the fix as well now: https://www.spinics.net/lists/linux-input/msg75883.html. |
Hey Great! Not sure about all the hardware revisions. Might as well be a revision that's been in production for a while already. I never thought of submitting a bug to them either. Still I think it's valuable to have a kernel fix as I suspect not everybody will actually perform firmware updates on a keyboard. Dietrich |
Greetings! I am inspecting this fix as I have an Anne Pro 2 keyboard. At the moment I am running Linux 5.16 kernel on Ubuntu 22.04, and the problem still persists. Is it expected that the patch is included in that version? Does it make sense to try the kernel boot option fix? |
Nevermind, I have just seen @dietrichm comment on the second revision of firmware. I have that earlier firmware, which got the fix later. I probably do not have it yet in my kernel build. |
@sriemer I have built the 5.18 version of the kernel to fix this issue with Anne Pro 2 keyboard. We shall see how it goes. However, I have noticed that whenever I reboot, the keyboard works at the point of selecting the kernel version in UEFI, but then stops working at the Ubuntu 22.04 login screen. I had to reset it via unplugging the cable to get it working. Do you have any ideas for this issue? P.S. In case it matters, I believe I have the C15 version of Anne Pro 2, the device code is A292 instead of A293. |
@artforlife AFAIK the fix for C15 never made it to the upstream kernel as the author refused to comply to the Linux kernel contribution rules (provide full real author name). |
I have the following in my Grub file One other thing I have implemented is the following changes to the kernel that I am running. That was my attempt to fix this issue in lieu of an official patch. I am currently running this kernel index d9eb676abe96..ed427ca36c81 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -656,6 +656,7 @@
#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A0C2 0xa0c2
#define USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A096 0xa096
#define USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A293 0xa293
+#define USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A292 0xa292
#define USB_VENDOR_ID_IMATION 0x0718
#define USB_DEVICE_ID_DISC_STAKKA 0xd000
diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c
index dc67717d2dab..e89b734c643e 100644
--- a/drivers/hid/hid-quirks.c
+++ b/drivers/hid/hid-quirks.c
@@ -95,6 +95,7 @@ static const struct hid_device_id hid_quirks[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_HAPP, USB_DEVICE_ID_UGCI_FLYING), HID_QUIRK_BADPAD | HID_QUIRK_MULTI_INPUT },
{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A096), HID_QUIRK_NO_INIT_REPORTS },
{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A293), HID_QUIRK_ALWAYS_POLL },
+ { HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A292), HID_QUIRK_ALWAYS_POLL },
{ HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0A4A), HID_QUIRK_ALWAYS_POLL },
{ HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0B4A), HID_QUIRK_ALWAYS_POLL },
{ HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE), HID_QUIRK_ALWAYS_POLL },
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 67cd420dcf89..0c7ce7853f3d 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -220,7 +220,7 @@ fi |
@artforlife sounds good. Consider checking for latest keyboard firmware (ObinsKit I suppose) and filing a support case at https://getannepro.com/. Your second issue sounds like |
I'm observing this problem on Debian 11 (kernel 5.10.0-20-amd64) with The label on the mouse calls it a Cherry M5400 |
Thank you very much for reporting @laf0rge. 👍 As you are a famous kernel developer yourself, I hope that you haven't sent the kernel patch yourself yet. I'll create and send the kernel patch from your report. 😃 |
@laf0rge Ankit Patel (NVIDIA) already fixed that mouse in November 2022 upstream. Patch link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f6d910a89a2391e5ce1f275d205023880a33d3f8 If Debian hasn't backported it yet, then a Debian bug can be opened for this if needed. |
@N0th1ngM4tt3rs Thanks for reporting. I'll check the latest kernel source and submit an upstream patch if needed. 😃 |
@N0th1ngM4tt3rs Patch sent to the HID maintainers and the linux-input mailing list. |
@N0th1ngM4tt3rs Patch https://www.spinics.net/lists/linux-input/msg88778.html has been applied upstream. Thanks again for reporting. 😃 |
Closing. Thanks for all the great input here. 😃 🐧 👍 🤝 🙌 🙏 Follow-up: #28 |
I've fixed several mice at upstream Linux kernel with
HID_QUIRK_ALWAYS_POLL
(0x00000400
) already.So please let me know if your mouse disconnects every x seconds or every minute when no user-space driver is running and nothing polls the mouse this way (usually on a virtual terminal [VT] without
gpm
running).Please test if the kernel boot option
fixes the issue while
aaaa
is the USB vendor ID andbbbb
is the USB product ID in hex fromlsusb
orlsusb -vvv
output.If this fixes your issue, please let me know the USB IDs, your mouse model, which distro you use and if you need it for kernel < 4.16.
Thanks in advance!
The text was updated successfully, but these errors were encountered: