Razer HID Driver Coming To Linux 5.18 For Dealing With Non Spec Compliant Hardware
Initially this hid-razer driver is focused on Razer BlackWidow keyboards. The BlackWidow keyboards aren't entirely compliant with the HID specification and their macro (M1 to M5) keys aren't properly handled. This new driver will ensure the macro keys are mapped to XF86tools and XF86Launch5.
There have been scripts and other already-used approaches for dealing with the BlackWidow macro keys on Linux while this is a proper kernel driver. This is being introduced as hid-razer and carries a Kconfig description of "Support for Razer devices that are not fully compliant with the HID standard" so moving forward other quirks/workarounds for other non-compliant devices will presumably be added.
The HID-razer driver was picked up into HID's "for-next" branch this week making it a new driver ready for introduction in Linux 5.18.
While Razer isn't currently providing any official support for their popular peripherals on Linux, thanks to the OpenRazer community project and related efforts like Polychromatic do allow for supporting and configuring many Razer devices on Linux.