This has been supported for a longer time for DRM, and regular Linux event subsystem devices. But there are various input devices that applications typically use a differen interface for: the more low-level hidraw interface, that allows access to raw USB or Bluetooth Human Interface Device (HID) reports. This is used for more complex input devices (game pads) and sometimes to configure fancy keyboards and stuff.
With systemd v257 switching access to hidraw devices is now supported too.
https://mastodon.social/@pid_eins/113514288137037728
This requires a really new kernel (6.12) but works mostly the same as the regular evdev access: an application asks logind for access to a hidraw device, for which it then will receive an open […]
────
────