====== Ubuntu - Sound - Troubleshooting ====== Try this first: killall pulseaudio; pulseaudio -k ; rm -r ~/.config/pulse/* ; rm -r ~/.pulse* Wait ten seconds, then run this: pulseaudio --start ---- Should the approach above fail to correct the problem (it is only known to work on some variations), you can try this next: killall pulseaudio; pulseaudio -k; rm -r ~/.config/pulse/* ; rm -r ~/.pulse* wait 10 seconds, then reboot (putting the machine to sleep is not enough -- fully power it off and then back on). **NOTE:** Make sure to save your work first. ---- ====== Get info from dmesg ====== dmesg | grep "snd\|sound" -i returns: [ 7.673796] snd_hda_intel 0000:09:00.1: Disabling MSI [ 7.673802] snd_hda_intel 0000:09:00.1: Handle vga_switcheroo audio client [ 7.673864] snd_hda_intel 0000:0b:00.4: enabling device (0000 -> 0002) [ 7.689821] snd_hda_codec_realtek hdaudioC2D0: autoconfig for ALC1220: line_outs=3 (0x1b/0x15/0x16/0x0/0x0) type:line [ 7.689823] snd_hda_codec_realtek hdaudioC2D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 7.689824] snd_hda_codec_realtek hdaudioC2D0: hp_outs=1 (0x14/0x0/0x0/0x0/0x0) [ 7.689825] snd_hda_codec_realtek hdaudioC2D0: mono: mono_out=0x0 [ 7.689825] snd_hda_codec_realtek hdaudioC2D0: dig-out=0x1e/0x0 [ 7.689826] snd_hda_codec_realtek hdaudioC2D0: inputs: [ 7.689827] snd_hda_codec_realtek hdaudioC2D0: Front Mic=0x19 [ 7.689828] snd_hda_codec_realtek hdaudioC2D0: Rear Mic=0x18 [ 7.689829] snd_hda_codec_realtek hdaudioC2D0: Line=0x1a [ 7.701710] input: HD-Audio Generic Front Mic as /devices/pci0000:00/0000:00:08.1/0000:0b:00.4/sound/card2/input11 [ 7.701824] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:0b:00.4/sound/card2/input12 [ 7.701942] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:0b:00.4/sound/card2/input13 [ 7.702061] input: HD-Audio Generic Line Out Front as /devices/pci0000:00/0000:00:08.1/0000:0b:00.4/sound/card2/input14 [ 7.702188] input: HD-Audio Generic Line Out Surround as /devices/pci0000:00/0000:00:08.1/0000:0b:00.4/sound/card2/input15 [ 7.702317] input: HD-Audio Generic Line Out CLFE as /devices/pci0000:00/0000:00:08.1/0000:0b:00.4/sound/card2/input16 [ 7.702514] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:0b:00.4/sound/card2/input17 [ 7.948602] usbcore: registered new interface driver snd-usb-audio [ 9.392299] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input18 [ 9.392341] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input19 [ 9.392431] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input20 [ 9.392471] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input21 [ 9.392507] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input22 [ 9.392553] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input23 [ 22.099789] snd_hda_codec_hdmi hdaudioC0D0: HDMI: invalid ELD data byte 7 **NOTE:** This indicates **card0** and **card2**. ---- ====== Identify the card module ====== lspci -k | grep Audio -A4 returns: 09:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1) Subsystem: Micro-Star International Co., Ltd. [MSI] GP107GL High Definition Audio Controller Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel 0a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function -- 0b:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller Subsystem: Gigabyte Technology Co., Ltd Starship/Matisse HD Audio Controller Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel **NOTE:** Often this is **snd_hda_intel**. ---- ====== Identify the cards ====== cat /proc/asound/cards* returns: 0 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfb080000 irq 124 2 [Generic ]: HDA-Intel - HD-Audio Generic HD-Audio Generic at 0xfc200000 irq 126 **NOTE:** This indicates **0** and **2**. ---- ====== Identify the card codec ====== head -1 /proc/asound/card*/codec* returns: ==> /proc/asound/card0/codec#0 <== Codec: Nvidia GPU 80 HDMI/DP ==> /proc/asound/card2/codec#0 <== Codec: Realtek ALC1220 **NOTE:** This indicates **card0** and **card2**. ---- ====== Get info from aplay ====== aplay -l returns: **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Generic [HD-Audio Generic], device 0: ALC1220 Analog [ALC1220 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 card 2: Generic [HD-Audio Generic], device 1: ALC1220 Digital [ALC1220 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 **NOTE:** This indicates **card 0** and **card 2**. ---- ===== References ===== https://help.ubuntu.com/community/SoundTroubleshootingProcedure https://answers.launchpad.net/ubuntu/+source/alsa-driver/+addquestion