I recently updated my Ubuntu 19 to 20.04 and started experiencing strange issue: when I open sound settings and switch "output device" while my headphones are plugged in - sound goes out of headphones no matter what device I have chosen. The only thing, which seem to help, is plugging off my headphones.
This was not the case with Ubuntu 19. I could easily switch between built-in speakers on my laptop and headphones in the settings and it worked fine.
Has anyone else encountered such issue? Is there a way to fix it?
I believe my Ubuntu was 19.10 (but I am not sure about the minor version). My kernel seem unchanged after upgrade - 5.4.0-29-generic. The hardware, obviously, haven't changed either.
A better solution is delete pulse audio config files in current user.
Then logout & login or just reboot. Now you can change your audio device in system settings instead of pavucontrol.
Try installing
pavucontrol
and change your output device there:Worked for me so far as a quick fix but I can't tell you about the reasons why it works. Now I'm also able to switch output devices via the default sound settings again.
Some people also experience problems when timidity is installed.
You might want to have a look at these questions:
20.04: internal speaker (Audio) is not working in Ubuntu 20.04 LTS after upgrading from Ubuntu 18.04 LTS
No sound - Ubuntu 20.04 lts
I think you might have gnome-alsamixer installed.
I had it installed in Ubuntu 18.04, and when I upgraded to 20 I started having this issue. I removed it using
sudo apt-get autoremove gnome-alsamixer
and it resolved the issue for me.My two cents.
Of all the options listed here (and in linked answers), only the one with
pavucontrol
gives any effect in my case. But it's too inconvenient, in my opinion.I have 3 sound devices (that output sound), so earlier I had a script for switching cyclically between 2 of them (the third, with index 0, is no interest to me, so I always skip it). This was done with the following script:
It turned out that this script works. There is still one problem with it: when you reboot a system (or even start another application), the sound is output to any of the 2 devices unpredictably (at least I could not figure out the logic). But once you run the script, the sound gets output to whatever device you need.
It's very handy to assign it to a hotkey, so just one movement separates you from switching to another device (a lot more convenient that going to the menu; in 16.04 it was far better, the sound device checker was not so deep).
There is a similar problem with microphone, I was able to solve it by using
pacmd list-source-outputs
,pacmd set-default-source
andpacmd move-source-output
.And just a note: when booting from 20.04 Live DVD, the problems (at least with switching between speakers/headphones) simply do not occur. Maybe it makes sense to just reinstall from scratch, hmmm...
I can strongly recommend the Sound Input & Output Device Chooser GNOME Shell extension. It allows very easy and quick device switching (both input and output). Some screenshots:
I know this is a dead issue for most but my Google-Fu brought me here after a PC move and attaching sound to anything other than the headphone jack for the first time in a loooong time. Could only see S/PIDF out for an output option.
Just wanted to leave this for anyone else digging for an answer.
The fix for me was to change the PulseAudio configuration profile to Built-in Audio Analog Surround 5.1 Output + Analog Stereo Input.
Yes, I know it's an old box but it runs ;-)
On Ubuntu 20.04 LTS with Gnome I've had one incident so far where pulseaudio only sends output to the last audio device even when editing settings via the Sound settings dialog. Restarting pulseaudo service was enough to get the two resynchronized.
Never had this problem with Cinnamon. I switched to Gnome a few weeks ago as work will be switching soonish.
I like to suggest the following approach if you would like a shortcut to cycle through audio output devices (inspiration from this Linux Mint Forums topic):
Create a bash script in
/usr/local/bin/
:Copy and paste the following in the script:
Save and close.
Execute the following command to change permissions for the script:
Run the script using to ensure that it works:
You should get a notification saying the audio device is switched.
Create a shortcut from the Settings providing the following config:
I had the same issue and nothing worked, then I noticed that where you set Ubuntu mirrors, the options for universe, restricted and multiverse are turned off. Once enabled I have updated and Ubuntu pulled down Toshiba proprietary firmware for my Intel Audio Conexant...all working now.
sudo apt-get remove --purge alsa-base
sudo apt-get remove --purge pulseaudio
sudo apt-get install alsa-base
sudo apt-get install pulseaudio
sudo alsa force-reload then reboot your system.