-
Notifications
You must be signed in to change notification settings - Fork 419
Update on Audio Troubleshooting Guide #1336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
marwinpinlac-web
wants to merge
3
commits into
master
Choose a base branch
from
marwinpinlac-web-patch-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,17 @@ | ||
| --- | ||
| title: Audio Troubleshooting | ||
| title: Audio Troubleshooting Guide | ||
| description: > | ||
| Here is how to fix several common audio issues with your computer. | ||
| keywords: | ||
| - audio | ||
| - dummy output | ||
| - alsa | ||
| - pulseaudio | ||
| - pulse audio | ||
| - audio | ||
| - dummy output | ||
| - alsa | ||
| - pulseaudio | ||
| - pulse audio | ||
| - pipewire | ||
| - pipe wire | ||
| - wireplumber | ||
| - wire plumber | ||
|
|
||
| facebookImage: /_social/article | ||
| twitterImage: /_social/article | ||
|
|
@@ -17,50 +21,98 @@ | |
| tableOfContents: true | ||
| --- | ||
|
|
||
| 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. | ||
| 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. | ||
|
|
||
| ## Reset Audio Software (server) | ||
| ## Verify Audio Devices Detected by the System | ||
|
|
||
| Below are set of commands that can be used to detect various information about your audio device. | ||
|
|
||
| To list all detected audio devices: | ||
|
|
||
| ``` | ||
| aplay -l | ||
| ``` | ||
|
|
||
| To list audio input devices: | ||
|
|
||
| ``` | ||
| arecord -l | ||
| ``` | ||
|
|
||
| To list the current sound cards: | ||
|
|
||
| ``` | ||
| cat /proc/asound/cards | ||
| ``` | ||
|
|
||
| To list kernel modules related to audio: | ||
|
|
||
| ``` | ||
| sudo lspci -k | grep -A 3 -i audio | ||
| ``` | ||
|
|
||
| Your audio devices should appear in these lists. | ||
|
|
||
| If not, this may be a driver issue. | ||
|
|
||
| ## Verify if the Correct Device is Selected | ||
|
||
|
|
||
| If the system is not playing any audio, you can confirm the selected device from the System Settings. | ||
|
|
||
| Go to <u>Launcher</u> and search for Sound: | ||
|
|
||
|  | ||
|
|
||
| Under the Sound Settings, the Input and Output Device selected will be displayed: | ||
|
|
||
|  | ||
|
|
||
| ## Restart the Audio Services | ||
|
|
||
| If the system is not playing audio, first try restarting the audio daemon: | ||
|
||
|
|
||
| | PulseAudio | PipeWire | | ||
| | :--------- | :-------| | ||
| | Ubuntu pre-22.10 and Pop!\_OS pre-22.04 | Ubuntu 22.10+ and Pop!\_OS 22.04+ | | ||
| | `systemctl --user restart pulseaudio` | `systemctl --user restart wireplumber pipewire pipewire-pulse` | | ||
| | `rm -r ~/.config/pulse` | `rm -r ~/.config/pulse` | | ||
| | `pulseaudio -k` | | | ||
| ``` | ||
| systemctl --user restart wireplumber pipewire pipewire-pulse | ||
| ``` | ||
| ``` | ||
| rm -r ~/.config/pulse | ||
| ``` | ||
|
|
||
| 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. | ||
| 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. | ||
|
|
||
| ## Check the PulseAudio Controls | ||
|
|
||
| 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: | ||
| 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: | ||
|
|
||
|  | ||
|
|
||
| or with this command: | ||
|
|
||
| ``` | ||
| sudo apt install pavucontrol | ||
| ``` | ||
|
|
||
| Once installed, open the <u>PulseAudio Volume Control</u> app in the Activities or Applications menu, or run `pavucontrol` in a terminal. | ||
| Once installed, open the PulseAudio Volume Control app in the Activities or Applications menu, or run pavucontrol in a terminal. | ||
|
|
||
| The "Playback" tab will show a list of applications that are currently playing audio. The volume for each application can be individually controlled. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| Similarly, the "Recording" tab will show a list of applications that are currently recording audio. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| 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. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| The "Input Devices" tab shows a similar list for input devices. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| Under "Configuration," each sound card should be listed. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| ## Troubleshooting ALSA | ||
|
|
||
|
|
@@ -82,23 +134,13 @@ | |
| alsamixer | ||
| ``` | ||
|
|
||
| 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. | ||
| 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. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| 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. | ||
|
|
||
|  | ||
|
|
||
| ## Check if Hardware is Detected | ||
|
|
||
| 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: | ||
|
|
||
| ``` | ||
| lspci -v | grep -A6 Audio | ||
| ``` | ||
|
|
||
| If the output from that command is blank, then your system isn't detecting any sound cards (which could indicate a hardware issue.) | ||
|  | ||
|
|
||
| ## Other Useful Commands | ||
|
|
||
|
|
@@ -144,79 +186,38 @@ | |
| pw-top | ||
| ``` | ||
|
|
||
| ## Configuration Tweaks | ||
|
|
||
| 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: | ||
|
|
||
| ``` | ||
| rm -r ~/.config/pulse/* | ||
| rm -r ~/.local/state/wireplumber/* | ||
| ``` | ||
|
|
||
| **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. | ||
| ## Installing Sound Open Firmware Binaries | ||
|
|
||
| ### Audio crackling or hardware clicking | ||
| This firmware is essential for proper audio functionality on systems using Intel audio hardware that relies on Sound Open Firmware. | ||
|
|
||
| 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). | ||
| To install, run the command: | ||
|
|
||
| #### Prevent Crackling with PipeWire/WirePlumber | ||
|
|
||
| For Pop!_OS 22.04 and newer (and other distributions using PipeWire with WirePlumber), these two commands will disable this behavior and restart PipeWire: | ||
|
|
||
| ```bash | ||
| sudo sed -i 's/--\["session.suspend-timeout-seconds"\] = 5/\["session.suspend-timeout-seconds"\] = 0/' /usr/share/wireplumber/main.lua.d/50-alsa-config.lua | ||
| systemctl restart --user pipewire.service | ||
| ``` | ||
|
|
||
| This change can be undone using these commands: | ||
|
|
||
| ```bash | ||
| sudo sed -i 's/\["session.suspend-timeout-seconds"\] = 0/--\["session.suspend-timeout-seconds"\] = 5/' /usr/share/wireplumber/main.lua.d/50-alsa-config.lua | ||
| systemctl restart --user pipewire.service | ||
| sudo apt update | ||
| sudo apt upgrade | ||
| sudo apt install firmware-sof-signed | ||
| ``` | ||
|
|
||
| #### Prevent Crackling with PulseAudio | ||
| ## Installing Alsa Firmware Loaders | ||
|
|
||
| For older versions of Pop!_OS or distributions using PulseAudio without PipeWire, these two commands will disable this behavior and restart PulseAudio: | ||
| This package provides firmware files that may be necessary for certain sound cards to function correctly with the Advanced Linux Sound Architecture (ALSA). | ||
|
|
||
| ```bash | ||
| sudo sed -i 's/load-module module-suspend-on-idle/#load-module module-suspend-on-idle/' /etc/pulse/default.pa | ||
| pulseaudio -k | ||
| ``` | ||
|
|
||
| This change can be undone using these commands: | ||
| To install, run the command: | ||
|
|
||
| ```bash | ||
| sudo sed -i 's/#load-module module-suspend-on-idle/load-module module-suspend-on-idle/' /etc/pulse/default.pa | ||
| pulseaudio -k | ||
| ``` | ||
|
|
||
| ### PCI/internal sound card not detected (dummy output) | ||
|
|
||
| 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: | ||
|
|
||
| ``` | ||
| echo "options snd-hda-intel dmic_detect=0" | sudo tee -a /etc/modprobe.d/alsa-base.conf | ||
| echo "blacklist snd_soc_skl" | sudo tee -a /etc/modprobe.d/blacklist.conf | ||
| sudo apt update | ||
| sudo apt upgrade | ||
| sudo apt install alsa-firmware-loaders | ||
| ``` | ||
|
|
||
| Reboot after making the changes. If this doesn't solve the issue, undo the changes using these commands: | ||
|
|
||
| ``` | ||
| sudo sed -i 's/options snd-hda-intel dmic_detect=0//' /etc/modprobe.d/alsa-base.conf | ||
| sudo sed -i 's/blacklist snd_soc_skl//' /etc/modprobe.d/blacklist.conf | ||
| ``` | ||
|
|
||
| Then reboot again. | ||
|
|
||
| ## Gather Information for Support | ||
|
|
||
| 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: | ||
| 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: | ||
|
|
||
| ``` | ||
| alsa-info | ||
| ``` | ||
|
|
||
| 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. | ||
|
|
||
|  | ||
|  | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove 'To' and just start with 'List' throughout article