Skip to content

Microphone no longer works when headphones are plugged in (PulseAudio)

Recently my microphone stopped working when the headphones are plugged in the 3.5mm jack port.

My headphones don't include a microphone. I wish to use the one embedded in my laptop. pavucontrol shows the internal microphone even when the headphones are plugged in, but it detects no sound coming from it.

How can I debug and fix the issue?

I'm using Pulseaudio 14.2 on KDE Plasma 5.21.5, Linux 5.12.6-arch1-1 on an x86-64 Lenovo Thinkpad E495 (AMD Ryzen 5 3500U). If I understand the output of lshw, the audio card is "Family 17h (Models 10h-1fh) HD Audio Controller" and it uses the driver snd_hda_intel.

4 points18 comments
Open on Reddit
About this post
Posted
Archived
Score
4 · 68% up
Kind
Text
ID
nmdu3g

Author

15
posts
23
comments
1
media
View profile

19 comments

Sounds like you're plugging a 3-conductor plug (R, L, Ground) into a 4-conductor jack (R, L, Mic, Ground).
The 4th pin senses a signal, even though that's just the left headphone.

You need a 3.5mm microphone adapter, (Tip Ring Ring Sleeve) TRRS male -to- (Tip Ring Sleeve) TRS female "Y" adapter.

They'll have'em in the electronics section. Look for a short 4" long cord with 4 conductors on one end, and the other has headphone / microphone logos on the tails. Something like this -- https://www.walmart.com/ip/Headset-Adapter-Microphone-and-Headphone-Splitter-3-5mm-Male-Aux-to-3-5mm-Female-Audio-Mic-Combo-Jack-Y-Cable-for-Laptop-PC/786891596

3 points

I took a picture of my headphones' jack: https://i.imgur.com/qzQQFrz.png Yes, it has only three pieces (L, R, Ground). There's no way to tell my audio card to ignore the fourth pin? Maybe for a very quick hack, I could add some tape at the base of the jack to shield the fourth pin...

I'm also curious why it used to work last week. It was the same headphones in the same laptop.

I'm going to try some different headphones soon and will update with the results.

1 points

I tried using some headphones with 4 pins (they embed a microphone), but the issue is still there.

The microphone of the headphones work, but the internal speakers and microphone of my laptop become "unavailable"/"unplugged" and stop working.

1 points

Did you try to manually specify your microphone at /etc/pulse/default.pa or ~/.config/pulse/default.pa.

It works here. My case, where hw:1 is my front microphone jack:

load-module module-alsa-source device=hw:1
load-module module-remap-source master=alsa_input.hw_1 master_channel_map=front-left,front-right channels=2 channel_map=mono,mono #I had to do this remap, since some applications started to have trouble finding my mic.
set-default-source alsa_input.hw_1.remapped #I have more than one microphone, so I need to specify which one is my default.
2 points

No, I haven't tried, I'm a newbie at Audio on Linux. How can I find the name of my device and of the master?

1 points

Go back to the scenario where your mic works and run this:

pactl list sources | /usr/bin/grep  -- 'device.string\|device.master_device'

But, as you said in the other comment, it used to work last week, so you may not need to do all that. If you can't find any solution, this can be your last resort..

3 points

I just noticed that the laptop microphone and speakers (called "Speakers" and "Internal microphone") become "unplugged" and "unavailable" when the headphones are plugged in.

Everything used to work fine in the past. I just tried to reboot, but it didn't help.

When the headphones are NOT connected:

Output of pactl list sources:

Source #1
[...]
        Ports:
            analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, availability unknown)
            analog-input-mic: Microphone (type: Mic, priority: 8700, not available)
[...]

Output of pactl list sinks:

Sink #0
[...]
    Ports:
            analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability unknown)
            analog-output-headphones: Headphones (type: Headphones, priority: 9900, not available)
[...]

When the headphones are connected:

Output of pactl list sources:

Source #1

[...]
    Ports:
            analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, not available)
            analog-input-mic: Microphone (type: Mic, priority: 8700, available)
[...]

Output of pactl list sinks:

Sink #0
[...]
    Ports:
            analog-output-speaker: Speakers (type: Speaker, priority: 10000, not available)
            analog-output-headphones: Headphones (type: Headphones, priority: 9900, available)
[...]
2 points

Are you using rear and front jacks at the time when this occurs? PulseAudio switches between them, so, if you're using both, you need to manually specify them.

2 points

I'm really bad at this, sorry. What are rear and front jacks? My laptop has only got one 3.5mm jack port. I am using a USB-C dock, but it doesn't seem to provide a jack port.

Last week everything was working and I didn't need to manually specify anything...

EDIT: pactl list cards shows two cards. The second one is, I believe, audio over HDMI, but my monitor doesn't support anything for the audio channel. The long card name is "HD-Audio Generic at 0xd06c8000 irq 78"

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.