/dev/input/event*
input event device (evdev) node
Sony playstation 5 dualsense gamepad driver
device ps5dsense device hid device hidbus device hidmap device evdev
In sysctl.conf(5): dev.ps5dsense.%d.led_state dev.ps5dsense.%d.led_color_r dev.ps5dsense.%d.led_color_g dev.ps5dsense.%d.led_color_b dev.ps5dsense.%d.player_leds
In loader.conf(5): hw.hid.ps5dsense.debug ps5dsense_load
The ps5dsense driver supports the Sony PlayStation 5 DualSense gamepad connected over USB, and presents it to applications over the evdev interface.
If the appropriate hardware is detected, the driver will be loaded automatically by devmatch(8). To load the driver manually at boot time, set the ps5dsense_load variable to YES at the loader(8) prompt, or add it to loader.conf(5).
To give user applications access to the game controller, allow user access to the /dev/input/event* nodes with inclusion of user in the games group, or with a devfs.rules(5) ruleset.
The microphone mute button is reported as KEY_MICMUTE; unlike the vendor driver on other systems, ps5dsense does not mute the built-in microphone itself.
The ps5dsense driver supports the following devices:
Sony DualSense wireless controller (USB product ID 0x0ce6)
The following variables are available as sysctl(8) variables:
Lightbar state, where 0 is off and 1 is on.
Lightbar color, red component.
Lightbar color, green component.
Lightbar color, blue component.
Player indicator LEDs, where -1 is off and 0 to 4 select the player number.
The following variable is available as both sysctl(8) variable and loader(8) tunable:
Debug output level, where 0 is debugging disabled and larger values increase debug message verbosity. Default is 0.
/dev/input/event*
input event device (evdev) node