You are on page 1of 10

Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?

t=316193

Linux Mint Forums


 Quick links  FAQ  Register  Login

 Board index ‹ Main Edition Support ‹ Hardware Support 

Internal microphone not working on any distro, any kernel


Forum rules
Before you post please read how to get help

 19 posts • Page 1 of 1
Post Reply   Search this topic…  
Salram
Level 1

Internal microphone not working on any distro, any kernel


 Mon Apr 06, 2020 6:16 am

Hello everyone, this is a problem that I have been trying to solve for a while. I've tried a lot of distros and versions (Ubuntu,
Mint, MX, Elementary, Deepin,
My problem is, basically, that Linux is not capturing my voice, either because Linux can't detect my mic or the voice.
I've done many tests, and I have discovered some of the most unusual things.
First of all, my PC is a laptop (Lenovo ideapad 320) and my sound card is HDA Intel PCH (Realtek Generic).
I have to say my mic works perfectly on my Windows, even when I install any distro in a virtual machine, it works perfectly
too.
Then, the case is that, in general, what happens is that Linux detects the microphone as hardware, but the only thing it emits
is noise.
I have tried everything I have found on the internet. Solutions with "alsamixer", "pavucontrol", ...
The only one that usually works is to silence the right in "pavucontrol", but even so that suddenly fails.
In fact, here comes the strange thing: In Ubuntu 18, the "solution" of pavucontrol works almost perfectly, it detects the input
of the microphone and that of the headphones when I connect them, but in Ubuntu 19 it no longer detects the headphones,
and there if I dont know what to do.
Something even stranger was the case of "Deepin", which perfectly recognized the input with the pre-installed Deepin
recorder, but it does not recognize me in the other applications ...
So... what more can I do? Why virtual machines works fine but it doesn't in the real one? Why happened that about Deepin?
I'm desperate with this topic.

MrEen
Level 22

Re: Internal microphone not working on any distro, any kernel


 Mon Apr 06, 2020 4:10 pm

Hi Salram, and welcome to the forum.

If that's a digital mic on that Ideapad, you'll probably need to wait for Mint 20 (Ubuntu 20.04) to come out. There's a big
change in the audio driver happening over the course of the past several months and everything should be in place by then.

Let's check some outputs to see if this is indeed your issue: aplay -l , dmesg | grep snd and
pacmd list-sources

By continuing to use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK

1 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

My sound fix tips for Linux Mint



Salram
Level 1

Re: Internal microphone not working on any distro, any kernel


 Tue Apr 07, 2020 5:42 am

So Ubuntu 20 could be my solution for this then? Because I've been trying Ubuntu 19 and it wasn't still ok.
aplay -l output:

CODE: SELECT ALL

**** List of PLAYBACK Hardware Devices ****


card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]

dmesg | grep snd output:

CODE: SELECT ALL

[ 12.649649] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])


[ 12.731400] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=1 (0x14/0x0/0x0/0x0/0x0) ty
[ 12.731406] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 12.731411] snd_hda_codec_generic hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 12.731414] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0
[ 12.731417] snd_hda_codec_generic hdaudioC0D0: inputs:
[ 12.731421] snd_hda_codec_generic hdaudioC0D0: Mic=0x19
[ 12.731426] snd_hda_codec_generic hdaudioC0D0: Internal Mic=0x12

pacmd list-sources output:

CODE: SELECT ALL

2 source(s) available.
index: 0
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1030
volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 0,00 ms


MrEen
Level 22

By continuing to use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK
Re: Internal micropho

2 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

 Tue Apr 07, 2020 3:48 pm

One more output please: amixer

I'm hopeful we can get this working. I've got 2 other threads going with the same issue, so I'm betting the same "fix" will work
for everyone.

I'm assuming you're running a 5.3 kernel. You can check with uname -r . Maybe it would even be better to include the
output of inxi -Fxz

My sound fix tips for Linux Mint



Salram
Level 1

Re: Internal microphone not working on any distro, any kernel


 Tue Apr 07, 2020 4:08 pm

I really hope to solve this problem. I've spent like a month trying to solve for myself and I'm tired.
Solutions for others are not useful for me. But it's so weird why my mic is working perfectly on Windows and any Linux on a
virtual machine under Windows.

amixer output:

CODE: SELECT ALL

Simple mixer control 'Master',0


Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [100%] [on]
Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 19503 [30%] [on]
Front Right: Capture 19503 [30%] [on]

inxi -Fxz output:

CODE: SELECT ALL

System: Host: mx Kernel: 4.19.0-6-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0


Desktop: Xfce 4.14.2 Distro: MX-19.1_x64 patito feo February 15 2020
base: Debian GNU/Linux 10 (buster)
Machine: Type: Laptop System: LENOVO product: 80XH v: Lenovo ideapad 320-15ISK
serial: <filter>
Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 WIN serial: <filter> UEFI: LENOVO
v: 4WCN37WW date: 12/04/2017
Battery: ID-1: BAT0 charge: 29.0 Wh condition: 29.0/30.6 Wh (95%) model: CPT-COS L16C2PB2
status: Full
CPU: Topology: Dual Core model: Intel Core i3-6006U bits: 64 type: MT MCP arch: Skylake
rev: 3 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 15936
Speed: 500 MHz min/max: 400/2000 MHz Core speeds (MHz): 1: 529 2: 561 3: 568 4: 594
Graphics: Device-1: Intel HD Graphics 520 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0


MrEen
Level 22
By continuing to use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK

3 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

Re: Internal microphone not working on any distro, any kernel


 Tue Apr 07, 2020 4:22 pm

Ahh, you're still using MX.

If this is a Digital Microphone Array, we're not going to be able to solve this at this time, but it's possible it isn't. Do you see 2
or 4 screens covering microphones on the laptop? Or just a single one?

I'm going to take a stab in the dark and see if this fixes it:

CODE: SELECT ALL

sudo tee /etc/modprobe.d/snd-hda-intel-dmic.conf <<<'options snd_hda_intel model=inv-dmic'

Reboot after running that and see if the mic works.

My sound fix tips for Linux Mint



Salram
Level 1

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 6:23 am

 MrEen wrote: ↑
Ahh, you're still using MX.

If this is a Digital Microphone Array, we're not going to be able to solve this at this time, but it's possible it isn't. Do you see 2
or 4 screens covering microphones on the laptop? Or just a single one?

I'm going to take a stab in the dark and see if this fixes it:

CODE: SELECT ALL

sudo tee /etc/modprobe.d/snd-hda-intel-dmic.conf <<<'options snd_hda_intel model=inv-dmic'

Reboot after running that and see if the mic works.

Sadly it didn't work, and I don't understand what you mean with 2 or 4 screens covering microphones.
I'm on Linux Mint again, tired of MX Linux which was giving me even more issues.

Now, my inxi -Fxz output is:

CODE: SELECT ALL

System:
Host: MintJavi Kernel: 5.0.0-32-generic x86_64 bits: 64 compiler: gcc
v: 7.4.0 Desktop: Cinnamon 4.4.8 Distro: Linux Mint 19.3 Tricia
base: Ubuntu 18.04 bionic
Machine:
Type: Laptop System: LENOVO product: 80XH v: Lenovo ideapad 320-15ISK
serial: <filter>
Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 WIN serial: <filter>
UEFI: LENOVO v: 4WCN37WW date: 12/04/2017
Battery:
ID-1: BAT0 charge: 28.6 Wh condition: 28.6/30.6 Wh (94%)
model: CPT-COS L16C2PB2 status: Full
CPU:
Topology: Dual Core model: Intel Core i3-6006U bits: 64 type: MT MCP
By continuing to use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK

4 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

MrEen
Level 22

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 11:07 am

Open the Update Manager and apply the kernel upgrade (to 5.3.0-something) then reboot and run dmesg | grep snd .
Then I'll know for sure if you have a mic array.

The screens I referred to are little grilles usually. Probably three little bars that you could stick a pin in between but not much
else. Or just a tiny pinhole. Once I see the dmesg output with the 5.3+ kernel I'll know anyway so don't worry about it.

My sound fix tips for Linux Mint



Salram
Level 1

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 4:07 pm

"dmesg | grep snd" output:

CODE: SELECT ALL

[ 12.657469] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])


[ 12.986513] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=1 (0x14/0x0/0x0/0x0/0x0) ty
[ 12.986516] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 12.986519] snd_hda_codec_generic hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 12.986521] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0
[ 12.986522] snd_hda_codec_generic hdaudioC0D0: inputs:
[ 12.986525] snd_hda_codec_generic hdaudioC0D0: Mic=0x19
[ 12.986527] snd_hda_codec_generic hdaudioC0D0: Internal Mic=0x12

I've been testing and Linux Mint is capturing my voice with headphones, what is good and one less problem.
So now the problem is my internal mic, which is recognized but it's not capturing my voice, only noise.
Although when I click or cough, or even if I speak very loud, it captures the input (although it is impossible to understand) but
the noise is above all.
By the way, thanks for keep helping me.

MrEen
Level 22

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 4:25 pm

You're quite welcome.

If that dmesg output was with the 5.3 kernel, then I think you're safe from the Digital Mic issue.

Time for a new path. I'm really really hoping this is going to give us good info. Let's see the output of aplay -l and
hopefully not see the same output that you had on MX like this:

CODE: SELECT ALL

**** List of PLAYBACK Hardware Devices ****


card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA
By continuing to use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK
Subdevices: 1/1

5 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

Subdevice #0: subdevice #0


card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0

What I'm hoping for is is that this line changes:

CODE: SELECT ALL

card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog]

to something more like this:

CODE: SELECT ALL

card 0: Generic [HD-Audio Generic], device 0: ALC221 Analog [ALC221 Analog]

If we can discover which ALC number is in that machine, I can hopefully find a fix for this. If not, I'll take some guesses
anyway and hopefully stumble across the appropriate fix.

My sound fix tips for Linux Mint



MrEen
Level 22

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 4:29 pm

I just reread your original post. This part caught my attention:

CODE: SELECT ALL

The only one that usually works is to silence the right in "pavucontrol", but even so that suddenly fails.
In fact, here comes the strange thing: In Ubuntu 18, the "solution" of pavucontrol works almost perfectly, it d

Let's see the output of amixer and pacmd list-sources now that you're on Mint please.

My sound fix tips for Linux Mint



Salram
Level 1

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 5:32 pm

First of all, I have to say I already set the front-right channel to 0% on pavucontrol here on Mint to be able to capture my
voice temporally.
Now when I switch between internal mic and headphones, everything is ok, but when the switch is from headphones to
internal mic, it's not capturing my voice again so I have to set again front-right channel to 0% and it's annoying.
Also, this "fix" is not consistent enough, some applications suddenly stops capturing my voice because of this.

amixer output:

By continuing
CODE: SELECT ALLto use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK

6 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

Simple mixer control 'Master',0


Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 0 [0%] [-65.25dB] [off]
Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch

pacmd list-sources output:

CODE: SELECT ALL

2 source(s) available.
index: 0
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause:
priority: 1030
volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 0,00 ms


MrEen
Level 22

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 5:40 pm

I'm going to be tied up for a bit, but I may be able to find a solution. I think we should be able to change a file so the mic
settings are always mono.

My sound fix tips for Linux Mint



Salram
Level 1

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 5:46 pm

Don't worry, I have it under control for now.


Only one question, do you really think this problem will be fixed with Ubuntu 20?
And does it usually take a long time to get to Linux Mint?

MrEen
Level 22

Re: Internal microphone not working on any distro, any kernel


 By
Wedcontinuing to use
Apr 08, 2020 5:52 this website, you consent to the use of cookies in accordance with our Cookies Policy. OK

7 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

The Mint 20 fix is for Digital Microphones. A different issue than you're experiencing.

Your issue is a mono mic trying to record in stereo and I just need to find a way to default to a 0-somenumber setting.

EDIT: Oops, a 97-0 setting for how you're set now

My sound fix tips for Linux Mint



Salram
Level 1

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 6:22 pm

Ok then.
I've been testing, and when I'm using Discord everything goes right with this setting.
But when I'm recording and audio from Whatsapp web, my voice suddenly cuts out.
It's not the browser, because I've used Hangouts too and everything is fine.
Anyway, I think that if I can change default settings, this should fix everything, for every distro.

MrEen
Level 22

Re: Internal microphone not working on any distro, any kernel


 Wed Apr 08, 2020 6:25 pm

Okay, I found something that I'm hoping will work, but I don't know the syntax exactly, so it may take a few efforts to get it
right.

In the terminal enter


xed admin:///usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf and when
the file opens find this section:

CODE: SELECT ALL

[Element Capture]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

Change it to this:

CODE: SELECT ALL

[Element Capture]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left

Save and close the file, ignore the terminal warnings and reboot.

If that doesn't work, one of these other edits might make it work:

CODE: SELECT ALL

[Element Capture]
switch = mute
By continuing
volume = merge to use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK

8 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

override-map.1 = all
override-map.2 = all-left,all-left

CODE: SELECT ALL

[Element Capture]
switch = mute
volume = merge
override-map.1 = all-left
override-map.2 = all-left,all-left

CODE: SELECT ALL

[Element Capture]
switch = mute
volume = merge
override-map.1 = all-left
override-map.2 = all-left

Reboot between each change.

Good luck.

My sound fix tips for Linux Mint



Salram
Level 1

Re: Internal microphone not working on any distro, any kernel


 Thu Apr 09, 2020 7:28 am

Thank you so much! It worked!


Now I just wanna know how to set a default volume input, because when I switch between internal and headsets the volume
levels are being reseted.
Anyway, this has been an achievement.

Worked with:

CODE: SELECT ALL

[Element Capture]
switch = mute
volume = merge
override-map.1 = all-left
override-map.2 = all-left

EDIT: Now my headset microphone is not working


This is hell

MrEen
Level 22

Re: Internal microphone not working on any distro, any kernel


 Thu Apr 09, 2020 6:52 pm

 Salram wrote: ↑
EDIT: Now my headset microphone is not working
This is hell
By continuing to use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK

9 of 10 04/02/21, 3:54 pm
Internal microphone not working on any distro, any ke... https://forums.linuxmint.com/viewtopic.php?t=316193

Is it due to the right side being turned down?

I know this is a pain in the you know what. I'm trying to think of another way around all of this, but I'm not sure I'll be able to
come up with something. Once the Capture was set to all-left, the right side was dropped to zero. Changing to the headset
mic uses the all-left,all-right setting, but doesn't turn the volume back up on that side.

AHA! I have a better idea.

Run this to set the levels for the Internal Mic:

CODE: SELECT ALL

amixer set 'Capture' 100%,0%

Run this when you want to use the Headset Mic:

CODE: SELECT ALL

amixer set 'Capture' 100%,100%

Adjust the percentage levels as you see fit. Assuming it works for you, you could tie these to keyboard shortcuts to simplify
things.

You'll want to undo the change to /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf

Good luck.

My sound fix tips for Linux Mint



  19 posts • Page 1 of 1
Post Reply   

 Return to “Hardware Support” Jump to 

 Board index  Contact us  Delete cookies All times are UTC-04:00

Powered by phpBB® Forum Software © phpBB Limited


Privacy | Terms

By continuing to use this website, you consent to the use of cookies in accordance with our Cookies Policy. OK

10 of 10 04/02/21, 3:54 pm

You might also like