---
name: "ps5dsense"
section: "4"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/ps5dsense"
---

# ps5dsense(4)

Sony PlayStation 5 DualSense gamepad driver

## NAME

**ps5dsense** – Sony PlayStation 5 DualSense gamepad driver

## SYNOPSIS

**device** **ps5dsense** **device** **hid** **device** **hidbus** **device** **hidmap** **device** **evdev**

In [sysctl.conf(5)](/sysctl.conf/5.md): **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)](/loader.conf/5.md): **hw.hid.ps5dsense.debug** **ps5dsense\_load**

## DESCRIPTION

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)](/devmatch/8.md). To load the driver manually at boot time, set the *ps5dsense\_load* variable to *YES* at the [loader(8)](/loader/8.md) prompt, or add it to [loader.conf(5)](/loader.conf/5.md).

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)](/devfs.rules/5.md) 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.

## HARDWARE

The **ps5dsense** driver supports the following devices:

- Sony DualSense wireless controller (USB product ID 0x0ce6)

## SYSCTL VARIABLES

The following variables are available as [sysctl(8)](/sysctl/8.md) variables:

- *dev.ps5dsense.%d.led\_state*

  Lightbar state, where 0 is off and 1 is on.

- *dev.ps5dsense.%d.led\_color\_r*

  Lightbar color, red component.

- *dev.ps5dsense.%d.led\_color\_g*

  Lightbar color, green component.

- *dev.ps5dsense.%d.led\_color\_b*

  Lightbar color, blue component.

- *dev.ps5dsense.%d.player\_leds*

  Player indicator LEDs, where -1 is off and 0 to 4 select the player number.

The following variable is available as both [sysctl(8)](/sysctl/8.md) variable and [loader(8)](/loader/8.md) tunable:

- *hw.hid.ps5dsense.debug*

  Debug output level, where 0 is debugging disabled and larger values increase debug message verbosity. Default is 0.

## FILES

- */dev/input/event\**

  input event device (**evdev**) node

## SEE ALSO

[hgame(4)](/hgame/4.md), [ps4dshock(4)](/ps4dshock/4.md), [usbhid(4)](/usbhid/4.md), [devfs.rules(5)](/devfs.rules/5.md)

## HISTORY

The **ps5dsense** driver first appeared in FreeBSD 16.0.

## AUTHORS

The **ps5dsense** driver was written by Christos Longros ⟨*chris.longros@gmail.com*⟩.

## BUGS

The **ps5dsense** driver does not support force-feedback events, haptic feedback or the adaptive triggers.

The touchpad and the motion sensors are not decoded. The touchpad click is therefore not reported at all.

Bluetooth operation is not supported.
