Skip to content

Instantly share code, notes, and snippets.

@Therises
Last active September 16, 2024 19:24
Show Gist options
  • Select an option

  • Save Therises/d2e91c81af1574f9069635d520fdc7ec to your computer and use it in GitHub Desktop.

Select an option

Save Therises/d2e91c81af1574f9069635d520fdc7ec to your computer and use it in GitHub Desktop.
Fix microphone on Lenovo IdeaPad 320 on Ubuntu 18.04

In /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf and /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf:

  • Under [Element Internal Mic Boost] set volume to zero.
  • Under [Element Int Mic Boost] set volume to zero.
  • Under [Element Mic Boost] set volume to zero

Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

  $ pacmd list-sources | grep 'name:.*input'

Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:

`load-module module-remap-source source_name=record_mono master=INPUT_NAME master_channel_map=front-left channel_map=mono`
`set-default-source record_mono`

Then restart PulseAudio:

  $ pulseaudio -k
  $ pulseaudio --start
@marzenazasinska
Copy link
Copy Markdown

Does anyone know if this fix works for Ubuntu 20.04 LTS too? I noted some mentioned fields to have value off in this version and was not sure if it should move to zero. Besides that I also got a message saying daemon was not running when I tried to tun pacmd list-sources

Yes it does, however I had to add to the startup a command to refresh the pulseaudio to actually make it work. Now it does.

@VitaliiHlapshun
Copy link
Copy Markdown

Does anyone know if this fix works for Ubuntu 20.04 LTS too? I noted some mentioned fields to have value off in this version and was not sure if it should move to zero. Besides that I also got a message saying daemon was not running when I tried to tun pacmd list-sources

Yes it does, however I had to add to the startup a command to refresh the pulseaudio to actually make it work. Now it does.

Yes, the same in my situation

@rafwell
Copy link
Copy Markdown

rafwell commented Apr 12, 2021

Your a god!!!!!!!!

@tmro2000
Copy link
Copy Markdown

Thank you! Works on Ubuntu 20.10

@MashukeAlam
Copy link
Copy Markdown

Man! Take a bow! God bless you!

This problem was bugging me causing to switch back to PC, but now it's fixed!

Thanks bruh! <3

@MashukeAlam
Copy link
Copy Markdown

one minor problem though, there will be no back-ticks (`) in the second last command which will be pasted in default.pa file.

@MashukeAlam
Copy link
Copy Markdown

@nasatome how did you manage to get it to show up in chrome? I'm on firefox and having the same issue

Go to Settings -> Privacy and Security -> Site Settings -> Microphone -> Then select your microphone from the top drop down menu.

Thanks

@Mr-Saxobeat
Copy link
Copy Markdown

Thanks! It worked!

@mutlucan96
Copy link
Copy Markdown

This works but a week later, it reverts to the original and I had to reapply this fix again. Is there any permanent solution? Is there a bug report on Ubuntu Launchpad so I can vote? (I couldn't find it) How come Ubuntu haven't fixed this for years?

@valsonpereira
Copy link
Copy Markdown

@Therises thanks!!! This really works

@Mr-Saxobeat
Copy link
Copy Markdown

Hi, at first it worked for me. But after restart all the config got back and the microphone was not working anymore.
As I needed to install Linux Mint, I was with the same issue, and the Mint community says to install PavuControl.
Here, running Mint, worked fine and did not reseted.

The related post with instructions:
https://forums.linuxmint.com/viewtopic.php?p=1872455#p1872455

@parmanand99
Copy link
Copy Markdown

Does anyone know if this fix works for Ubuntu 20.04 LTS too? I noted some mentioned fields to have value off in this version and was not sure if it should move to zero. Besides that I also got a message saying daemon was not running when I tried to tun pacmd list-sources

Yes it does, however I had to add to the startup a command to refresh the pulseaudio to actually make it work. Now it does.

can you show how you made the startup command, actually mine was not working.

@vineetStartele
Copy link
Copy Markdown

Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

$ pacmd list-sources | grep 'name:.*input'
Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:

load-module module-remap-source source_name=record_mono master=INPUT_NAME master_channel_map=front-left channel_map=mono
set-default-source record_mono
Then restart PulseAudio:

$ pulseaudio -k
$ pulseaudio --start
I followed this instructions internal mic started working fine in ubuntu 20.04.2

@vineetStartele
Copy link
Copy Markdown

Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

$ pacmd list-sources | grep 'name:.*input'
Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:

load-module module-remap-source source_name=record_mono master=INPUT_NAME master_channel_map=front-left channel_map=mono
set-default-source record_mono
Then restart PulseAudio:

$ pulseaudio -k
$ pulseaudio --start
I followed this instructions internal mic started working fine in ubuntu 20.04.2

@coneking
Copy link
Copy Markdown

Thanks!
Works for me on Lenovo T14 and Centos 7.9!

@SMXaS
Copy link
Copy Markdown

SMXaS commented Aug 19, 2021

Still works, great work

@mohammadvazirpanah
Copy link
Copy Markdown

Thanks 🥇 Works for me on Lenovo ideapad-330

@guptaharsh13
Copy link
Copy Markdown

Thank you so much.
It works for me on Lenovo Idepad 330.

@suryakumaran2611
Copy link
Copy Markdown

after restart remapped microphoine is gone and have to restart pulseaudio again .. any fix for this?

@VitaliiHlapshun
Copy link
Copy Markdown

VitaliiHlapshun commented Sep 23, 2021 via email

@vvitorveloso
Copy link
Copy Markdown

vvitorveloso commented Oct 20, 2021

thanks, finally got my mic working.
I made a script to automate the process
my contribution to your great finding :)

sudo cp /etc/pulse/default.pa /etc/pulse/default.pa.bkp
#undo
#sudo cp /etc/pulse/default.pa.bkp /etc/pulse/default.pa

echo " " | sudo tee -a /etc/pulse/default.pa
echo '############################### FIX MIC FOR LENOVO 320' | sudo tee -a /etc/pulse/default.pa
echo load-module module-remap-source source_name=record_mono master=$(pacmd list-sources | grep 'name:.*input'| cut -d"<" -f2 |cut -d">" -f1) master_channel_map=front-left channel_map=mono | sudo tee -a /etc/pulse/default.pa
echo set-default-source record_mono | sudo tee -a /etc/pulse/default.pa

pulseaudio -k
sleep 2
pulseaudio --start

@cesar-reb
Copy link
Copy Markdown

cesar-reb commented Nov 23, 2021

Thanks! Really fixed here using Ubuntu 20.04!
Using 'volume = 0' under [Element Internal Mic Boost] and [Element Int Mic Boost], in '/usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf' -> after reboot would start the mic with no volume, and would need to increase it with alsamixer.
Solved it by using both with 'volume = 100'.

@Johnfskywalker
Copy link
Copy Markdown

I can´t speak in my lenovo IDEAPAD 320,, but I can hear everything, (youtube/spotify/etc) iḿ using Endeavour OS, someone can help?

@jatin192
Copy link
Copy Markdown

alsa_input.pci-0000_00_1f.3.analog-stereo

@SajadJalilian
Copy link
Copy Markdown

SajadJalilian commented Mar 5, 2023

Thank you so much. You helped me to use Linux again!
It works on "Mx Linux 21" on "Lenovo Ideapad 330"

@aristosh
Copy link
Copy Markdown

This works but a week later, it reverts to the original and I had to reapply this fix again. Is there any permanent solution? Is there a bug report on Ubuntu Launchpad so I can vote? (I couldn't find it) How come Ubuntu haven't fixed this for years?

Not only Ubuntu, this also happens with Fedora.

@NimaDolatabadi
Copy link
Copy Markdown

this fix does not work on ubuntu 22.04. please help

@Baker-B
Copy link
Copy Markdown

Baker-B commented Oct 27, 2023

this fix does not work on Ubuntu 22.04 for me too. please help

@NimaDolatabadi
Copy link
Copy Markdown

NimaDolatabadi commented Oct 31, 2023

Soloution!!!!!!!!!!!

I was just wandering around in all the forums to solve. inside canonical bug report some just said after doing the fix, just suspend the ubuntu and wake it up. i thought it is silly but gave it a shot and bingo my microphone working good as new.
it really is silly but it works.

I hope all the problems be sovled with it.

Regards

@texadactyl
Copy link
Copy Markdown

texadactyl commented Jan 20, 2024

This procedure worked for my Acer Aspire 5 A515-44-R2SA laptop running Xubuntu 22.04 up-to-date with these audio characteristics:
Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A
Device-3: AMD Family 17h HD Audio driver: snd_hda_intel
Sound Server-1: ALSA v: k6.5.0-14-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes

I suspect that a recent Ubuntu base update mangled my analog-input-internal-mic.conf file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment