Skip to main content

Input and Audio Troubleshooting

Steam Headless provides container-isolated virtual input and audio subsystems. Virtual gamepads, keyboards, and mice are created dynamically inside the container using shinputd (the Steam Headless virtual input daemon), while PipeWire and WirePlumber manage a dedicated virtual audio sink for game sound and streaming capture.

This guide details how to resolve missing controllers, pointer desynchronisation, captured keyboard shortcuts, and audio silence.


Symptoms on this page​

What are you seeing?Jump to Section
Virtual gamepad not appearing or not detected in SteamCase 1.1: Virtual gamepad not recognised by Steam
Gamepad buttons, triggers, or thumbsticks produce inverted or incorrect actionsCase 1.2: Controller mappings inverted or incorrect in Steam
Mouse cursor lags, clicks misalign, or 3D camera spins uncontrollablyCase 2.1: Mouse cursor desynchronisation or sticking
Client OS intercepts system shortcuts like Alt+Tab, Super key, or Ctrl+WCase 2.2: Keyboard shortcuts intercepted by host OS
Desktop video streams normally, but no audio is heard in the browserCase 3.1: No sound in browser stream
Game audio crackles, stutters during heavy gameplay, or falls behind videoCase 3.2: Audio crackling, choppy sound, or high latency

1. Virtual gamepads and shinputd​

Steam Headless isolates input by creating virtual controllers inside the container using /dev/uinput and /dev/uhid. The shinputd daemon detects these virtual devices using kernel pidfd interfaces and registers them with KWin and Steam without exposing host input devices.

Case 1.1: Virtual gamepad not recognised by Steam​

When a gamepad is connected to your client device, the web overlay or Moonlight indicates the controller is connected, but Steam Big Picture reports that no controllers are detected.

What you see​

  • The browser or Moonlight confirms a gamepad is detected locally.
  • Steam Big Picture or in-game controller settings display No controllers detected.
  • No inputs respond in games running inside the container.
How to confirm this issue
  1. Inspect the status of the shinputd service inside the container:
    docker exec -it steam-headless-a systemctl status steam-headless-shinputd.service
  2. Run the shinputd validation check:
    docker exec -it steam-headless-a /usr/local/bin/shinputd -check -seat steam-headless-a
  3. Check whether dynamic event nodes exist in /dev/input:
    docker exec -it steam-headless-a ls -l /dev/input/
    If no event* or js* nodes are listed, shinputd has not created the virtual input nodes.
Step-by-step resolution

If shinputd logs report that pidfd_getfd failed or mknod was denied, the container is missing required capabilities or cgroup rules. This is a container configuration issue, not a hardware fault.

Common error causes:

CauseError in logsFix in docker-compose.yml
Missing capability CAP_SYS_PTRACEshinputd: pidfd_getfd failed: Operation not permittedAdd SYS_PTRACE under cap_add:. pidfd_getfd(2) requires ptrace rights.
Missing device cgroup rulemknod: /dev/input/eventX: Operation not permittedAdd device_cgroup_rules: ["c 13:* rwm"]. Event minors sit under major 13.
Missing virtual input mountshinputd: failed to read virtual input treeAdd - /sys/devices/virtual/input:/sys/devices/virtual/input:ro under volumes:.
Missing host device nodescannot open /dev/uinput: No such file or directoryVerify /dev/uinput and /dev/uhid exist on host (ls -l /dev/uinput /dev/uhid).

Ensure your docker-compose.yml includes all required input capabilities and mounts:

docker-compose.yml
services:
desktop-a:
# ...
cap_add:
- DAC_READ_SEARCH
- NET_ADMIN
- SYS_ADMIN
- SYS_NICE
- SYS_PTRACE
device_cgroup_rules:
- 'c 13:* rwm'
devices:
- /dev/fuse:/dev/fuse
- /dev/uinput:/dev/uinput
- /dev/uhid:/dev/uhid
tmpfs:
- /dev/input:rw,dev,mode=0755
volumes:
- /sys/devices/virtual/input:/sys/devices/virtual/input:ro
Do Not Expose Host Input Devices

Do not work around a pidfd_getfd error by mounting the host's /dev/input or /run/udev, sharing the host PID namespace, or enabling privileged mode. These workarounds bypass seat isolation and can leak inputs between multiple containers. Fix the capabilities and cgroup configuration shown above instead.

Case 1.2: Controller mappings inverted or incorrect in Steam​

Your gamepad is detected by Steam, but analog sticks, triggers, or face buttons produce incorrect actions in games.

What you see​

  • Moving the left thumbstick triggers camera controls or button actions instead of character movement.
  • Button presses in Steam or games register as incorrect inputs.
Step-by-step resolution
  1. Open the Steam desktop client or launch Steam Big Picture mode.
  2. Go to Settings → Controller.
  3. Confirm that Enable Steam Input for generic controllers and Enable Steam Input for Xbox controllers are enabled.
  4. Click Test Device Inputs to verify that buttons, triggers, and thumbsticks respond accurately.
  5. If button bindings remain reversed, select Calibration & Advanced Settings to calibrate deadzones or remap specific axes.

2. Pointer, keyboard, and complete input capture​

In-browser streaming handles mouse and keyboard inputs through standard web APIs. Depending on whether you are navigating the desktop or playing a 3D game, different pointer modes and keyboard capture configurations are required.

Case 2.1: Mouse cursor desynchronisation or sticking​

During desktop use, the cursor lags or misaligns with clicks. In 3D first-person games, moving the mouse causes the camera to spin uncontrollably or hit an invisible boundary.

What you see​

  • In desktop applications, your mouse pointer lags behind physical movement or clicks register in the wrong position.
  • In 3D games or FPS titles, the camera spins wildly or stops moving when reaching the edge of the browser viewport.
How to confirm this issue

Check which pointer mode is active in the web interface:

  • Absolute mode: Sends absolute coordinate positions (X, Y). This is ideal for desktop navigation, strategy games, and web browsing.
  • Relative mode (Pointer Lock): Locks the mouse cursor inside the browser viewport and sends raw movement deltas (dX, dY). This is mandatory for first-person games and 3D camera navigation.
Step-by-step resolution
  1. Click directly on the video stream canvas to engage the browser Pointer Lock API.
  2. Open the Session Controls drawer in the web interface (Ctrl+Alt+Shift+M) and verify the pointer mode:
    • Select Relative for 3D and first-person games.
    • Select Absolute for standard desktop navigation and strategy games.
  3. Press Esc at any time to release Pointer Lock and return control to your local operating system.

Case 2.2: Keyboard shortcuts intercepted by host OS​

Pressing standard operating system shortcuts triggers actions on your local computer rather than inside the remote desktop container.

What you see​

  • Pressing Alt+Tab opens your local computer's application switcher.
  • Pressing the Super (Windows) key opens your local Start menu or desktop launcher.
  • Pressing Ctrl+W closes your local browser tab instead of an application inside the container.
Step-by-step resolution
  1. Open the Session Controls drawer in the web interface (Ctrl+Alt+Shift+M).
  2. Toggle Complete Input Capture to ON.
  3. Press F11 to switch your browser to true fullscreen mode.

When Complete Input Capture and fullscreen mode are active together, Chromium-based browsers engage the Keyboard Lock API (navigator.keyboard.lock()), routing system shortcuts directly to the remote container session.


3. Audio troubleshooting (PipeWire & WirePlumber)​

Steam Headless runs an isolated user-space audio server using PipeWire and WirePlumber. A virtual dummy sink (SteamHeadlessDummySink) is created at boot, routing game audio to the browser and Sunshine streams.

Case 3.1: No sound in browser stream​

The desktop video displays normally, but no game or application audio is audible through your browser.

What you see​

  • Video streams smoothly in the browser, but games and media remain silent.
  • Audio plays in native Moonlight sessions, but not in browser streaming.
How to confirm this issue
  1. Check browser autoplay policy: Modern browsers automatically block audio playback until the user interacts with the page. Click anywhere on the stream canvas to unlock audio.
  2. Inspect PipeWire status inside the container:
    docker exec -it steam-headless-a systemctl --user status pipewire
    docker exec -it steam-headless-a wpctl status
  3. Check default audio sink volume and mute state:
    docker exec -it steam-headless-a wpctl get-volume @DEFAULT_AUDIO_SINK@
    If the output shows [MUTED] or Volume: 0.00, the virtual sink is silenced.
Step-by-step resolution
  1. Click on the video stream canvas to ensure the browser autoplay policy is satisfied.
  2. If the virtual sink is muted or set to zero volume inside the container, unmute it and set the volume to 100%:
    docker exec -it steam-headless-a wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
    docker exec -it steam-headless-a wpctl set-volume @DEFAULT_AUDIO_SINK@ 1.0
  3. In the Session Controls drawer, check that the audio toggle is not muted.

Case 3.2: Audio crackling, choppy sound, or high latency​

Game audio stutters, crackles during intense gameplay scenes, or falls several seconds behind the video stream.

What you see​

  • Audio stutters or drops out during high CPU or GPU loads.
  • Sound output is robotic, distorted, or heavily desynchronised from on-screen actions.
How to confirm this issue

Run pw-top inside the container to inspect real-time audio scheduling:

docker exec -it steam-headless-a pw-top

Look for increasing values in the ERR (errors) column next to SteamHeadlessDummySink or active application audio streams. Non-zero errors indicate PipeWire buffer underruns caused by missing real-time scheduling priorities.

Step-by-step resolution

Ensure the container has the SYS_NICE capability configured in docker-compose.yml. This capability allows RealtimeKit (rtkit) to grant real-time scheduling priority (SCHED_RR/SCHED_FIFO) to PipeWire audio processing threads:

docker-compose.yml
services:
desktop-a:
# ...
cap_add:
- SYS_NICE # Enables RealtimeKit priority scheduling for audio threads

Recreate the container to apply the capability change:

sudo docker compose down
sudo docker compose up -d

Next steps​

If input and audio are functional but you encounter resource exhaustion or container errors under multiple containers: