You are not logged in.
I've just installed xubuntu 20.04 on my Dell Latitude 7480 laptop. Every time I plug in external devices to the 3.5mm jack, the audio output cuts off. In pavucontrol (pulse audio) the audio input device port changes to "Microphone (Plugged In)" automatically. To re-enable audio output, I have to manually change the input device port to "Headset Microphone (Plugged In)" or "Internal Microphone (Plugged In)", and then the output works as expected.
All 3 of these input device ports: "Internal Microphone (Plugged In)", "Headset Microphone (Plugged In)", "Microphone (Plugged In)" are always available to select. But selecting "Microphone (Plugged In)" results in no sound output through the connected audio device.
If no external device is plugged in, the internal speakers work as expected regardless of the input device selected because the just microphone input option changes to "Microphone (unplugged)".
I experienced this problem in ubuntu mate 20.04 as well. Has anybody experienced the same issue?
Is there a way that I can disable the audio input device from automatically changing, and keep it defaulted to 'internal mic'? Or is there something else that's causing this?
screenshot of the pavucontrol tab in question: https://imgur.com/3P1bHap.png
edit: solved by disabling the port: https://askubuntu.com/questions/715016/ … pulseaudio
Last edited by anandv96 (2020-04-27 03:48:38)
Offline
You could see if commenting this out in /etc/pulse/default.pa makes any difference:
load-module module-switch-on-connect
Offline
You could see if commenting this out in /etc/pulse/default.pa makes any difference:
load-module module-switch-on-connect
I tried this, and disabling port switch on connect, but this enables and disables both input and output.
So now every time I plug in new headphones, I have to change the output from internal speakers to plugged in headphones. Still equally cumbersome sadly. Is there anything that I can do to only keep the input constant?
Offline
Back with your original situation, at the bottom of /etc/pulse/default pa add something like this:
set-default-source alsa_input.pci-0000_00_14.2.analog-stereo
set-source-port 0 analog-input-internal-mic
Get the name (alsa_input.pci-0000_00_14.2.analog-stereo) and card number (0) by running pacmd list-sources in the terminal.
Offline
Back with your original situation, at the bottom of /etc/pulse/default pa add something like this:
set-default-source alsa_input.pci-0000_00_14.2.analog-stereo set-source-port 0 analog-input-internal-mic
Get the name (alsa_input.pci-0000_00_14.2.analog-stereo) and card number (0) by running pacmd list-sources in the terminal.
This didn't work for me either. It set the default port, but the port changed each time because the faulty port "Microphone" still had priority over the internal microphone.
So instead what I did was disable the redundant input port: https://askubuntu.com/questions/715016/ … pulseaudio
This meant that the input ports only switched between the properly working input ports of: Internal Microphone or Headset Microphone. Now the problem is fixed! Another possible solution for people could be to change the port priority without disabling the port outright.
Offline
Hey, nice solution! Well done.
Offline
MrEen wrote:Back with your original situation, at the bottom of /etc/pulse/default pa add something like this:
set-default-source alsa_input.pci-0000_00_14.2.analog-stereo set-source-port 0 analog-input-internal-mic
Get the name (alsa_input.pci-0000_00_14.2.analog-stereo) and card number (0) by running pacmd list-sources in the terminal.
This didn't work for me either. It set the default port, but the port changed each time because the faulty port "Microphone" still had priority over the internal microphone.
So instead what I did was disable the redundant input port: https://askubuntu.com/questions/715016/ … pulseaudio
This meant that the input ports only switched between the properly working input ports of: Internal Microphone or Headset Microphone. Now the problem is fixed! Another possible solution for people could be to change the port priority without disabling the port outright.
Hi - I'm having the exact same problem with Xubuntu 20.04 on a Dell XPS 15 9550. However, when I add ".backup" to analog-input-headphone-mic.conf and log out and back in, all input devices are disabled. I would love to get where you are, where internal and headset mics are still available. What file did you add ".backup" to in order to get to your solution? I attempted instead to increase the priority of the internal mic like you also suggested, but all that did was change the order that the mics are listed in the input tab of the audio mixer.
Offline
I suspect anandv96 added .backup to analog-input-mic.conf for their issue as the "Microphone (Plugged In)" was the unfriendly option.
Offline
I suspect anandv96 added .backup to analog-input-mic.conf for their issue as the "Microphone (Plugged In)" was the unfriendly option.
That's actually what I thought at first and so first tried that. Unfortunately, that didn't seem to change anything at all.
Offline
Try deleting PulseAudio's config files in ~/.config/pulse if you haven't already. Either run pulseaudio -k after that, or log out/in.
Offline
Try deleting PulseAudio's config files in ~/.config/pulse if you haven't already. Either run pulseaudio -k after that, or log out/in.
So we're on the same page, should I try this after renaming analog-input-mic.conf to analog-input-mic.conf.backup, or before?
Offline
I'd do both. Test after the first attempt to see if that alone was all you needed.
Offline
I'd do both. Test after the first attempt to see if that alone was all you needed.
Alright - got it all straightened out. Deleting all the files in ~/.config/pulse alone didn't change anything, and deleting all files in ~/.config/pulse and adding .backup to analog-input-mic.conf didn't change anything, but deleting all files in ~/.config/pulse and adding .backup to analog-input-headphone-mic.conf straightened everything out. My sound toggles between speakers and headphones seamlessly when I plug and unplug headphones in the jack, and the two other mic input options (headset, internal) are still there and work perfectly. Thanks a ton!
Offline
You're welcome.
Offline
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 570.28 KiB (Peak: 587.13 KiB) ]