News: 0001476302

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

More HID BPF Functionality & New Drivers For Linux 6.11

([Hardware] 3 Hours Ago HID BPF)


Upstreamed to the mainline Linux kernel last year was [1]HID BPF as a means of [2]more easily shipping new drivers and in particular quirks/workarounds for different HID devices. This allows for some [3]nice continued innovations around (e)BPF within the Linux kernel. With Linux 6.11 there is yet more HID BPF capabilities to be upstreamed as well as new drivers.

Within [4]hid.git's for-next branch is a lot of new HID BPF code queued ahead of Linux 6.11. There are new HID BPF helpers and hooks, documentation improvements, and other changes to that core HID BPF code in making the (e)BPF route more capable for HID driver use-cases.

What it means for new HID BPF driver usage in Linux 6.11 is [5]a Huion Inspiroy 2S (H641P) driver :

"This is a a driver for the Huion Inspiroy 2S in both modes (firmware mode and tablet mode). This device has 6 buttons and a wheel, all of which send key combinations (see the comments for the defaults). Luckily the device is quite limited in that it only supports one button down at a time, so with this BPF we can simply remap the 8 possible report IDs to our own custom-built report descriptor.

If the device is in tablet mode (e.g. using huion-switcher it sends everything through the vendor report instead). This BPF program converts both, depending which devices you attach to you get both. Or if you attach to all hid devices you get a duplicate device but it'll work either way.

This BPF should be mostly compatible for the M and L as well though they have more buttons so the rdescs will need some minor rework."

There's also a new BPF program for [6]supporting the XP-PEN Deco Mini 4 .

A BPF program for the [7]Huion Dial 2 .

Lastly of the HID BPF code at the moment is a BPF program for the [8]Thrustmaster TCA Yoke Boeing joystick .

Great seeing all the work on HID BPF beginning to pan out for the Linux kernel.



[1] https://www.phoronix.com/news/Linux-6.3-HID

[2] https://www.phoronix.com/news/HID-eBPF-New-Attempt

[3] https://www.phoronix.com/news/Linux-eBPF-For-HID

[4] https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/log/?h=for-next

[5] https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-next&id=09c555faedb855b07d62503e0a4cd8cdf726da20

[6] https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-next&id=f03741540dbab48f8a65da44aaadbe04216d9a42

[7] https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-next&id=9b52d81115db681efc1f83ded1d572e5b0b4fd49

[8] https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-next&id=f58e7f404da44c94e46bfe657b8707195aebd25a



phoronix

Brief History Of Linux (#18)
The rise and rise of the Microsoft Empire

The DOS and Windows releases kept coming, and much to everyone's surprise,
Microsoft became more and more successful. This brought much frustration
to computer experts who kept predicting the demise of Microsoft and the
rise of Macintosh, Unix, and OS/2.

Nobody ever got fired for choosing Microsoft, which was the prime reason
that DOS and Windows prevailed. Oh, and DOS had better games as well,
which we all know is the most important feature an OS can have.

In 1986 Microsoft's continued success prompted the company to undergo a
wildly successful IPO. Afterwards, Microsoft and Chairman Bill had
accumulated enough money to acquire small countries without missing a
step, but all that money couldn't buy quality software. Gates could,
however, buy enough marketing and hype to keep MS-DOS (Maybe Some Day an
Operating System) and Windows (Will Install Needless Data On While System)
as the dominant platforms, so quality didn't matter. This fact was
demonstrated in Microsoft's short-lived slogan from 1988, "At Microsoft,
quality is job 1.1".