Ubuntu Audio Device Troubleshooter

“No sound” on Ubuntu is almost never one problem, because the audio stack has four layers and each one can fail silently: the kernel sees the hardware (ALSA), PipeWire or PulseAudio exposes it as a device, the desktop picks a default, and finally each application routes itself somewhere. When something breaks, aplay -l says the card is fine, the mixer shows a volume, and nothing plays. This troubleshooter closes that gap: paste the output of wpctl status, pactl info, the short sink/source lists, aplay -l and (optionally) lsusb, and it parses every device each layer reports, cross-checks the layers against each other, and tells you in plain English which layer is lying to you — with the exact command that fixes it. Muted defaults, a USB dongle the kernel sees but the sound server never exposed, a Bluetooth headset stuck on the wrong profile, an output/input sample-rate mismatch: each gets its own finding with severity, explanation and copy-ready fix. When you are done, copy or download the whole diagnosis as a text report. Everything is computed in this tab: your system output never leaves the page.

100% private. The parsing, the cross-layer checks and every finding are produced with JavaScript in this browser tab. Your device output never leaves the page; there is no server-side calculation, no upload endpoint and nothing to send.

1. Paste your audio diagnostics

Run the commands below on the Ubuntu machine where audio is misbehaving, then paste everything here — prompts and all. Mix and match any of them; the tool detects which command each block came from.

If set, the tool searches every parsed device and ALSA card for it and flags a finding if nothing matches.
Which commands should I paste?
# sound server layer (PipeWire - default on Ubuntu 22.04+)
wpctl status

# PulseAudio-compatible API (works under PipeWire too)
pactl info
pactl list short sinks
pactl list short sources

# kernel / hardware layer
aplay -l
cat /proc/asound/cards

# optional: USB audio dongles
lsusb

On a plain PulseAudio system (no PipeWire) the pactl commands are enough. Have a full pactl list sinks or pactl list sources dump instead of the short lists? Paste that too — it is parsed as well, and it adds state, mute and sample-rate information the short lists do not carry.

2. Diagnosis

Nothing analysed yet. Paste command output above (or load the sample) and the diagnosis appears automatically: which layers you covered, every device they report, and each problem found with its fix command.

How to use it

Step 1 — gather the output. On the affected machine, run the commands from the expandable list above. The minimum useful set is wpctl status plus pactl info and the two short lists; adding aplay -l and lsusb lets the tool cross-check the kernel layer, which is where half of “no sound” reports actually live.

Step 2 — paste and read the findings. Everything runs in your browser as you type. Read the findings top to bottom: red items are things that will definitely block audio, orange items are very likely causes, blue items are context worth knowing (Bluetooth profiles, a healthy-looking stack), green means a layer checked out clean. Each finding carries the command that fixes it — copy it, run it on the machine, then paste the fresh output back here to confirm the finding is gone.

Step 3 — name the device you expect. If the problem is “my headphones don't show up”, type headphones into the “device you are looking for” field. The tool searches every parsed name, description, ALSA card and USB product, and if nothing matches you get a structured checklist of where to look next instead of guessing.

Step 4 — keep a record. Use “Copy full report” or “Download report” to save the whole diagnosis as plain text — handy for a bug report, a support ticket or comparing before/after output after a fix.

Worked example: headphones plugged in, no sound

You plug USB headphones into an Ubuntu 24.04 laptop and nothing plays. You paste wpctl status, pactl info, the short lists, aplay -l and lsusb, and type “headphones” into the looking-for field. The tool reports two sinks (the built-in speakers and nothing else), one ALSA card, and — from lsusb — a USB device whose product string contains “headset”. Because no sound device with a USB name exists, it raises an orange finding: USB audio device not exposed, with the fix commands sudo modprobe snd_usb_audio and a dmesg grep to confirm the driver loaded. If instead the headphones do appear but are not the default output, the looking-for finding turns green and tells you exactly which wpctl set-default command to run so apps that follow the default start using them.

A second common shape: the stack looks perfect — devices present, default set, nothing muted — yet one specific app is silent. That is the green “stack looks healthy” finding, which points you at per-application routing (pactl list sink-inputs and pactl move-sink-input) because the problem has moved from the system to the app.

How it works

Ubuntu audio is a stack, and this tool checks each layer separately before comparing them:

  • ALSA (kernel). aplay -l and /proc/asound/cards list the cards the kernel actually sees. If a card is missing here, no amount of mixer fiddling will help — it is a hardware, BIOS or driver problem.
  • The sound server. On Ubuntu 22.04 and later that is PipeWire (with WirePlumber), which also speaks the PulseAudio protocol. wpctl status lists its sinks (outputs) and sources (inputs) with names, descriptions and volumes; pactl info adds the default sink/source, and the short lists add mute state.
  • The cross-check. The interesting part is comparing layers: a card in ALSA but no matching device in the server means the bridge failed; a USB audio product in lsusb but no USB-named device means the driver did not load; a default sink that is muted or missing explains “everything looks fine but nothing plays”; different sample rates on output and input predict crackling during calls.

Findings are severity-ranked so you fix the blocking layer first. The whole engine — parsers, rules, report builder — is a few hundred lines of JavaScript that runs in your tab; there is no server involved at all.

Common mistakes this tool catches

  • Muting the wrong layer. The system volume, the per-app volume and the device mute are three separate switches; a muted default sink is one of the most common “no sound” causes and the cheapest fix.
  • A stale default after reboot. The default can point at a suspended or absent device (a Bluetooth headset that did not reconnect); audio then has nowhere to go even though every device is listed.
  • USB dongle, no driver. The device shows in lsusb, the kernel module snd_usb_audio never loaded, and the sound server never saw it. Checking only aplay -l and concluding “hardware fine” skips exactly this gap.
  • Bluetooth profile mix-ups. A2DP gives high-quality playback, HFP gives a working-but-terrible mic; when both are active at once you get choppy music or a bad call audio — the tool flags the situation and where to look.
  • Sample-rate mismatch. Output at 48 kHz and input at 44.1 kHz is usually harmless for playback alone but a classic source of crackle when both directions run together, such as on a video call.
  • App-level routing overriding the default. GNOME lets each application pick its own output; a system that is perfectly healthy can still be silent in one app because that app routed itself elsewhere.

Luke Keam
Spot a bug or want a custom utility built? I'd love to hear from you. Get in touch
Luke Keam | techgeek.biz