A few weeks ago, Roderick Colenbrander from Sony Interactive Entertainment sent a series of thirteen patches that introduces a new official Linux kernel driver to support the Sony PlayStation 5 DualSense Game Controller.
As the introduction patch says, the latest proposed
hid-playstation driver aims to enable DualSense gamepad support operating in both Bluetooth and USB modes.
Additionally, this Linux driver also supports the controller’s other key features such as LEDs, microphone mute, touchpad, motion sensors, lightbar, battery status information, and rumble.
However, currently, it does not support new unique features of DualSense such as Adaptive Triggers and the VCM-based Haptics, which requires a large amount of data and complex data structures.
If you know, Sony already maintains the mainline Linux kernel’s
hid-sony input driver.
But with new and separate
hid-playstation driver for PS5 game controller, Sony has also planned to move some of the Sony Interactive Entertainment hardware support from the existing hid-sony to hid-playstation drivers while still continuing to maintain hid-sony.
Like DualShock 4 in hid-sony, the new driver also exposes DualSense functionality as a ‘compositive device’ extending to multiple frameworks.
For instance, three Evdev nodes for gamepad, touchpad, motion sensors, FF framework for basic rumble features, and a new leds-class-multicolor for the lightbars next to the touchpad.
Though the new HID-PlayStation driver is currently available for testing, it has not been pushed for mainline Linux kernel as it’s under review.
But it will be exciting to use Sony’s DualSense controller on Linux platform with an official out of the box support.
Via — Phoronix