No audio after update

I am sure this titles sounds familiar - its a common problem. As per usual none of the other solutions on here work.

After an update I no longer hear any audio through my headphones (using 2 audio jacks). Initially I had a weird bug where youtube, mpv, and mocp all played music and videos extremely fast. Now, for some reason, they play at normal speed but still with no audio.

Pavucontrol shows the volume sliders going up and down - so audio is happening somewhere. Pavucontrol also shows the microphone volume slider changing when I tap my microphone - so there are plenty of things working correctly. Regardless, I still hear no audio.

I have tried:

  1. Rebooting
  2. Unplugging and replugging my headset
  3. Unmuting channels on alsamixer
  4. Editing /etc/modprobe.d/alsa.conf
  5. Deleting ~/.asoundrc

Thanks for any help that people provide, this forum is very much appreciated

Info:

http://alsa-project.org/db/?f=318a5bf257dc93f1f0aeead1540adab890b42267

$ sudo dmesg | grep snd

[ 8.432582] snd_hda_intel 0000:01:00.1: Disabling MSI
[ 8.432588] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 8.557713] snd_hda_codec_realtek hdaudioC0D2: autoconfig for ALC892: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[ 8.557717] snd_hda_codec_realtek hdaudioC0D2: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 8.557718] snd_hda_codec_realtek hdaudioC0D2: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 8.557720] snd_hda_codec_realtek hdaudioC0D2: mono: mono_out=0x0
[ 8.557721] snd_hda_codec_realtek hdaudioC0D2: dig-out=0x11/0x1e
[ 8.557722] snd_hda_codec_realtek hdaudioC0D2: inputs:
[ 8.557724] snd_hda_codec_realtek hdaudioC0D2: Front Mic=0x19
[ 8.557725] snd_hda_codec_realtek hdaudioC0D2: Rear Mic=0x18
[ 8.557727] snd_hda_codec_realtek hdaudioC0D2: Line=0x1a
[ 8.557728] snd_hda_codec_realtek hdaudioC0D2: dig-in=0x1f
[ 8.605950] snd_hda_intel 0000:00:1b.0: device 1458:a002 is on the power_save denylist, forcing power_save to 0

inxi -Fxxxx

Audio: Device-1: Intel 8 Series/C220 Series High Definition Audio vendor: Gigabyte driver: snd_hda_intel v: kernel
bus ID: 00:1b.0 chip ID: 8086:8c20 class ID: 0403
Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX] vendor: ASUSTeK driver: snd_hda_intel v: kernel
bus ID: 01:00.1 chip ID: 10de:0fbc class ID: 0403
Sound Server: ALSA v: k5.10.15-1-MANJARO

Welcome to Manjaro, and thank you for posting excellent data

The Gigabyte VendorID and ProductID for the Onboard audio [1458:a002] matches to another modprobe option

model = no-front-hp

ALC889_FIXUP_FRONT_HP_NO_PRESENCE identifier - Linux source code (v5.10.15) - Bootlin

## [line 2217-2225]
	[ALC889_FIXUP_FRONT_HP_NO_PRESENCE] = {
		.type = HDA_FIXUP_PINS,
		.v.pins = (const struct hda_pintbl[]) {
			{ 0x1b, 0x02214120 }, /* Front HP jack is flaky, disable jack detect */
			{ }
		},
		.chained = true,
		.chain_id = ALC889_FIXUP_CD,
	},

## [line 2513]
SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte EP45-DS3/Z87X-UD3H", ALC889_FIXUP_FRONT_HP_NO_PRESENCE),

## [line 2560]
{.id = ALC889_FIXUP_FRONT_HP_NO_PRESENCE, .name = "no-front-hp"},

Your ALSA data confirms that Node 0x1b is for the front headphone jack and default configuration code only has one digit different to the patch

Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out

Pin Default 0x02214020: [Jack] HP Out at Ext Front

I suggest you edit your /etc/modprobe.d/alsa.conf to use this modprobe option

and maybe try removing the index=0 option too. PulseAudio should not need devices moved to the right order to work these days (I consider it is mostly reliable!)

Considering this patch relates to the headphone jack detection, you should also turn off the Auto-Mute function in ALSA

amixer --card=0 sset 'Auto Mute Mode' Disabled

And considering you mentioned audio problems happened after an update,
clearing old user settings from PulseAudio databases (and the cookie) may be needed to restore sound

rm ~/.config/pulse/*.tdb  ~/.config/pulse/cookie

reboot system after deleting these files so PulseAudio can create new files

I am not entirely certain what you are suggesting me to do, but this is what I did:

  1. Changed the contents of /etc/modprobe.d/alsa.conf to

options snd_hda_intel model=no-front-hp

  1. Ran the command amixer --card=0 sset 'Auto Mute Mode' Disabled which returned:

amixer: Unable to find simple control 'Auto Mute Mode',0

  1. Ran the command rm ~/.config/pulse/*.tdb ~/.config/pulse/cookie which was successful
  2. sudo reboot

After the reboot, nothing appears to have changed. Audio still fails.

Getting the model option corrected was the important part for getting audio to headphones working in ALSA

Please post ALSA data again - alsa-info.sh --upload - so I can check if that is working as expected

I also need to look at the ALSA mixer settings again. I can see why the amixer command didn’t work now - I missed out the dash in Auto-Mute Mode! :man_facepalming:

Please also post the full response to this command for PulseAudio data

pacmd list-cards && pacmd dump

Firstly the result of the auto-mute command:

$ amixer --card=0 sset 'Auto-Mute Mode' Disabled
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled' 

Secondly, the alsa-info:

http://alsa-project.org/db/?f=5655254b59843d3a3367b55035805c7d62bc428f

Finally, the PulseAudio data:

2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_01_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "1"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 17"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "0fbc"
		device.product.name = "GM107 High Definition Audio Controller [GeForce 940MX]"
		device.string = "1"
		device.description = "GM107 High Definition Audio Controller [GeForce 940MX]"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7310000 irq 35"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
		input:iec958-stereo: Digital Stereo (IEC958) Input (priority 55, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: no)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
		output:analog-stereo+input:iec958-stereo: Analog Stereo Output + Digital Stereo (IEC958) Input (priority 6555, available: no)
		output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: no)
		output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-21+input:iec958-stereo: Analog Surround 2.1 Output + Digital Stereo (IEC958) Input (priority 1355, available: no)
		output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: no)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-40+input:iec958-stereo: Analog Surround 4.0 Output + Digital Stereo (IEC958) Input (priority 1255, available: no)
		output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: no)
		output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-41+input:iec958-stereo: Analog Surround 4.1 Output + Digital Stereo (IEC958) Input (priority 1355, available: no)
		output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: no)
		output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-50+input:iec958-stereo: Analog Surround 5.0 Output + Digital Stereo (IEC958) Input (priority 1255, available: no)
		output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: no)
		output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-51+input:iec958-stereo: Analog Surround 5.1 Output + Digital Stereo (IEC958) Input (priority 1355, available: no)
		output:analog-surround-71: Analog Surround 7.1 Output (priority 1200, available: no)
		output:analog-surround-71+input:analog-stereo: Analog Surround 7.1 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-71+input:iec958-stereo: Analog Surround 7.1 Output + Digital Stereo (IEC958) Input (priority 1255, available: no)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
		output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
		output:iec958-stereo+input:iec958-stereo: Digital Stereo Duplex (IEC958) (priority 5555, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:iec958-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.iec958-stereo/#0: Built-in Audio Digital Stereo (IEC958)
	sources:
		alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor/#0: Monitor of Built-in Audio Digital Stereo (IEC958)
		alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
	ports:
		analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
			properties:
				
		iec958-stereo-input: Digital Input (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
		analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
			properties:
				
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
### Configuration dump generated at Sun Feb 28 20:49:22 2021

load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
load-module module-udev-detect
load-module module-alsa-card device_id="1" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-dbus-protocol
load-module module-native-protocol-unix
load-module module-gsettings
load-module module-default-device-restore
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-console-kit
load-module module-systemd-login
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
load-module module-cli-protocol-unix

set-sink-volume alsa_output.pci-0000_00_1b.0.iec958-stereo 0x10000
set-sink-mute alsa_output.pci-0000_00_1b.0.iec958-stereo no
suspend-sink alsa_output.pci-0000_00_1b.0.iec958-stereo no

set-source-volume alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor 0x10000
set-source-mute alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor no
suspend-source alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor no
set-source-volume alsa_input.pci-0000_00_1b.0.analog-stereo 0x2893
set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo no
suspend-source alsa_input.pci-0000_00_1b.0.analog-stereo yes

set-card-profile alsa_card.pci-0000_01_00.1 off
set-card-profile alsa_card.pci-0000_00_1b.0 output:iec958-stereo+input:analog-stereo

set-default-sink alsa_output.pci-0000_00_1b.0.iec958-stereo
set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo

### EOF```

I suggest you remove both of the modprobe options you added to /etc/modprobe.d/

snd_hda_intel: model=dual-codecs
snd_hda_intel: model=no-front-hp

You do not have ‘dual-codecs’ so this cannot work. The 2nd modprobe option might be needed, but system has to be reverted to a working state to checking if a kernel patch is needed


The list of loaded PulseAudio modules does not include two X11 modules
This is usually caused by restarting PulseAudio with a command like pulseaudio -k, or similar
I suggest you restart system and check if there X11 modules are loaded in addition to the other modules
If you need to restart PulseAudio in future use systemctl --user restart pulseaudio


Killing PulseAudio also appears to have suspended the microphone input

suspend-source alsa_input.pci-0000_00_1b.0.analog-stereo yes

If this is still shown as suspended after system reboot, use this command

pacmd suspend-source alsa_input.pci-0000_00_1b.0.analog-stereo 0

PulseAudio profile is set to use digital audio output
Because analog output is not available

output:analog-stereo: Analog Stereo Output (priority 6500, available: no)

That is probably due to turning on the digital output and setting it as default in alsamixer

Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [on] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

I suggest you got to alsamixer --card=0 and turn both of these settings off
and save alsamixer settings with sudo alsactl store

1 Like

I deleted the alsa related files from /etc/modprobe.d/

I ran the command:
pacmd suspend-source alsa_input.pci-0000_00_1b.0.analog-stereo 0
however the line :
suspend-source alsa_input.pci-0000_00_1b.0.analog-stereo yes
still appears when I run:
pacmd list-cards && pacmd dump
even after reboot.

and finally

  1. I went into alsamixer using alsamixer --card=0
  2. selected S/PDIF which I think is what you are refering to when you say digital output
  3. pressed M to mute S/PDIF and S/PDIF Default PCM.
  4. ran sudo alsactl store
  5. sudo reboot

When the computer rebooted, the audio (on the i3blocks status bar) was showing MUTE. Unmuting it using the i3bar simply unmuted the S/PDIF options in Alsamixer, and either way there was still no audio.

My i3blocks volume code can be found here:

If I have done anything wrong, please tell me. Thank you for being so helpful so far.

Ohh and here is an updated alsa info: http://alsa-project.org/db/?f=6cecba093f3f839fbc54c3c917100a2959db85db

thankfully showing:

Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [off] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

Ok, I got it working.

After muting the S/PDIF and S/PDIF Default PCM I then launched Pavucontrol and switched to Analog Stereo Output (unavailable)

Then I launched alsamixer again and increased the volume of “SIDE”

This, for some reason, worked and my audio is back.

Thank you for the help !! :grinning: :grinning:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.