Does the Sony DualShock 4 work on Linux?
Works out of the box for gamepad input with the in-kernel driver hid-playstation (since Linux 3.14).
Listed in SDL's controller mapping database with its button layout mapped, so SDL-based games can map its buttons (recognised, not tested).
Extra features (RGB / lighting) need OpenRGB.
The default kernel of all 9 tracked distro releases already includes the driver.
Which distros work?
| Distro | Kernel | Verdict |
|---|---|---|
| Arch Linux | ✅ 7.2 | ✅ All 2 features with repo packages |
| Fedora 44 | ✅ 7.2 | ✅ All 2 features with repo packages |
| Fedora 43 | ✅ 7.2 | ✅ All 2 features with repo packages |
| openSUSE Tumbleweed | ✅ 7.2 | ✅ All 2 features with repo packages |
| Ubuntu 26.04 LTS | ✅ 7.0 | ✅ All 2 features with repo packages |
| Ubuntu 24.04 LTS | ✅ 6.8 | ⚠️ 1 of 2 features from repos; rgb / lighting: install OpenRGB from upstream |
| Ubuntu 22.04 LTS | ✅ 5.15 | ⚠️ 1 of 2 features from repos; rgb / lighting: install OpenRGB from upstream |
| Debian 13 | ✅ 6.12 | ⚠️ 1 of 2 features from repos; rgb / lighting: install OpenRGB from upstream |
| Debian 12 | ✅ 6.1 | ⚠️ 1 of 2 features from repos; rgb / lighting: install OpenRGB from upstream |
Linux features
| Feature | Provided by |
|---|---|
| RGB / lighting | OpenRGB |
| Button layout mapped (SDL) | SDL GameControllerDB |
Controls mapped in SDL
Face buttons, shoulder buttons, triggers, analog sticks, stick clicks, D-pad, Start/Back, Guide button and touchpad button.
What this means on Linux
- RGB / lighting
- Lighting colours and effects can be set from Linux with the listed tool.
- Button layout mapped (SDL)
- SDL's controller database records which physical button is A, B, the sticks and so on, so SDL-based games can use the controller with a consistent layout. It is a mapping, not a test of the controller.
What to install
| Tool | Install |
|---|---|
| OpenRGB | Arch: sudo pacman -S openrgbFedora: sudo dnf install openrgbDebian: sudo apt install openrgbUbuntu: sudo apt install openrgbFlatpak: flatpak install flathub org.openrgb.OpenRGB |
| SDL GameControllerDB | Nothing to install: SDL-based games and apps ship a copy of this database. |
| Linux kernel | Built in, nothing to install. |
Is this my device?
Run lsusb and look for one of these IDs: 054c:05c4, 054c:09cc, 054c:0ba0.
Or paste your whole lsusb output into the lookup on the home page.