Onboard sound not detected on Gigabyte B450

I am using a custom built mini PC around a Gigabyte B450 Aorus Pro Wi-Fi.
I am running Fedora since day 1 and am the happiest pinguin in the pool.
Sound has always been working using a bluetooth/ monitor loudspeaker
combination. Lately i decided i needed a headset, and bought a simple
Sennheiser headset.
Instead of going for Bluetooth or USB i opted for a regular 3.5 audio jack,
green for the speaker and pink for the mic. Can’t get any simpler than that, at
least that’s what i thought.
Yes, onboard sound usually sucks, but the B450 sports a Realtek ALC1220 which is
not too bad from what i’ve heard.

No sound at all. I cannot even select the onboard sound as it does not show up,
neither in alsamixer nor in pavucontrol, let alone in Gnome’s ‘sound’ settings.

If i disable the onboard HD audio in BIOS, lspci lists the HDMI audio:

0a:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller [1002:15de]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller [1002:15de]
Flags: bus master, fast devsel, latency 0, IRQ 10, IOMMU group 1

Enabling HD audio in BIOS shows

0a:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller [1002:15de]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller [1002:15de]
Flags: bus master, fast devsel, latency 0, IRQ 10, IOMMU group 1

0a:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
Subsystem: Gigabyte Technology Co., Ltd Device [1458:a0c3]

Looks as if the sound system is at least recognized on a hardware level.

I upgraded Fedora from 35 to 36 to no avail.
I double checked the ‘most common fedora upgrade problems’ to get rid of the
duplicate pulseaudio/ pipewire/ pulseaudio over pipewire/ … issues i had.
I tried some module options that were reported as succesful in similar cases, sich as ‘index=1.0’ or ‘model=dual-codecs’.

Any hints greatly appreciated. The output of alsa-info.sh:


!!################################
!!ALSA Information Script v 0.5.1
!!################################

!!Script ran on: Thu Sep 15 16:05:32 UTC 2022


!!Linux Distribution
!!------------------

Fedora release 36 (Thirty Six) NAME="Fedora Linux" ID=fedora PRETTY_NAME="Fedora Linux 36 (Workstation Edition)" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora:36" HOME_URL="https://fedoraproject.org/" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f36/system-administrators-guide/" SUPPORT_URL="https://discussion.fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=36 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=36 PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy" Fedora release 36 (Thirty Six) Fedora release 36 (Thirty Six)


!!DMI Information
!!---------------

Manufacturer:      Gigabyte Technology Co., Ltd.
Product Name:      B450 I AORUS PRO WIFI
Product Version:   Default string
Firmware Version:  F50
System SKU:        Default string
Board Vendor:      Gigabyte Technology Co., Ltd.
Board Name:        B450 I AORUS PRO WIFI-CF


!!ACPI Device Status Information
!!---------------

/sys/bus/acpi/devices/AMDI0030:00/status 	 15
/sys/bus/acpi/devices/AMDIF030:00/status 	 15
/sys/bus/acpi/devices/LNXVIDEO:01/status 	 15
/sys/bus/acpi/devices/PNP0103:00/status 	 15
/sys/bus/acpi/devices/PNP0A08:00/status 	 15
/sys/bus/acpi/devices/PNP0C01:00/status 	 15
/sys/bus/acpi/devices/PNP0C02:02/status 	 15
/sys/bus/acpi/devices/PNP0C02:04/status 	 15
/sys/bus/acpi/devices/PNP0C0C:00/status 	 11
/sys/bus/acpi/devices/PNP0C0F:00/status 	 11
/sys/bus/acpi/devices/PNP0C0F:01/status 	 11
/sys/bus/acpi/devices/PNP0C0F:02/status 	 11
/sys/bus/acpi/devices/PNP0C0F:03/status 	 11
/sys/bus/acpi/devices/PNP0C0F:04/status 	 11
/sys/bus/acpi/devices/PNP0C0F:05/status 	 11
/sys/bus/acpi/devices/PNP0C0F:06/status 	 11
/sys/bus/acpi/devices/PNP0C0F:07/status 	 11
/sys/bus/acpi/devices/PNP0C14:01/status 	 11
/sys/bus/acpi/devices/device:11/status 	 11
/sys/bus/acpi/devices/device:12/status 	 11
/sys/bus/acpi/devices/device:23/status 	 15


!!Kernel Information
!!------------------

Kernel release:    5.19.7-200.fc36.x86_64
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         x86_64
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     k5.19.7-200.fc36.x86_64
Library version:    
Utilities version:  1.2.7


!!Loaded ALSA modules
!!-------------------



!!Sound Servers on this system
!!----------------------------

PipeWire:
      Installed - Yes (/usr/bin/pipewire)
      Running - Yes

No sound servers found.


!!Soundcards recognised by ALSA
!!-----------------------------

--- no soundcards ---


!!PCI Soundcards installed in the system
!!--------------------------------------

0a:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller [1002:15de]
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller [1002:15de]
0a:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
	Subsystem: Gigabyte Technology Co., Ltd Device [1458:a0c3]


!!Modprobe options (Sound related)
!!--------------------------------

snd_hda_codec_hdmi: static_hdmi_pcm=1
snd_hda_intel: model=dual-codecs


!!Loaded sound module options
!!---------------------------


!!Sysfs card info
!!---------------

!!Card: /sys/class/sound/card*
Driver: 
Tree:
	/sys/class/sound/card*  [error opening dir]


!!ALSA Device nodes
!!-----------------

crw-rw----+ 1 root audio 116,  1 Sep 15 16:09 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Sep 15 16:09 /dev/snd/timer


!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

#
# Place your global alsa-lib configuration here...
#
pcm.!default {
	type asym
	playback.pcm "htmi:CARD=HDMI,DEV=0"
	capture.pcm "plus:rnnoise"
}

ctl.!default {
	type hw
	card 1
}


!!Aplay/Arecord output
!!--------------------

APLAY

aplay: device_list:275: no soundcards found...

ARECORD

arecord: device_list:275: no soundcards found...

!!Amixer output
!!-------------


!!Alsactl output
!!--------------

--startcollapse--
--endcollapse--


!!All Loaded Modules
!!------------------

acpi_cpufreq
amdgpu
bluetooth
bnep
bridge
btbcm
btintel
btmtk
btrtl
btusb
ccp
cec
cfg80211
crc32_pclmul
crc32c_intel
crct10dif_pclmul
dca
drm_display_helper
drm_ttm_helper
edac_mce_amd
fat
fuse
ghash_clmulni_intel
gigabyte_wmi
gpio_amdpt
gpio_generic
gpu_sched
hid_logitech_dj
hid_logitech_hidpp
hwmon_vid
i2c_piix4
igb
intel_rapl_common
intel_rapl_msr
iommu_v2
ip6_tables
ip6table_filter
ip6table_mangle
ip6table_nat
ip6table_raw
ip6table_security
ip_set
ip_tables
ipt_REJECT
iptable_filter
iptable_mangle
iptable_nat
iptable_raw
iptable_security
irqbypass
it87
iwlmei
iwlmvm
iwlwifi
k10temp
kvm
libarc4
llc
mac80211
mei
nf_conntrack
nf_conntrack_broadcast
nf_conntrack_netbios_ns
nf_conntrack_tftp
nf_defrag_ipv4
nf_defrag_ipv6
nf_nat
nf_nat_tftp
nf_reject_ipv4
nf_reject_ipv6
nf_tables
nfnetlink
nft_chain_nat
nft_ct
nft_fib
nft_fib_inet
nft_fib_ipv4
nft_fib_ipv6
nft_objref
nft_reject
nft_reject_inet
nvme
nvme_core
pcspkr
qrtr
rapl
rfcomm
rfkill
snd
snd_hda_codec
snd_hda_core
snd_hda_intel
snd_hrtimer
snd_hwdep
snd_intel_dspcfg
snd_intel_sdw_acpi
snd_pcm
snd_seq
snd_seq_device
snd_seq_dummy
snd_timer
soundcore
sp5100_tco
stp
sunrpc
tls
ttm
uhid
uinput
vfat
video
wmi
wmi_bmof
xt_CHECKSUM
xt_MASQUERADE
xt_conntrack
zram


!!ALSA/HDA dmesg
!!--------------

[    0.386237] ACPI: Added _OSI(Linux-Dell-Video)
[    0.386237] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.386237] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)


!!Packages installed
!!--------------------

alsa-lib-1.2.7.2-1.fc36.x86_64
alsa-utils-1.2.7-1.fc36.x86_64
alsa-sof-firmware-2.1.1-1.fc36.noarch
alsa-tools-1.2.5-4.fc36.x86_64

Welcome to ask.fedora @dejot

Try to create a new user and check if sound works this way. Could be that you still have some configuration in your user config who changed and is different than the default F36 uses.

Please check this thread and see if the same solution works.
https://discussion.fedoraproject.org/t/dummy-output-problem-after-update-no-audio/26449/9?u=grumpey

Nice one, i’m gonna put this into my toolbox. Should have thought of this myself.

Upgraded to latest stable, loads of new pipewire/ pulseaudio packages. Created a new user, obvious username jack. Jack could not even run alsamixer, strace report:

write(2, "cannot open mixer: No such file "...) = 45

Obviously the custom configuration in /etc/asound.conf i found somewhere did not work.

pcm.!default {
	type asym
	playback.pcm "htmi:CARD=HDMI,DEV=0"
	capture.pcm "plus:rnnoise"
}

ctl.!default {
	type hw
	card 1
}

Same problem for my user. After i removed the custom configuration in /etc/asound.conf, alsamixer comes up for me, but not for jack:

write(2, "cannot open mixer: Host is down\n") = 32

Not sure which host is down, probably bad wording. Surely one of pipewire, pulseaudio, pipewire over pulseaudio, pulseaudio over jack over alsa. And if jack in his terminal can have audio from my Gnome session.

1 Like

Please do not forget @grumpey 's suggestion. Fix false ownership sounds good for me :wink:

Do not forget, if you check one of this services you should do it as --user not as sudo. In the end you want to know it for the user and not for an su/sudo user.

Holy cow! You are great! Onboard sound is detected, visible in alsamixer, and selectable from the Gnome dropdown. I can see that LINE and MIC are operational. Still cannot hear anything when switching in Gnome but i am sure this is due to a user misconfiguration somewhere.

7fbab987d30c35edb42e786c5b887d264b4b6e7f.png

Should i mark this thread as [Solved]? This is my first visit on askfedora.

And more importantly, how and where can i donate 20 bucks for the friendly people that fixed my audio problem? Mr. Gunthorpe and Mr. Roedel seem to be in a contract.