# chrippa/ds4drv

A Sony DualShock 4 userspace driver for Linux

Repository: https://github.com/chrippa/ds4drv
Canonical: https://ross.abutalabs.com/products/ds4drv
Language: Python
License: MIT
License Family: permissive
Last push: 2026-03-23T18:25:58+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 35, longevity 100
- inputs: {"age_days": 4631, "days_push": 163, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1168, forks 241 (observed 2026-08-28T04:03:50.805206+00:00)

## What it is
A userspace driver for the Sony DualShock 4 controller on Linux, written in Python. It supports Bluetooth and USB connections, Xbox 360 controller emulation, LED control, trackpad-as-mouse, and custom button mappings.

## Use cases
- use a DualShock 4 controller on Linux
- emulate an Xbox 360 controller for Steam games
- use the DS4 trackpad as a mouse
- remap DS4 buttons to keyboard or mouse actions
- get low battery warnings from the controller LED
- connect a DS4 over Bluetooth or USB

## When to choose
- you want to use a DualShock 4 with Linux games or Steam
- you need custom controller-to-keyboard/mouse mappings
- your BlueZ version can't pair with the DS4 natively

## When to avoid
- you're on Windows, macOS, or another non-Linux OS
- you need a kernel-level driver or non-DS4 controller support
- you need actively developed features beyond basic DS4 support

## Facets
- artifact type: library
- maturity: maintenance
- function: gui
- domain: hardware, operating-systems, gaming-tools
- platform: python, cli
- tags: dualshock-4, gamepad, bluetooth, userspace-driver, controller, driver, input, linux

## Member repositories
- chrippa/ds4drv (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:50.805206+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:28:46.111715+00:00, confidence not recorded.
  - readme: https://github.com/chrippa/ds4drv (fetched 2026-08-28T04:03:50.805206+00:00, sha cb9bb461f87d)
  - registry_pypi: https://pypi.org/pypi/ds4drv/json (fetched 2026-08-29T12:34:50.479526+00:00, sha d3d53dffda73)
- Data as of 2026-08-30T08:39:29.467469+00:00.
