Skip to content

Commit 17eba07

Browse files
Applied changes in audio.md, added images necessarry for the update and removed images that are not in use.
1 parent d2fa1ea commit 17eba07

21 files changed

+106
-91
lines changed

content/audio.md

Lines changed: 91 additions & 90 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,50 +21,98 @@ 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 Audio Devices Detected by the System
27+
28+
Below are set of commands that can be used to detect various information about your audio device.
29+
30+
To list all detected audio devices:
31+
32+
```
33+
aplay -l
34+
```
35+
36+
To list audio input devices:
37+
38+
```
39+
arecord -l
40+
```
41+
42+
To list the current sound cards:
43+
44+
```
45+
cat /proc/asound/cards
46+
```
47+
48+
To list kernel modules related to audio:
49+
50+
```
51+
sudo lspci -k | grep -A 3 -i audio
52+
```
53+
54+
Your audio devices should appear in these lists.
55+
56+
If not, this may be a driver issue.
57+
58+
## Verify if the Correct Device is Selected
59+
60+
If the system is not playing any audio, you can confirm the selected device from the System Settings.
61+
62+
Go to <u>Launcher</u> and search for Sound:
63+
64+
![audio_1](images/audio/audio_1.png)
65+
66+
Under the Sound Settings, the Input and Output Device selected will be displayed:
67+
68+
![audio_2](images/audio/audio_2.png)
69+
70+
## Restart the Audio Services
2371

2472
If the system is not playing audio, first try restarting the audio daemon:
2573

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` | |
74+
```
75+
systemctl --user restart wireplumber pipewire pipewire-pulse
76+
```
77+
```
78+
rm -r ~/.config/pulse
79+
```
3280

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.
81+
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.
3482

3583
## Check the PulseAudio Controls
3684

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:
85+
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 Cosmic Store:
86+
87+
![audio_3](images/audio/audio_3.png)
88+
89+
or with this command:
3890

3991
```
4092
sudo apt install pavucontrol
4193
```
4294

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

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

47-
![Playback tab](/images/audio/pavucontrol-playback.png)
99+
![audio_4](images/audio/audio_4.png)
48100

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

51-
![Recording tab](/images/audio/pavucontrol-recording.png)
103+
![audio_5](images/audio/audio_5.png)
52104

53105
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.
54106

55-
![Output tab](/images/audio/pavucontrol-output.png)
107+
![audio_6](images/audio/audio_6.png)
56108

57109
The "Input Devices" tab shows a similar list for input devices.
58110

59-
![Input tab](/images/audio/pavucontrol-input.png)
111+
![audio_7](images/audio/audio_7.png)
60112

61113
Under "Configuration," each sound card should be listed.
62114

63-
![Configuration tab](/images/audio/pavucontrol-configuration.png)
115+
![audio_8](images/audio/audio_8.png)
64116

65117
## Troubleshooting ALSA
66118

@@ -82,23 +134,13 @@ A device may be muted in the ALSA mixer, which will override any PulseAudio volu
82134
alsamixer
83135
```
84136

85-
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.
137+
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 M key while each meter is selected.
86138

87-
![alsamixer](/images/audio/alsamixer-main.png)
139+
![audio_9](images/audio/audio_9.png)
88140

89141
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.
90142

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.)
143+
![audio_10](images/audio/audio_10.png)
102144

103145
## Other Useful Commands
104146

@@ -144,79 +186,38 @@ If you would like to monitor PipeWire, run:
144186
pw-top
145187
```
146188

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.
189+
## Installing Sound Open Firmware Binaries
157190

158-
### Audio crackling or hardware clicking
191+
This firmware is essential for proper audio functionality on systems using Intel audio hardware that relies on Sound Open Firmware.
159192

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).
193+
To install, run the command:
161194

162-
#### Prevent Crackling with PipeWire/WirePlumber
163-
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
169195
```
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
196+
sudo apt update
197+
sudo apt upgrade
198+
sudo apt install firmware-sof-signed
176199
```
177200

178-
#### Prevent Crackling with PulseAudio
201+
## Installing Alsa Firmware Loaders
179202

180-
For older versions of Pop!_OS or distributions using PulseAudio without PipeWire, these two commands will disable this behavior and restart PulseAudio:
203+
This package provides firmware files that may be necessary for certain sound cards to function correctly with the Advanced Linux Sound Architecture (ALSA).
181204

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-
```
186-
187-
This change can be undone using these commands:
205+
To install, run the command:
188206

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
192207
```
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
208+
sudo apt update
209+
sudo apt upgrade
210+
sudo apt install alsa-firmware-loaders
201211
```
202212

203-
Reboot after making the changes. If this doesn't solve the issue, undo the changes using these commands:
204-
205-
```
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.
211-
212213
## Gather Information for Support
213214

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:
215+
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:
215216

216217
```
217218
alsa-info
218219
```
219220

220221
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.
221222

222-
![alsa-info](/images/audio/alsa-info.png)
223+
![audio_11](images/audio/audio_11.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
}

static/images/audio/alsa-info.png

-83.7 KB
Binary file not shown.
-60.8 KB
Binary file not shown.
-66.9 KB
Binary file not shown.

static/images/audio/audio_1.png

55 KB
Loading

static/images/audio/audio_10.png

61.8 KB
Loading

static/images/audio/audio_11.png

63.6 KB
Loading

static/images/audio/audio_2.png

65.1 KB
Loading

static/images/audio/audio_3.png

55.6 KB
Loading

0 commit comments

Comments
 (0)