Created attachment 305872 [details] BPF program to fix the quirk My Mistel MD770 (04d9:0339 Holtek Semiconductor, Inc. USB-HID Keyboard) seems to have a descriptor quirk that prevents NKRO from working. A device descriptor, a hid capture of NKRO sequence and proposed BPF program for fix is attached. It's the exact same error as the Topre quirk [1], but the descriptor and offset is different. NKRO works on Windows without extra vendor drivers. I'm not sure if Microsoft just has a better quirk database, or they have some clever heuristics to detect this. Before copy pasting the Topre code and calling it a patch, I would like to ask about what's the best way to fix this. [1]: https://gitlab.freedesktop.org/libinput/libinput/-/issues/804
Created attachment 305873 [details] lsusb description of the device
Created attachment 305874 [details] hid-record of the NKRO sequence and report descriptor