Home › Game controllers › Sony

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.

Built from public driver and tool lists, not hands-on tests.

Which distros work?

DistroKernelVerdict
Arch Linux
CachyOS, EndeavourOS
✅ 7.2✅ All 2 features with repo packages
Fedora 44
Bazzite, Nobara
✅ 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
Kubuntu, Xubuntu, Ubuntu flavours
✅ 7.0✅ All 2 features with repo packages
Ubuntu 24.04 LTS
Linux Mint 22, elementary OS 8
✅ 6.8⚠️ 1 of 2 features from repos; rgb / lighting: install OpenRGB from upstream
Ubuntu 22.04 LTS
Linux Mint 21
✅ 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

Kernel versions are each release's default (and optional newer) kernel as of 2026-10-26. Distros sometimes backport drivers, so an older kernel can still work. Basic input and audio work through generic drivers regardless; this table is about the extra features.

Linux features

FeatureProvided by
RGB / lightingOpenRGB
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.

From SDL GameControllerDB, matched by vendor:product ID. The database maps buttons and axes to a standard layout; it records that the controller is recognised, not that every feature was tested.

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

ToolInstall
OpenRGBArch: sudo pacman -S openrgb
Fedora: sudo dnf install openrgb
Debian: sudo apt install openrgb
Ubuntu: sudo apt install openrgb
Flatpak: flatpak install flathub org.openrgb.OpenRGB
SDL GameControllerDBNothing to install: SDL-based games and apps ship a copy of this database.
Linux kernelBuilt 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.

Kernel driver: hid-playstation — Linux 3.14+

"Supported" means the device appears in that project's device list. We don't test hardware ourselves; see how this works. Something wrong here? Report it.

More game controllers

Sony DualSense
2 Linux features
Sony DualSense Edge
2 Linux features
Logitech G920 Driving Force Racing Wheel
2 Linux features