I was trying to fix the crackling sounds on my ThinkPad x1 c6 I ran the following command to re-install the alsa audio driver. To do that I ran the following commands.
1) Remove the ALSA packages.
sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils
2) Reinstall the same packages.
sudo apt-get install linux-sound-base alsa-base alsa-utils
Following that Pavucntrol no longer recognizes the speaker or the headphone output and just shows a Dummy output instead.
So far I have tried the following
Tried running this command.
sudo apt-get install build-essential linux-headers-`uname -r` alsa- base alsa-firmware-loaders alsa-oss alsa-source alsa-tools alsa-tools-gui alsa-utils alsamixergui
Followed by a reboot. No effect.
This answer
https://askubuntu.com/a/863157/191299
No effect
This command
pulseaudio -k && sudo alsa force-reload
No effect
Tried running these commands
sudo apt-add-repository ppa:ubuntu-audio-dev/alsa-daily sudo apt-get update sudo apt-get install linux-image-extra-`uname -r` sudo apt-get install --reinstall linux-image-extra-`uname -r` sudo apt-get install oem-audio-hda-daily-dkms
No effect.
This command
sudo apt-add-repository ppa:ubuntu-audio-dev/alsa-daily sudo apt-get install oem-audio-hda-daily-dkms
No effect.
Adding one of the following lines in
/etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=auto
or
options snd-hda-intel model=thinkpad
Some useful outputs are mentioned below
~$ lspci -nnk | grep -A2 Audio 00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) Subsystem: Lenovo Sunrise Point-LP HD Audio [17aa:225c] Kernel modules: snd_hda_intel 00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21)
~$ pacmd list-cards 0 card(s) available.
The output from the Ubuntu sound debug instructions
http://alsa-project.org/db/?f=7e809df97a3b032337389a16303ac1158e3e7581