Skip to content

Linux tool for controlling PS5 DualSense controller

License

Notifications You must be signed in to change notification settings

classicvalues/dualsensectl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DualSense Control

Linux tool for controlling Sony PlayStation 5 DualSense controller.

Usage: dualsensectl command [ARGS]

Commands:
  power-off                                Turn off the controller (BT only)
  battery                                  Get the controller battery level
  lightbar STATE                           Enable (on) or disable (off) lightbar
  lightbar RED GREEN BLUE [BRIGHTNESS]     Set lightbar color and brightness (0-255)
  player-leds NUMBER                       Set player LEDs (1-5) or disabled (0)
  microphone STATE                         Enable (on) or disable (off) microphone
  microphone-led STATE                     Enable (on) or disable (off) microphone LED

Dependencies

  • libhidapi-hidraw
  • libdbus-1

Building

make && make install

udev rules

Also installed by Steam, so you may already have it configured. If not, create /etc/udev/rules.d/70-dualsensectl.rules:

# PS5 DualSense controller over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ce6", MODE="0660", TAG+="uaccess"

# PS5 DualSense controller over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:0CE6*", MODE="0660", TAG+="uaccess"

About

Linux tool for controlling PS5 DualSense controller

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 96.1%
  • Makefile 3.9%