Onboard Sound card - F36 - how to reset configuration

Hi all,

Appreciate any help you can provide.
Fedora36, KDE Plasma.
Is there an easy way to reset audio configuration to default in Fedora?

Taking a laptop away with me on holidays. On login, the onboard sound card that I have is not detected, and the graphics card audio driver configures incorrectly.

So, no sound available at the moment. System does not detect the onboard sound card.

Normally, I use a laptop as a primary monitor with 2 monitors either side. One through HDMI, one through mini-DP. This gives audio output through the HDMI port, or the onboard card (the miniDP is not supported.) As I am away, I am using a laptop only.

However, following this hint:
https://discussion.fedoraproject.org/t/onboard-sound-not-detected-on-gigabyte-b450/26541/4

I created a new admin user.
The onboard sound card works perfectly for the new user.

I went to install pulseaudio and a lot of conflict warnings were flagged. I stopped there.
Removed and reinstalled pipewire.
Same result.
Downgraded alsa* successfully

As I store documents on a separate drive, it’s an easy matter to delete and reinstall an account to fix this, but then I have to do a bit of configuring.

Is there an easy way to reset audio configuration to default in Fedora?

With thanks,

A

Details below.

[horace@192-168-1-120 ~]$ **cat /etc/fedora-release **
Fedora release 36 (Thirty Six)
[horace@192-168-1-120 ~]$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 36 (Thirty Six)
Release: 36
Codename: ThirtySix

[horace@192-168-1-120 ~]$ hostnamectl
Static hostname: n/a
Transient hostname: 192-168-1-120.tpgi.com.au
Icon name: computer-laptop
Chassis: laptop :computer: Machine ID: 7e4ee854b1b74b2a9d47e581bd273ff9
Boot ID: 5339108f2e214f02823a4909a1b58e6b
Operating System: Fedora Linux 36 (KDE Plasma)
CPE OS Name: cpe:/o:fedoraproject:fedora:36
Kernel: Linux 6.0.15-200.fc36.x86_64
Architecture: x86-64
Hardware Vendor: Micro-Star International Co., Ltd.
Hardware Model: GE75 Raider 9SE
[horace@192-168-1-120 ~]$ uname -a
Linux 192-168-1-120.tpgi.com.au 6.0.15-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 21 18:46:09 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

[horace@192-168-1-120 ~]$ inxi -A
Audio:
Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
Device-2: NVIDIA TU106 High Definition Audio driver: snd_hda_intel
Sound API: ALSA v: k6.0.15-200.fc36.x86_64 running: yes
Sound Server-1: PipeWire v: 0.3.63 running: yes

[horace@192-168-1-120 ~]$ lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 0d)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 0d)
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] (rev 02)
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Cannon Lake PCH CNVi WiFi (rev 10)
00:15.0 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:15.2 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #2 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller (rev 10)
00:1b.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #17 (rev f0)
00:1b.4 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #21 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #15 (rev f0)
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
01:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1)
01:00.3 Serial bus controller: NVIDIA Corporation TU106 USB Type-C UCSI Controller (rev a1)
03:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
05:00.0 Ethernet controller: Qualcomm Atheros Killer E2500 Gigabit Ethernet Controller (rev 10)

[horace@192-168-1-120 ~]$ sudo lspci -v -s 00:1f.3
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
DeviceName: Onboard - Sound
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 1272
Flags: bus master, fast devsel, latency 32, IRQ 167
Memory at a5510000 (64-bit, non-prefetchable) [size=16K]
Memory at a5100000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [80] Vendor Specific Information: Len=14 <?>
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_cnl

I would start with removing ~/.local/state/wireplumber

pipewire’s configuration files for the user would be in ~/.config/pipewire

This told you it is not a system problem but a config problem for the normal user.
In fact you probably could have used the sound settings panel and selected the proper source for your regular user without doing any software changes.

Pipewire and Wireplumber work well for most, and if it worked for you with the external monitors but not for the laptop speaker then it was simply a config issue in needing to select the proper sink for audio output.

Audio config is a user level config.

If you remove the directory ~/.config/pipewire then restart the computer and restart an audio app it should reconfigure pipewire to the default config for your user.

This is, of course, assuming that your installation of pulseaudio did not mess other things up.

The way to enable or disable pulseaudio and pipewire-pulseaudio is normally to swap the packages with dnf. sudo dnf swap pipewire-pulseaudio pulseaudio --allowerasing to remove pipewire-pulseaudio and install pulseaudio. Simply reverse the package names to reinstall pipewire-pulseaudio.

Many thanks Jeff and Joe,

Jeff - the settings panel gave no option to select another card. It was well and properly broken.

Removing the config directories should work. I just didn’t know where they were.
Didn’t install pulseaudio - it stopped at the warnings. But in case, the command makes sense. Thanks.

I’m away from the machine for the next couple of days now.
I’ll give it a go and report back 3 Jan.

Worst case - I intentionally run the OS on a separate directory to the data. I’ll just reinstall.

A

HI all,
Ended up doing a brute force repair - fixed when I completely reformatted and reinstalled Fedora36 back to factory settings.

Had caused myself a login issue on both accounts, so there was one easy option, reinstall back to initial setting.

As I said, I store data on a completely separate drive, so a reload causes 30 minutes reconfiguration work, such as setting up mail clients again, reconfiguring grub on a dual boot machiine, etc… No (meaningful) data lost in the process

Regards,

A