Headset microphone not detected by Pulse und Alsa
I have a headset (combined stereo headphones and mic) jack on my Dell PC with Ubuntu 16.04 and experienced the same problem.
First use hdajackretask check that the problem is not related to the jack:
- Press Ctrl+Alt+T to access the terminal.
- Type
sudo apt-get install alsa-tools-gui
- Once installation is complete, launch HDAJackRetask app from the dash and it should look something like this:
- Check that the jack you're trying to access is identified correctly.
- If the jack setting is incorrect, then override the incorrect setting, test that the override works and then Install boot override.
I was trying to use the the front headphone jack and it was alredy correctly detected as 'Headphone' so I had install the HD-Audio Codec to get my headphone jack to work.
- Press Ctrl+Alt+T to access the terminal.
- Type
cat /proc/asound/card*/codec* | grep Codec
in the terminal and take note of the codecs listed. - If there are multiple codecs listed, determine which one relates to your headset jack. For me there were two listed – one related the the video card (
Codec: ATI R6xx HDMI
) and another related to the sound card (Codec: Realtek ALC3861
). In my case, I was interested in the sound card because I was connecting to the PC headset jack and not a HDMI device such as a PC monitor. - Look up the HD-Audio model for your codec in HD-Audio Codec-Specific Models. For my headset jack, the best fit was the headset-mic model.
- Type
cd /etc/modprobe.d/
in the terminal. - Type
sudo cp alsa-base.conf alsa-base.conf.bak
to backup the file before editing. - Type
gksudo gedit ./alsa-base.conf
to edit the file. - Insert this line at the bottom of the file
options snd-hda-intel model={HD-Audio model for you codec}
. For example, for it me it wasoptions snd-hda-intel model=headset-mic
. - Save file and reboot.
After some more searching I found a post that told me to create /etc/modprobe.d/alsa-base.conf
with following contents:
options snd-hda-intel model=dell-headset-multi
After reboot the headset microphone showed up again and works.