Monday, December 28, 2020

Sony to officially support the PS5 DualSense on Linux with a new driver


Roderick Colenbrander of Sony Interactive Entertainment has sent in a brand new and official Linux driver for the PS5 DualSense for even better out of the box support.

With the newly proposed driver, it enabled the DualSense to function in both Bluetooth and USD modes along with most other features working including LEDs, Touchpad, Motion Sensors and Rumble. However, they make it clear that the Adaptive Triggers and VCM-based Haptics are not yet supported but they hope to "have a dialog on how to expose these over time in a generic way".

Here's how the describe it will work:

DualSense supported is implemented in a new 'hid-playstation' driver, which will be used for peripherals by 'Sony Interactive Entertainment' (PlayStation). Hid-sony will be used for devices for the larger Sony Group. We intend to migrate existing devices over time gradually to hid-playstation. We do not want to cause any regressions and maintain quality. As such moving forward, unit tests are important and we started by providing these through 'hid-tools' including DualSense.

The Linux driver exposes DualSense functionality as a 'compositive device' similar to DualShock 4 in hid-sony, spanning multiple frameworks. First, it exposes 3 evdev nodes for respectively the 'gamepad', 'touchpad' and 'motion sensors'. The FF framework is used to provide basic rumble features. The leds-class is used to implement the Player indicator LEDs below the DualSense's touchpad, while the new 'leds-class-multicolor' is used for the lightbars next to the touchpad.

This will be really nice to make it into the Linux Kernel, as the more we have working out of the box the better. While Steam and SDL2 can already work with it, not everything goes through them of course and it would open up the DualSense to all sorts of other possibilities.

I'll eventually be grabbing myself a DualSense, so I'm keen to see how it feels.

Hat tip to MrPenguin.

Article from GamingOnLinux.com - do not reproduce this article without permission. This RSS feed is intended for readers, not scrapers.


Read More

No comments:

Post a Comment