GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PS4DSHOCK(4) FreeBSD Kernel Interfaces Manual PS4DSHOCK(4)

ps4dshock
Sony PlayStation 4 Dualshock 4 gamepad driver

To compile this driver into the kernel, place the following lines in your kernel configuration file:
device ps4dshock
device hid
device hidbus
device hidmap
device evdev

Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):

ps4dshock_load="YES"

The ps4dshock driver provides support for Sony PlayStation 4 Dualshock 4 gamepad driver.

The /dev/input/event* device presents the game controller as a evdev type device.

Next parameters are available as sysctl(8) variables. Debug parameter is available as loader(8) tunable as well.
dev.p4dshock.*.led_state
LED state: 0 - off, 1 - on, 2 - blinking.
dev.p4dshock.*.led_color_r
LED color. Red component.
dev.p4dshock.*.led_color_g
LED color. Green component.
dev.p4dshock.*.led_color_b
LED color. Blue component.
dev.p4dshock.*.led_delay_on
LED blink. On delay, msecs.
dev.p4dshock.*.led_delay_off
LED blink. Off delay, msecs.
hw.hid.ps4dshock.debug
Debug output level, where 0 is debugging disabled and larger values increase debug message verbosity. Default is 0.

/dev/input/event*
input event device node.

The ps4dshock does not support force-feedback events.

The ps4dshock driver first appeared in FreeBSD 13.0.

The ps4dshock driver was written by Vladimir Kondratyev <wulf@FreeBSD.org>.
September 19, 2020 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 4 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.