Join Us and become a Member for a Verified Badge on Discord to access private areas with the latest PS4 FPKGs.
PS5 News       Thread starter PSXHAX       Start date Dec 29, 2020 at 4:28 AM       2,878       9      
This holiday season the ghost of Christmas past 👻 paid Sony a visit, and after revisting the PS3 Linux Class Action Lawsuit over their removal of OtherOS on PlayStation 3 it appears they've had a change of heart... and released a 'HID-PlayStation' Linux kernel driver paving the way to Official PS5 DualSense Controller Support for Linux users! 🐧 <3

This PS5 Scene news comes following the unofficial DualSense WinAPI release, with the Patchwork Linux Input mailing list patch notes submission by Roderick Colenbrander of Sony Interactive Entertainment, LLC stating the following to quote:

Hi, I am pleased to share a new Linux driver for the PlayStation 5 'DualSense' game controller. The driver supports the DualSense in both Bluetooth and USB modes. Most controller features are supported including LEDs, Touchpad, Motion Sensors and Rumble.

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.

Not yet supported are new unique features introduced by the DualSense such as Adaptive Triggers and the VCM based Haptics. These features require a large amount of data and complex data structures. It is not clear how to expose these. The current Evdev and FF frameworks are too limiting. We hope to have a dialog on how to expose these over time in a generic way.

Enjoy the new DualSense driver and let us know if you have any questions or feedback.

Thanks,

Roderick Colenbrander
Sony Interactive Entertainment, LLC

Code:
Roderick Colenbrander (13):
  HID: playstation: initial DualSense USB support.
  HID: playstation: use DualSense MAC address as unique identifier.
  HID: playstation: add DualSense battery support.
  HID: playstation: add DualSense touchpad support.
  HID: playstation: add DualSense accelerometer and gyroscope support.
  HID: playstation: track devices in list.
  HID: playstation: add DualSense Bluetooth support.
  HID: playstation: add DualSense classic rumble support.
  HID: playstation: add DualSense lightbar support
  HID: playstation: add microphone mute support for DualSense.
  HID: playstation: add DualSense player LEDs support.
  HID: playstation: DualSense set LEDs to default player id.
  HID: playstation: report DualSense hardware and firmware version.

drivers/hid/Kconfig           |   20 +
drivers/hid/Makefile          |    1 +
drivers/hid/hid-ids.h         |    1 +
drivers/hid/hid-playstation.c | 1416 +++++++++++++++++++++++++++++++++
drivers/hid/hid-quirks.c      |    4 +
5 files changed, 1442 insertions(+)
create mode 100644 drivers/hid/hid-playstation.c

--
2.26.2
According to Phoronix.com on this latest PlayStation 5 development, to quote:

"The new HID-PlayStation driver is currently under review and isn't yet queued up for mainlining but those wanting to try it out can find the 13 patches up for testing.

Separately, SDL 2.0.14 was also released this week with its initial mapping support (followed by Android mapping) for the PlayStation 5 controller buttons for that library that is widely used by cross-platform games."

Finally for those in the PS4 Scene who haven't checked it out yet, sleirsgoevy recently added PlayStation 4 version 7.02 support to his LogMeIn Hamachi PS4 PKG Virtual LAN Client unofficial port. (y)
Official PS5 DualSense Controller Driver for Linux by Sony Arrives.jpg
 

Comments

SwordOfWar

Senior Member
Contributor
Verified
Perhaps this is the way they intend to support DualSense on Android eventually.

If they want to support DualSense for game streaming, it would be beneficial to support more platforms for sure.
 

cashboxz01

Member
Contributor
I don't see why they wouldn't release a driver, as they'd only be hurting themselves by not releasing one at this point. The controller is one of their most profitable pieces of hardware, and they'd want to sell to as many people as they could, right?
 

:fire: Latest Help Topics

Top