Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

37 votes

How to use command line to change volume?

To mute: amixer -D pulse sset Master mute To unmute: amixer -D pulse sset Master unmute To turn volume up 5%: amixer -D pulse sset Master 5%+ To turn volume down 5%: amixer -D pulse sset Master ...
user avatar
35 votes
Accepted

Issues with arecord command: Channels count non available

I found out what the problem was. The command defaults because I wasn't specifying a 2-channel (stereo) 192kHz audio input. Here's an example of a command that did work: $ arecord -f S24_LE -c 2 -r ...
user avatar
  • 671
34 votes
Accepted

Why do you need PulseAudio?

It's all about multiplexing. I don't need to multiplex sounds from or to several sound cards Ah, but you do! If you want to be able to play audio from two sources at once, ever, for any reason, ...
user avatar
30 votes

How do I enable sound in this fresh Arch install?

When setting up a new Arch install I usually do the following: pacman -S alsa-utils Then fire up alsamixer with alsamixer Go to 'Master' then press M and then keep hitting the up key to bring the ...
user avatar
24 votes

How to use command line to change volume?

pactl/pacmd (unlike amixer) allows increasing volume over 100% :-). pactl set-sink-mute 0 toggle # toggle mute, also you have true/false pactl set-sink-volume 0 0 # mute (force) pactl set-sink-...
user avatar
  • 1,339
22 votes

Command line per-application volume (maybe amixer or pactl?)

You can get the number of sink Input with pactl command. $ pactl list sink-inputs ... Sink Input #7119 Driver: protocol-native.c Owner Module: 12 Client: 6298 Sink: 0 ... Properties: ...
user avatar
  • 576
22 votes
Accepted

How to prevent white noise in headphones on Dell XPS 13 9350/9360

Set Headphone Mic Boost gain to 10dB. Any other value seems to cause the irritating background noise in headphones. This can be done with amixer: amixer -c0 sset 'Headphone Mic Boost' 10dB To make ...
user avatar
20 votes

How do I enable sound in this fresh Arch install?

I recommend asoundconf, which will take care of generating a proper .asoundrc . List the available sound cards: asoundconf list Set the default one: asoundconf set-default-card PARAMETER ...
user avatar
  • 646
19 votes

Default sound volume for all ALSA devices

I just wandered upon this post and see you are struggling with the answer to this as I was. This is what fixed it for me: Go into alsamixer and set everything the way you want it, then exit and ...
user avatar
  • 191
19 votes

Problem with audio (stuttering/choppy) in every single distribution I've used

It really is terrible that problems that were resolved back in 2008 are still haunting us in 2020 - 12 years on :(. I'm on Ubuntu 20.04.1 LTS. To get rid of choppy / stuttering / skipping audio when ...
user avatar
  • 419
14 votes
Accepted

Create virtual device in .asoundrc file

I solved this issue as follows: First, load the snd-aloop module: sudo modprobe snd-aloop This will create a new device called Loopback: ± % cat /proc/asound/cards ...
user avatar
  • 341
14 votes
Accepted

Distortion At High Volume On Headphones

Turning all hardware mixers up worked. Edit: Actually just found another, slightly hacky, work around to this issue after it came back a few boots later by using an ladpsa amplifier and compressor in ...
user avatar
12 votes
Accepted

Microphone not working on archlinux

Based on correspondence with the poster (see comments), it turned out that the sound card was muted inside pavucontrol.
user avatar
  • 33.2k
12 votes

Change what PulseAudio calls a device?

To improve upon dirkt's answer, due to the way shell arguments are interpreted, spaces in PulseAudio properties such as the description require double quoting: pacmd 'update-sink-proplist alsa_output....
user avatar
11 votes

How to tell Firefox to use another ALSA device?

Apparently there is no option for firefox, but you can manipulate the ALSA output through environment variables. Try for example: ALSA_PCM_CARD=bluetooth firefox Alternatively, if this does not ...
user avatar
  • 12.6k
11 votes
Accepted

.ogg audio file and aplay white noise

You cannot decode ogg files with aplay. According to the man page, the only formats aplay understands are voc, wav, raw and au. My guess is that aplay interprets the ogg file as raw data, hence the ...
user avatar
  • 28.8k
10 votes
Accepted

What is ALSA in the Linux kernel?

ALSA stands for Advanced Linux Sound Architecture, I'd encourage you to poke around their project website if you're truly curious. Specifically I'd take a look at the "I'm new to ALSA pages & ...
user avatar
  • 345k
10 votes

Change sampling rate in ALSA

Alsa by default uses the same sampling rate and format as the source. It is however possible to force the sample rate up (or down). Here is one way you could do it. (in /etc/asound.conf or ~/.asoundrc)...
user avatar
  • 1,809
10 votes
Accepted

Why would alsa sound pop, crackle and be generally too distorted to listen to?

And fixed! When looking around, the issue arised when I installed GDM to handle logins, which of course has Gnome attached to it, which in turn requires Pulseaudio. That set my default device to ...
user avatar
  • 301
10 votes
Accepted

alsa: record everything on given sound card

Is there a simple, application-independent way to record audio on given sound card? Yes ! There is ! What you are looking for is to simply record the output of your sound card. The easiest way would ...
user avatar
  • 2,186
8 votes

Lost sound with xmonad

Finally fixed it by going through absolutely every bar in alsamixer, even the ones that I wasn't sure would matter, and unmuting them all. As it turns out, the mute toggle mutes everything, but only ...
user avatar
8 votes
Accepted

Change what PulseAudio calls a device?

You can update the device.description with update-sink-proplist and update-source-proplist, e.g. pacmd update-sink-proplist alsa_output.my-card.analog-stereo device.description=MyCard I haven't ...
user avatar
  • 28.8k
8 votes
Accepted

Route application's audio output to multiple playback devices

If you are using Pulseaudio anyway, have a look at Pulseaudio's modules, in particular module-loopback and module-null-sink. In my experience, snd-aloop is a bit of a pain to use, and as Pulseaudio ...
user avatar
  • 28.8k
8 votes

Audio not working on Gigabyte x570 Aorus Master with ALC1220 and ESS SABRE 9118 DAC

I installed pavucontrol and I discovered that in configuration tab, analog output profile is unavailable for my audio controller. The only profile available was the digital one. Then I discovered ...
user avatar
7 votes

How to use command line to change volume?

Higher volume: amixer set Master 3%+ Lower volume: amixer set Master 3%- Mute toggle: amixer set Master toggle Example keybindings for i3/sway, the commands are after exec: bindsym ...
user avatar
  • 8,857
7 votes

Why do you need PulseAudio?

Since introduction of Dmix in alsa, pulseaudio turned to be useless. Bare alsa with Dmix somehow enabled deep inside (I haven't have to set anything) works much better for me. For example, there is no ...
user avatar
7 votes
Accepted

ALSA set plughw as default

Backup your ~/.asoundrc - if you have one - and add the following, to a new ~/.asoundrc: pcm.!default { type plug slave { pcm "hw:0,0" } }
user avatar
  • 402
7 votes
Accepted

Loop audio file from the command line (gapless) or into new file

Sometimes it is just good to know that linux-life can be as easy as imagined, in this case by using SoX (Sound eXchange): sox infile.flac outfile.flac repeat 32 this even works with different file ...
user avatar
  • 4,760
7 votes
Accepted

Pulseaudio no sound from speakers

Looks like it might be the same bug that is known in Ubuntu also: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1812693 This wiki has a suggestion for a workaround: https://blog....
user avatar
  • 67.1k
7 votes
Accepted

How to switch between headphones and speakers without disconnecting

1. Software switching support Check, if your sound card supports software switching for the front audio panel. Some older motherboards don't support software switching at all. Some sound cards have ...
user avatar
  • 1,471

Only top scored, non community-wiki answers of a minimum length are eligible