قالب وردپرس درنا توس
Home / Technology / Sony releases official Linux driver for PlayStation 5 DualSense controller

Sony releases official Linux driver for PlayStation 5 DualSense controller



Hardware-

Well, this is a pleasant Christmas surprise…Sony has released a new “hid-playstation” Linux kernel driver for booting the PlayStation 5 DualSense controller and will also be used to support other PlayStation hardware on Linux .

This new Linux kernel driver supports the PlayStation 5 “DualSense” game controller in both USB and Bluetooth modes. This official Sony Linux driver supports all key functions as well as LED, motion sensor, touchpad, battery, light bar and rumble.

The Linux kernel already has the existing “hid-sony”

; driver, and this PlayStation 5 game controller comes with the hid-playstation driver. When announcing the new driver, they planned to transfer some of the Sony Interactive Entertainment hardware support from the existing hid-sony to the hid-playstation driver. The hid-sony driver will continue to be maintained and used by a wider range of Sony devices. This new driver started when Sony “officially” maintained the hid-sony Linux input driver about a year ago.

The Linux driver exposes the DualSense function as an “integrated device”, similar to the DualShock 4 in hid-sony, which spans multiple frameworks. First, it discloses 3 evdev nodes for “gamepad”, “touchpad” and “motion sensor” respectively. The FF frame is used to provide the basic rumble function. The leds-class is used to implement the player indicator LED under the DualSense touchpad, and the new “leds-class-multicolor” is used for the light bar next to the touchpad.

The new unique features introduced by DualSense are not yet supported, such as adaptive triggering and VCM-based haptics. These functions require large amounts of data and complex data structures. It is not yet clear how to disclose this content. The current Evdev and FF frameworks are too limited. We want to have a conversation about how to make this public in a common way over time.

The new driver provides more than 1,400 lines of code in an initial form suitable for the PS5 controller. When transitioning support for older hardware to this new driver, unit testing is also expected.

The new HID-PlayStation driver is currently under review and has not been queued for the mainline test, but those who want to try it out can find 13 patches for testing.

In addition, this week also released SDL 2.0.14, its initial mapping supports the PlayStation 5 controller buttons of the library, which has been widely used by cross-platform games.


Source link