Test a game controller with jstest
jstest displays every axis and button of a gamepad in real time so you can confirm the kernel sees it and it works.
01Command
$ jstest /dev/input/js002What it does
Linux exposes gamepads as /dev/input/js0, js1, etc. through the joydev module. jstest prints a live line of axis values (range roughly -32767..32767) and button states (on/off), which reveals dead zones, stuck buttons or drift. If the controller works here but not in a game, the problem is the game's mapping, not the hardware.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Linux joystick driver documentationEvidence: describes /dev/input/jsX devices created by joydev
- jstest(1) — joystick test programEvidence: jstest prints live axis and button states for a js device
Last verified: 2026-09-18 · Category: System & Settings
06Related solutions
Launch an interactive process viewer with color meters for CPU cores, memory, and swap, plus search, sort, and kill controls.
Show total, used, and available space plus usage percentage for every mounted filesystem in human-readable units.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.