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
@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