Skip to content

Commit a423692

Browse files
Update on Audio Troubleshooting Guide (#1336)
* Add audio screenshots * Applied changes in audio.md, added images necessarry for the update and removed images that are not in use. * fixed lint error, reordered and made updates on audio.md * Updated file name of images and updated content of audio md following the comments on the recent review * Minor phrasing & formatting tweaks * Updated screenshots to COSMIC * New commit for Lint error * Compress large PNG screenshots into JPGs * Optimize remaining PNGs --------- Co-authored-by: Jacob Kauffmann <jacob@system76.com>
1 parent 1ad1c5b commit a423692

22 files changed

+105
-106
lines changed

content/audio.md

Lines changed: 90 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
---
2-
title: Audio Troubleshooting
2+
title: Audio Troubleshooting Guide
33
description: >
44
Here is how to fix several common audio issues with your computer.
55
keywords:
6-
- audio
7-
- dummy output
8-
- alsa
9-
- pulseaudio
10-
- pulse audio
6+
- audio
7+
- dummy output
8+
- alsa
9+
- pulseaudio
10+
- pulse audio
11+
- pipewire
12+
- pipe wire
13+
- wireplumber
14+
- wire plumber
1115

1216
facebookImage: /_social/article
1317
twitterImage: /_social/article
@@ -17,65 +21,99 @@ section: software-troubleshooting
1721
tableOfContents: true
1822
---
1923

20-
Sound settings or packages related to the sound system can become corrupt or broken. Many times, deleting the configuration files, reinstalling the sound-related packages, and restarting the audio software can help. These commands can also help fix the <u>Sound</u> settings showing "Dummy Output" as the audio output.
24+
If your system has no sound, distorted sound, or missing input/output devices, this guide will walk you through verifying hardware, reloading drivers, and resetting audio services for Pop!_OS 22.04 and Pop!_OS 24.04.
2125

22-
## Reset Audio Software (server)
26+
## Verify if the Correct Device is Selected
2327

24-
If the system is not playing audio, first try restarting the audio daemon:
28+
If the system is not playing any audio, you can confirm the selected device from the system's Settings app.
2529

26-
| PulseAudio | PipeWire |
27-
| :--------- | :-------|
28-
| Ubuntu pre-22.10 and Pop!\_OS pre-22.04 | Ubuntu 22.10+ and Pop!\_OS 22.04+ |
29-
| `systemctl --user restart pulseaudio` | `systemctl --user restart wireplumber pipewire pipewire-pulse` |
30-
| `rm -r ~/.config/pulse` | `rm -r ~/.config/pulse` |
31-
| `pulseaudio -k` | |
30+
Access the Sound page of Settings by opening the Launcher (by default, press <kbd>Super</kbd>) and searching for Sound:
3231

33-
This set of commands first restarts the sound daemon and removes the user's configuration for PulseAudio. On systems still using PulseAudio as a server, it restarts the PulseAudio server, which will create new default audio configuration files.
32+
![COSMIC Launcher](images/audio/COSMIC-Launcher.jpg)
33+
34+
![COSMIC Launcher search for Sound](images/audio/COSMIC-Launcher-Sound.jpg)
35+
36+
On the Sound page of Settings, the selected Input and Output Device will be displayed:
37+
38+
![Sound Settings](images/audio/COSMIC-Sound-Settings.png)
39+
40+
## Verify Audio Devices Detected by the System
41+
42+
Below is a set of commands to display information about your audio device.
43+
44+
List all detected output audio devices:
45+
46+
```
47+
aplay -l
48+
```
49+
50+
List all detected input audio devices:
51+
52+
```
53+
arecord -l
54+
```
55+
56+
List the current sound cards:
57+
58+
```
59+
cat /proc/asound/cards
60+
```
61+
62+
List loaded drivers and available kernel modules for each PCI audio device:
63+
64+
```
65+
sudo lspci -k | grep -A 3 -i audio
66+
```
67+
68+
Your audio devices should appear in these lists. If not, there may be a driver issue.
69+
70+
## Restart the Audio Daemon
71+
72+
If the system is not playing audio, try restarting the audio daemon:
73+
74+
```
75+
systemctl --user restart wireplumber pipewire pipewire-pulse
76+
rm -r ~/.config/pulse
77+
```
78+
79+
This set of commands restarts the <u>PipeWire audio server</u> and its associated services for the current user. This also removes the <u>PulseAudio</u> configuration and will create new default audio configuration files.
3480

3581
## Check the PulseAudio Controls
3682

37-
The program <u>PulseAudio Volume Control</u> is helpful in figuring out which program is producing audio, where that audio is being routed, what the default input/output devices are, and what the volume levels are set to. It can be installed using the Pop!\_Shop, or with this command:
83+
The program <u>PulseAudio Volume Control</u> is helpful to figure out which programs are producing audio, where that audio is being routed, what the default input/output devices are, and what the volume levels are set to. It can be installed using the Pop!_Shop or COSMIC Store:
84+
85+
![PulseAudio Volume Control shown in the COSMIC Store](images/audio/COSMIC-pavucontrol.png)
86+
87+
...or with this command:
3888

3989
```
4090
sudo apt install pavucontrol
4191
```
4292

43-
Once installed, open the <u>PulseAudio Volume Control</u> app in the Activities or Applications menu, or run `pavucontrol` in a terminal.
93+
Once installed, open the PulseAudio Volume Control app in the Activities or Applications menu, or run `pavucontrol` in a terminal.
4494

4595
The "Playback" tab will show a list of applications that are currently playing audio. The volume for each application can be individually controlled.
4696

47-
![Playback tab](/images/audio/pavucontrol-playback.png)
97+
![Playback tab in PulseAudio Volume Control](images/audio/COSMIC-pavucontrol-playback.png)
4898

4999
Similarly, the "Recording" tab will show a list of applications that are currently recording audio.
50100

51-
![Recording tab](/images/audio/pavucontrol-recording.png)
101+
![Recording tab in PulseAudio Volume Control](images/audio/COSMIC-pavucontrol-recording.png)
52102

53103
The "Output Devices" tab shows a list of output devices, and an indicator of what's being played out of each device. The green checkmark being selected indicates a device is the default output device.
54104

55-
![Output tab](/images/audio/pavucontrol-output.png)
105+
![Output devices tab in PulseAudio Volume Control](images/audio/COSMIC-pavucontrol-output.png)
56106

57107
The "Input Devices" tab shows a similar list for input devices.
58108

59-
![Input tab](/images/audio/pavucontrol-input.png)
109+
![Input devices tab in PulseAudio Volume Control](images/audio/COSMIC-pavucontrol-input.png)
60110

61111
Under "Configuration," each sound card should be listed.
62112

63-
![Configuration tab](/images/audio/pavucontrol-configuration.png)
113+
![Configuration tab in PulseAudio Volume Control](images/audio/COSMIC-pavucontrol-configuration.png)
64114

65115
## Troubleshooting ALSA
66116

67-
PulseAudio sits on top of ALSA. If PulseAudio is not seeing any input/output devices, check what playback devices ALSA is detecting:
68-
69-
```
70-
aplay -l
71-
```
72-
73-
Or, check what recording devices ALSA is detecting:
74-
75-
```
76-
arecord -l
77-
```
78-
79117
A device may be muted in the ALSA mixer, which will override any PulseAudio volume settings. You can open the ALSA mixer with this command:
80118

81119
```
@@ -84,34 +122,24 @@ alsamixer
84122

85123
You can navigate between the different volume meters using the left and right arrow keys. Each meter can be adjusted using the up and down arrow keys. An "MM" at the bottom of a meter indicates that meter is muted. If the PulseAudio Volume Control shows that sound is playing, but you don't hear any sound, try unmuting all of the volume meters in alsamixer by pressing the <kbd>M</kbd> key while each meter is selected.
86124

87-
![alsamixer](/images/audio/alsamixer-main.png)
125+
![ALSAMixer](images/audio/COSMIC-ALSAmixer.png)
88126

89127
If your system has more than one sound card (for example, an Intel sound card and an NVIDIA sound card in switchable-graphics systems), you can switch between them by pressing F6.
90128

91-
![alsamixer's sound card selection](/images/audio/alsamixer-soundcard.png)
92-
93-
## Check if Hardware is Detected
94-
95-
If ALSA doesn't list a sound card, it may not be physically detected by the system at all. If the Linux kernel sees a sound card, it will show up in your `lspci` output. This command will list every sound card your system detects, and show the driver being used for each one:
96-
97-
```
98-
lspci -v | grep -A6 Audio
99-
```
100-
101-
If the output from that command is blank, then your system isn't detecting any sound cards (which could indicate a hardware issue.)
129+
![ALSAMixer select soundcard](images/audio/COSMIC-ALSAmixer-soundcard.png)
102130

103131
## Other Useful Commands
104132

105133
This command will reinstall ALSA and some of the other core audio packages:
106134

107135
```
108-
sudo apt install --reinstall alsa-base alsa-utils linux-sound-base libasound2
136+
sudo apt reinstall alsa-base alsa-utils linux-sound-base libasound2
109137
```
110138

111139
This command will reinstall the PulseAudio packages:
112140

113141
```
114-
sudo apt install --reinstall libpulse0 libpulsedsp pulseaudio pulseaudio-module-bluetooth pulseaudio-utils
142+
sudo apt reinstall libpulse0 libpulsedsp pulseaudio pulseaudio-module-bluetooth pulseaudio-utils
115143
```
116144

117145
This command will reinstall the PipeWire packages:
@@ -144,79 +172,36 @@ If you would like to monitor PipeWire, run:
144172
pw-top
145173
```
146174

147-
## Configuration Tweaks
148-
149-
Some particular problems may be solved by tweaks to ALSA or PulseAudio configuration. Clearing the current settings for Pipewire or PulseAudio may allow the defaults to be used again. To revert to defaults and clear any current saved settings run the following commands:
150-
151-
```
152-
rm -r ~/.config/pulse/*
153-
rm -r ~/.local/state/wireplumber/*
154-
```
155-
156-
**NOTE:** When running those commands you may see messages similar to this: `rm: cannot remove '/home/ckw/.config/pulse/*': No such file or directory` those are safe to ignore as the file simply does not exist.
157-
158-
### Audio crackling or hardware clicking
175+
## Installing Sound Open Firmware Binaries
159176

160-
If you hear audio crackling (especially when you start or stop playing audio), your audio card may be going to sleep too often. This is known to happen on some versions of the [Serval WS](/articles/serval-dac/) and some [Thunderbolt docks](https://github.com/system76/docs/issues/491).
177+
This firmware package is essential for proper audio functionality on systems using Intel audio hardware that relies on Sound Open Firmware. It's installed by default, but could be accidentally removed by other package operations.
161178

162-
#### Prevent Crackling with PipeWire/WirePlumber
179+
To install, run the commands:
163180

164-
For Pop!_OS 22.04 and newer (and other distributions using PipeWire with WirePlumber), these two commands will disable this behavior and restart PipeWire:
165-
166-
```bash
167-
sudo sed -i 's/--\["session.suspend-timeout-seconds"\] = 5/\["session.suspend-timeout-seconds"\] = 0/' /usr/share/wireplumber/main.lua.d/50-alsa-config.lua
168-
systemctl restart --user pipewire.service
169181
```
170-
171-
This change can be undone using these commands:
172-
173-
```bash
174-
sudo sed -i 's/\["session.suspend-timeout-seconds"\] = 0/--\["session.suspend-timeout-seconds"\] = 5/' /usr/share/wireplumber/main.lua.d/50-alsa-config.lua
175-
systemctl restart --user pipewire.service
182+
sudo apt update
183+
sudo apt install firmware-sof-signed
176184
```
177185

178-
#### Prevent Crackling with PulseAudio
179-
180-
For older versions of Pop!_OS or distributions using PulseAudio without PipeWire, these two commands will disable this behavior and restart PulseAudio:
186+
## Installing ALSA Firmware Loaders
181187

182-
```bash
183-
sudo sed -i 's/load-module module-suspend-on-idle/#load-module module-suspend-on-idle/' /etc/pulse/default.pa
184-
pulseaudio -k
185-
```
188+
This package provides firmware files that may be necessary for certain sound cards to function correctly with the Advanced Linux Sound Architecture (ALSA).
186189

187-
This change can be undone using these commands:
190+
To install, run the commands:
188191

189-
```bash
190-
sudo sed -i 's/#load-module module-suspend-on-idle/load-module module-suspend-on-idle/' /etc/pulse/default.pa
191-
pulseaudio -k
192192
```
193-
194-
### PCI/internal sound card not detected (dummy output)
195-
196-
With hardware that uses the `snd_hda_intel` kernel module, rare [bugs](https://bugs.launchpad.net/ubuntu/+source/linux-oem-osp1/+bug/1864061) can cause the sound card to not be detected. If you're having this issue, try running these commands to force the usage of a specific audio driver:
197-
198-
```
199-
echo "options snd-hda-intel dmic_detect=0" | sudo tee -a /etc/modprobe.d/alsa-base.conf
200-
echo "blacklist snd_soc_skl" | sudo tee -a /etc/modprobe.d/blacklist.conf
201-
```
202-
203-
Reboot after making the changes. If this doesn't solve the issue, undo the changes using these commands:
204-
193+
sudo apt update
194+
sudo apt install alsa-firmware-loaders
205195
```
206-
sudo sed -i 's/options snd-hda-intel dmic_detect=0//' /etc/modprobe.d/alsa-base.conf
207-
sudo sed -i 's/blacklist snd_soc_skl//' /etc/modprobe.d/blacklist.conf
208-
```
209-
210-
Then reboot again.
211196

212197
## Gather Information for Support
213198

214-
The `alsa-info` command will gather a number of outputs, including some of the above-listed outputs, and package them so they can be shared easily. In a terminal, run the command:
199+
The 'alsa-info' command will gather a number of outputs, including some of the above-listed outputs, and package them so they can be shared easily. In a terminal, run the command:
215200

216201
```
217202
alsa-info
218203
```
219204

220-
When the script is finished gathering information, type <kbd>y</kbd> and press Enter to upload your output to the ALSA website, then send the link to Support.
205+
When the script is finished gathering information, type <kbd>y</kbd> and press <kbd>Enter</kbd> to upload your output to the ALSA website, then send the link to Support.
221206

222-
![alsa-info](/images/audio/alsa-info.png)
207+
![ALSA-info](images/audio/COSMIC-ALSA-info.png)

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,19 @@
3535
"postcss": "^8.4.29",
3636
"shiki": "^0.9.3",
3737
"unist-util-visit": "^2.0.3"
38-
}
38+
},
39+
"description": "The docs system is powered by [NuxtJS][1] with [`@nuxtjs/content`][2],\r [tailwindcss][3], and some other packages. It uses Markdown in the `/content/`\r folder to render every article. If you don't know what Markdown is (or need a\r refresher), take a minute to look over [the basics][4].",
40+
"main": ".eslintrc.js",
41+
"repository": {
42+
"type": "git",
43+
"url": "git+https://github.com/system76/docs.git"
44+
},
45+
"keywords": [],
46+
"author": "",
47+
"license": "ISC",
48+
"type": "commonjs",
49+
"bugs": {
50+
"url": "https://github.com/system76/docs/issues"
51+
},
52+
"homepage": "https://github.com/system76/docs#readme"
3953
}
81.4 KB
Loading
51.9 KB
Loading
46.9 KB
Loading
117 KB
Loading
108 KB
Loading
76.7 KB
Loading
49.5 KB
Loading
53.9 KB
Loading

0 commit comments

Comments
 (0)