Internal Microphone not working anymore

Hi,

I have an Acer laptop with built-in mic and webcam. I have looked in the internet but can’t get me internal mic working in 42.3 with KDE. It worked fine in 42.2 and also in 42.3 for a while.

Here is my /usr/sbin/alsa-info.sh: https://paste.opensuse.org/86745560

Many thanks

Nothing muted? If you don’t have installed already, consider using pavucontrol (graphical PulseAudio volume control utility) to adjust as necessary.

This should show if mic muted…

amixer -D 'hw:0'

Hi,

I think that nothing is muted.


amixer -D 'hw:0' | grep Capture
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
  Capture channels: Front Left - Front Right
Simple mixer control 'Capture',0
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 20 [65%] [13.50dB] [on]
  Front Right: Capture 20 [65%] [13.50dB] [on]
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [on]
  Capture channels: Front Left - Front Right

Also, in the “alsamixer” seems to be fine.

Level not turned down? Can you run it unfiltered like this?

amixer -D 'hw:0'

Also, check PA active profile…

pacmd list-cards| egrep "active|output"

If necessary, you can set graphically with pavucontrol.


amixer -D 'hw:0'
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 70 [80%] -12.75dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone Mic',0
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Mono
  Limits: Playback 0 - 31
  Mono: Capture [off]
  Front Left: Playback 0 [0%] -34.50dB] [off]
  Front Right: Playback 0 [0%] -34.50dB] [off]
Simple mixer control 'Headphone Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Speaker',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 'PCM',0                                                                                                                                              
  Capabilities: pvolume                                                                                                                                                   
  Playback channels: Front Left - Front Right                                                                                                                             
  Limits: Playback 0 - 255                                                                                                                                                
  Mono:                                                                                                                                                                   
  Front Left: Playback 255 [100%] [0.00dB]                                                                                                                                
  Front Right: Playback 255 [100%] [0.00dB]                                                                                                                               
Simple mixer control 'IEC958',0                                                                                                                                           
  Capabilities: pswitch pswitch-joined                                                                                                                                    
  Playback channels: Mono                                                                                                                                                 
  Mono: Playback [off]                                                                                                                                                    
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 20 [65%] [13.50dB] [on]
  Front Right: Capture 20 [65%] [13.50dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Internal Mic',0
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Mono
  Limits: Playback 0 - 31
  Mono: Capture [on]
  Front Left: Playback 0 [0%] -34.50dB] [off]
  Front Right: Playback 0 [0%] -34.50dB] [off]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'

pavucontrol seems to be fine.

The mic and mic boost levels are turned down.

But how can I increase it? pavucontrol and alsamixer seems to be fine.

Run alsamixer and press F6 to select your system card. Now the actual hardware controls should be exposed. Use the arrow keys to navigate to the mic level, unmute it and adjust the level upwards. If necessary, adjust the mic boost level as well.

I changed it but still without recording level.

I can’t change that “auto-mute” enabled there.

https://s10.postimg.org/j0w1b56ix/Screenshot_20180312_203845.png

Can you not simply toggle it with the ‘M’ key?

Nope, I tried :frowning:

Does your internal mic work when the headphones are unplugged? It could be PA working against you perhaps.

is the same with and without the headphones :frowning:

Your opening comments about it working as expected for a while with Leap 42.3 makes me wonder if there is some hardware fault now. Some issue with the jack (or associated circuitry) perhaps? I know that some laptops inhibit the internal mic when a headset is plugged in and the typical headphone/headset behaviours discussed quite well here…

http://voices.canonical.com/david.henningsson/category/pulseaudio/

The other possibility is a kernel regression. We’ll see what our sound guru oldcpu has to say about this problem.

Can you run the diagnostic script /usr/sbin/alsa-info.sh again ? and post here the link. The first link you posted was clear that you mic was misconfigured. Note:

]



  1. **Simple mixer control 'Headphone Mic',0**
   1.   Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive 
  1.   Capture exclusive group: 0 
  1.   Playback channels: Front Left - Front Right 
  1.   Capture channels: Mono 
  1.   Limits: Playback 0 - 31 
  1.   Mono: **Capture [off]**
   1.   Front Left: Playback 0 [0%] -34.50dB] **[off]**
   1.   Front Right: Playback 0 [0%] -34.50dB] **[off]**
 

...



  1. **Simple mixer control 'Headphone Mic Boost',0**
   1.   Capabilities: volume 
  1.   Playback channels: Front Left - Front Right 
  1.   Capture channels: Front Left - Front Right 
  1.   Limits: 0 - 3 
  1.   Front Left: 0 **[0%]**
 [0.00dB]   1.   Front Right: 0 **[0%]**
 [0.00dB] 

...



  1. **Simple mixer control 'Internal Mic',0**
   1.   Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive 
  1.   Capture exclusive group: 0 
  1.   Playback channels: Front Left - Front Right 
  1.   Capture channels: Mono 
  1.   Limits: Playback 0 - 31 
  1.   Mono: Capture [on] 
  1.   Front Left: Playback 0 **[0%] **
-34.50dB] **[off]**   1.   Front Right: Playback 0 **[0%]**
 -34.50dB]** [off]** 

...



  1. **Simple mixer control 'Internal Mic Boost',0**
   1.   Capabilities: volume 
  1.   Playback channels: Front Left - Front Right 
  1.   Capture channels: Front Left - Front Right 
  1.   Limits: 0 - 3 
  1.   Front Left: 0 **[0%]**
 [0.00dB]   1.   Front Right: 0 **[0%]**
 [0.00dB] 


The above illustrates boost at 0%. Capture OFF. Internal Mic Playback OFF (making capture difficult to monitor).

Maybe to ensure setting is good you could send these amixer commands:
To switch ON internal mic :


amixer -c 0 -- set 'Internal Mic' on

then to move up internal mic capture levels to about 60%


amixer -c 0 -- set 'Internal Mic' 60,60

To move up Internal mic boost to about 60%.


amixer -c 0 -- set 'Internal Mic Boost' 60

Similar, if desired to enable headphone mic capture to 60% (although I suspect this is not what you want, as you mentioned internal mic)


amixer -c 0 -- set 'Headphone Mic' on
amixer -c 0 -- set 'Headphone Mic' 60,60

To enable Headphone mic boost to 60% (again likely not what you want):


amixer -c 0 -- set 'Headphone Mic boost' 60

60% is an arbitrary number I picked for levels. You can try something else if desired.

Pay VERY careful attention to the syntax. Hopefully I did not screw it up. Please post here any errors you get with the above.

Then test sound with:


arecord -vv -f S16_LE -c2 -D hw:0,0 trynew.wav

press < ctrl c > to stop the recording.

Then try play back ‘trynew.wav’ and see if any sound ? ie


aplay trynew.wav

Only do the above with regular user permissions.

Is auto-mute an issue here ? I don’t know if that the case. Still it is EASY to change.

To enable


amixer -c 0 -- set 'Auto-Mute Mode' Enabled

To disable


amixer -c 0 -- set 'Auto-Mute Mode' Disabled 

Again, do above as regular user (in konsole/xterm).

Wonderful! It worked like a charm!


viniciusbr@linux-hwbe:~> amixer -c 0 -- set 'Internal Mic' on
Simple mixer control 'Internal Mic',0
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Mono
  Limits: Playback 0 - 31
  Mono: Capture [on]
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
viniciusbr@linux-hwbe:~> amixer -c 0 -- set 'Internal Mic' 60,60
Simple mixer control 'Internal Mic',0
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Mono
  Limits: Playback 0 - 31
  Mono: Capture [on]
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
viniciusbr@linux-hwbe:~> amixer -c 0 -- set 'Internal Mic Boost' 60
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right                                                                                                                             
  Capture channels: Front Left - Front Right                                                                                                                              
  Limits: 0 - 3                                                                                                                                                           
  Front Left: 3 [100%] [36.00dB]                                                                                                                                          
  Front Right: 3 [100%] [36.00dB]                                                                                                                                         
viniciusbr@linux-hwbe:~>     

That looks better. You finally managed to turn the internal mic on! :slight_smile:

Yeah! This forum is awesome!