Hutterer: udev-hid-bpf: quickstart tooling to fix your HID devices with eBPF
Hutterer: udev-hid-bpf: quickstart tooling to fix your HID devices with eBPF
Posted Apr 22, 2024 17:10 UTC (Mon) by Heretic_Blacksheep (guest, #169992)Parent article: Hutterer: udev-hid-bpf: quickstart tooling to fix your HID devices with eBPF
Also... the problem with HID is the original 1.0 spec was finalized in 1996, while the most current release, v. 1.11, dates from 2001! That's from an era when USB was still limited to a total of 12 Mbits/s. It also specifically allows vendor extensions to the standard, which a lot of people seem to be unaware. Even if you ignore all the comically broken products over the years (there are indeed many), it's impossible to strictly adhere to a 20+ year old arthritic standard while still adding features that weren't possible 20-30 years ago without resorting to vendor extensions and external control software to manage those protocols the USB HID spec doesn't define. It's not fair to call a peripheral 'broken' when it includes features not available in a strict interpretation of the spec nor were even foreseeable in 2001. These days we have bling-y user configured LED controllers (arguably useless except for marketing, meh turn it off and go), macro record and playback via internal and external methods, visual feedback and status output displays, keyboards with their own embedded GP computer & user programmable firmware (like the Keychron V series I'm typing this on), built-in USB hubs, not to mention the separate can-of-worms that are wireless keyboards. Some of those features were barely envisioned in 2001, and the rest not at all. Linux distro development models are particularly unsuitable for pushing out device stacks in any reasonable time frame to the end users who have no wish to be device driver development guinea pigs. The eBPF solution is probably the only workaround for a notoriously slow driver trickle-down that's acceptable in the long run.
One off topic plug for OpenBSD here... at least you're usually only 6 months away from a driver update if you track the stable releases, assuming it's a device under active development. They've been particularly good at tracking AMDGPU stack updates. LTS Linux distros releases can be considerably longer waits, with inconsistent device support results. I don't use OpenBSD regularly, but I have to give them credit for an open source project, they're pretty good with device drivers... just less so with ACPI tables.
