Check out my first novel, midnight's simulacra!

Dualshock controller

From dankwiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The Sony Dualshock Wireless 4 controller works well with Linux. Support was added in 3.15, though newest revisions of the DualShock 4 require Linux 4.10.

Battery

When connected via USB, the controller's battery will show up under /sys/class/power_supply.

Input

Though primarily used as a joystick, the DualShock can also be employed as a mouse via the X eudev driver.

Further Reading