Ubuntu – Ubuntu 18.04 sound output not changed properly for applications after HDMI cable plug and unplug

alsahdmisound

I noticed the audio doesn't work for Chrome or VLC apps after unplugging the HDMI cable from my TV. The system audio like the terminal bips works fine. Only the applications can't output the audio.

I installed pavucontrol and noticed the issue was coming from the output device not set properly on built in audio in the playback tab.

I think there is a bug when the audio output switch from HDMI to built-in audio, is doesn't work for application. Interestingly it works well for the system audio.

Best Answer

I did not had opportunity to connect back hdmi cable (I've noticed an issue while I was in travel in train), so I digged deeper

Here is solution (Ubuntu 18 LTS):

pulseaudio -k && rm -r ~/.config/pulse
Related Question