You are not logged in.

#1 2023-01-27 12:15:51

stackola
Member
Registered: 2023-01-27
Posts: 2

[SOLVED] Sound not working until switching profiles back and forth.

I have a weird issue with my Arch Linux install.
When the computer hasn't been playing audio for a while (sometimes a couple seconds are enough), it refuses to do so until I open up my audio panel and switch the audio profile to something else, and then back to the one I want to use. When constantly playing sound (like youtube autoplay or leaving a music player running) the problem never appears.
For example, I have to switch from "Analog Stereo Duplex" to "Analog Stereo Output" and then back to "Analog Stereo Duplex".
When starting at "Analog Stereo Output", just switching to "Analog Stereo Duplex" also fixes the problem. But neither "Output" nor "Duplex" work right out of the gate, both require some from of switching.
Before doing this switch, sound refuses to play, and most applications that try just hang at 0 seconds until I switch. For example, Youtube refuses to show the video at all (just a loading spinner).


Hardware is ASRock DeskMini X300 and it's fully up to date. (6.1.8-arch1-1)

I also have a display with speakers connected to the machine, but it doesn't play any sound in the meantime either, and permanently setting it's profile to "Off" also made no difference.

Here's some terminal output that might be of use:


  ~ arecord -l

**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC233 Analog [ALC233 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 2: ALC233 Alt Analog [ALC233 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

➜  ~ aplay --list-devices

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [AG271QG4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC233 Analog [ALC233 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

➜  ~ /sbin/lsmod | grep snd

snd_seq_dummy          16384  0
snd_hrtimer            16384  1
snd_seq                94208  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_hda_codec_realtek   172032  1
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_codec_hdmi     86016  1
snd_hda_intel          61440  7
snd_intel_dspcfg       36864  1 snd_hda_intel
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
snd_hda_codec         188416  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          118784  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               172032  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              49152  3 snd_seq,snd_hrtimer,snd_pcm
snd                   131072  26 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore              16384  1 snd

sudo fuser -v /dev/snd/*

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  stackola    745 F.... pulseaudio
                     stackola   1794 F.... wireplumber
/dev/snd/controlC1:  stackola    745 F.... pulseaudio
/dev/snd/pcmC1D0p:   stackola    745 F...m pulseaudio
/dev/snd/seq:        stackola   1793 F.... pipewire

pacmd list cards

Memory blocks currently allocated: 1, size: 63.9 KiB.
Memory blocks allocated during the whole lifetime: 1119352, size: 2.5 GiB.
Memory blocks imported from other processes: 0, size: 0 B.
Memory blocks exported to other processes: 0, size: 0 B.
Total sample cache size: 0 B.
Default sample spec: s16le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: alsa_output.pci-0000_04_00.6.analog-stereo
Default source name: alsa_output.pci-0000_04_00.6.analog-stereo.monitor
Memory blocks of type POOL: 1 allocated/721757 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/0 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/251055 accumulated.
Memory blocks of type IMPORTED: 0 allocated/146540 accumulated.
27 module(s) loaded.
    index: 0
	name: <module-device-restore>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically restore the volume/mute state of devices"
		module.version = "16.1"
    index: 1
	name: <module-stream-restore>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically restore the volume/mute/device state of streams"
		module.version = "16.1"
    index: 2
	name: <module-card-restore>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically restore profile of cards"
		module.version = "16.1"
    index: 3
	name: <module-augment-properties>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Augment the property sets of streams with additional static information"
		module.version = "16.1"
    index: 4
	name: <module-switch-on-port-available>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "David Henningsson"
		module.description = "Switches ports and profiles when devices are plugged/unplugged"
		module.version = "16.1"
    index: 5
	name: <module-udev-detect>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Detect available audio hardware and load matching drivers"
		module.version = "16.1"
    index: 6
	name: <module-alsa-card>
	argument: <device_id="0" name="pci-0000_04_00.1" card_name="alsa_card.pci-0000_04_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">
	used: 0
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "ALSA Card"
		module.version = "16.1"
    index: 7
	name: <module-alsa-card>
	argument: <device_id="1" name="pci-0000_04_00.6" card_name="alsa_card.pci-0000_04_00.6" 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">
	used: 0
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "ALSA Card"
		module.version = "16.1"
    index: 8
	name: <module-bluetooth-policy>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Frédéric Dalleau, Pali Rohár"
		module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
		module.version = "16.1"
    index: 9
	name: <module-bluetooth-discover>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "João Paulo Rechi Vita"
		module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
		module.version = "16.1"
    index: 10
	name: <module-bluez5-discover>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "João Paulo Rechi Vita"
		module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
		module.version = "16.1"
    index: 11
	name: <module-dbus-protocol>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Tanu Kaskinen"
		module.description = "D-Bus interface"
		module.version = "16.1"
    index: 12
	name: <module-native-protocol-unix>
	argument: <>
	used: -1
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "Native protocol (UNIX sockets)"
		module.version = "16.1"
    index: 13
	name: <module-gsettings>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Sylvain Baubeau"
		module.description = "GSettings Adapter"
		module.version = "16.1"
    index: 14
	name: <module-default-device-restore>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically restore the default sink and source"
		module.version = "16.1"
    index: 15
	name: <module-always-sink>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Colin Guthrie"
		module.description = "Always keeps at least one sink loaded even if it's a null one"
		module.version = "16.1"
    index: 16
	name: <module-intended-roles>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically set device of streams based on intended roles of devices"
		module.version = "16.1"
    index: 17
	name: <module-suspend-on-idle>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "When a sink/source is idle for too long, suspend it"
		module.version = "16.1"
    index: 18
	name: <module-console-kit>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Create a client for each ConsoleKit session of this user"
		module.version = "16.1"
    index: 19
	name: <module-systemd-login>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Create a client for each login session of this user"
		module.version = "16.1"
    index: 20
	name: <module-position-event-sounds>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
		module.version = "16.1"
    index: 21
	name: <module-role-cork>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Mute & cork streams with certain roles while others exist"
		module.version = "16.1"
    index: 22
	name: <module-filter-heuristics>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Colin Guthrie"
		module.description = "Detect when various filters are desirable"
		module.version = "16.1"
    index: 23
	name: <module-filter-apply>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Colin Guthrie"
		module.description = "Load filter sinks automatically when needed"
		module.version = "16.1"
    index: 24
	name: <module-x11-publish>
	argument: <display=:0.0 xauthority=/home/stackola/.Xauthority>
	used: -1
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "X11 credential publisher"
		module.version = "16.1"
    index: 25
	name: <module-x11-xsmp>
	argument: <display=:0.0 xauthority=/home/stackola/.Xauthority session_manager=local/smol:@/tmp/.ICE-unix/656,unix/smol:/tmp/.ICE-unix/656>
	used: -1
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "X11 session management"
		module.version = "16.1"
    index: 26
	name: <module-cli-protocol-unix>
	argument: <>
	used: -1
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "Command line interface protocol (UNIX sockets)"
		module.version = "16.1"
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_04_00.6.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: APPLICATION|IDLE
	priority: 9039
	volume: front-left: 26241 /  40% / -23.85 dB,   front-right: 26241 /  40% / -23.85 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 56.00 .. 1999.82 ms
	card: 1 <alsa_card.pci-0000_04_00.6>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC233 Analog"
		alsa.id = "ALC233 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcc80000 irq 80"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h/19h HD Audio Controller"
		device.string = "front:1"
		device.buffering.buffer_size = "352768"
		device.buffering.fragment_size = "176384"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		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: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>
2 source(s) available.
  * index: 0
	name: <alsa_output.pci-0000_04_00.6.analog-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: APPLICATION|IDLE
	priority: 1030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 56.00 .. 1999.82 ms
	monitor_of: 0
	card: 1 <alsa_card.pci-0000_04_00.6>
	module: 7
	properties:
		device.description = "Monitor of Family 17h/19h HD Audio Controller Analog Stereo"
		device.class = "monitor"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcc80000 irq 80"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h/19h HD Audio Controller"
		device.string = "1"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
    index: 2
	name: <alsa_input.pci-0000_04_00.6.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: APPLICATION|IDLE
	priority: 9039
	volume: front-left: 10387 /  16% / -48.00 dB,   front-right: 10387 /  16% / -48.00 dB
	        balance 0.00
	base volume: 6554 /  10% / -60.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
	card: 1 <alsa_card.pci-0000_04_00.6>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC233 Analog"
		alsa.id = "ALC233 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcc80000 irq 80"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h/19h HD Audio Controller"
		device.string = "front:1"
		device.buffering.buffer_size = "352768"
		device.buffering.fragment_size = "176384"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
	active port: <analog-input-mic>
8 client(s) logged in.
    index: 0
	driver: <module-systemd-login.c>
	owner module: 19
	properties:
		application.name = "Login Session 2"
		systemd-login.session = "2"
    index: 1
	driver: <protocol-native.c>
	owner module: 12
	properties:
		application.name = "xfwm4"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "35"
		window.x11.screen = "0"
		window.x11.display = ":0.0"
		application.process.id = "728"
		application.process.user = "stackola"
		application.process.host = "smol"
		application.process.binary = "xfwm4"
		application.language = "en_US.UTF-8"
		application.process.machine_id = "aab7749e70e640bfb413ee870cff876c"
		application.process.session_id = "2"
    index: 2
	driver: <protocol-native.c>
	owner module: 12
	properties:
		application.name = "xfce4-pulseaudio-plugin"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "35"
		application.version = "0.4.5"
		application.id = "org.xfce.pulseaudio-plugin"
		application.icon_name = "multimedia-volume-control"
		application.process.id = "765"
		application.process.user = "stackola"
		application.process.host = "smol"
		application.process.binary = "wrapper-2.0"
		application.language = "en_US.UTF-8"
		window.x11.display = ":0.0"
		application.process.machine_id = "aab7749e70e640bfb413ee870cff876c"
		application.process.session_id = "2"
    index: 6
	driver: <module-x11-xsmp.c>
	owner module: 25
	properties:
		application.name = "XSMP Session on xfce4-session as 2a1f8c084-429d-42fc-8b7f-3e88d8477626"
		xsmp.vendor = "xfce4-session"
		xsmp.client.id = "2a1f8c084-429d-42fc-8b7f-3e88d8477626"
    index: 7
	driver: <protocol-native.c>
	owner module: 12
	properties:
		application.name = "Google Chrome input"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "35"
		application.process.id = "2459"
		application.process.user = "stackola"
		application.process.host = "smol"
		application.process.binary = "chrome"
		application.language = "en_US.UTF-8"
		window.x11.display = ":0.0"
		application.process.machine_id = "aab7749e70e640bfb413ee870cff876c"
		application.process.session_id = "2"
    index: 13
	driver: <protocol-native.c>
	owner module: 12
	properties:
		application.name = "Chromium input"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "35"
		application.process.id = "5586"
		application.process.user = "stackola"
		application.process.host = "smol"
		application.process.binary = "signal-desktop-beta"
		application.language = "en_US.UTF-8"
		window.x11.display = ":0.0"
		application.process.machine_id = "aab7749e70e640bfb413ee870cff876c"
		application.process.session_id = "2"
		application.icon_name = "signal-desktop-beta"
    index: 17
	driver: <protocol-native.c>
	owner module: 12
	properties:
		application.name = "WEBRTC VoiceEngine"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "35"
		application.process.id = "5554"
		application.process.user = "stackola"
		application.process.host = "smol"
		application.process.binary = "signal-desktop-beta"
		application.language = "en_US.UTF-8"
		window.x11.display = ":0.0"
		application.process.machine_id = "aab7749e70e640bfb413ee870cff876c"
		application.process.session_id = "2"
		application.icon_name = "signal-desktop-beta"
    index: 28
	driver: <cli.c>
	owner module: 26
	properties:
		application.name = "UNIX socket client"
2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_04_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcc88000 irq 79"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "1637"
		device.product.name = "Renoir Radeon High Definition Audio Controller"
		device.string = "0"
		device.description = "Renoir Radeon High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 38668, available: unknown)
		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)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "AG271QG4"
		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"
    index: 1
	name: <alsa_card.pci-0000_04_00.6>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcc80000 irq 80"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h/19h HD Audio Controller"
		device.string = "1"
		device.description = "Family 17h/19h HD Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: no)
		output:analog-stereo: Analog Stereo Output (priority 39268, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_04_00.6.analog-stereo/#0: Family 17h/19h HD Audio Controller Analog Stereo
	sources:
		alsa_output.pci-0000_04_00.6.analog-stereo.monitor/#0: Monitor of Family 17h/19h HD Audio Controller Analog Stereo
		alsa_input.pci-0000_04_00.6.analog-stereo/#2: Family 17h/19h HD Audio Controller Analog Stereo
	ports:
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		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: yes)
			properties:
				device.icon_name = "audio-headphones"
0 sink input(s) available.
0 source output(s) available.
0 cache entrie(s) available.



Neither "alsactl kill rescan" nor  "mv ~/.config/pulse ~/.config/pulseold && killall pulseaudio" solve the problem.
Anything else I can try, or any other interesting logs I could look at to narrow down the issue?
Or alternatively, any commands I can run during the "broken" vs the "fixed" state to figure out the difference?

Here is a screen recording of the issue in action:

https://streamable.com/bjzyij

Last edited by stackola (2023-01-27 13:41:50)

Offline

#2 2023-01-27 13:11:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,109

Re: [SOLVED] Sound not working until switching profiles back and forth.

You are mixing wireplumber and pulseaudio which is an unsupported/expected to be troublesome configuration. Either switch to pipewire-media-session and keep pulseaudio or switch to pipewire properly by installing pipewire-pulse instead of pulseaudio.

This is like the third thread in a short timespan with this exact issue, which tool/instruction did you use to install this system? Can you share a pacman.log so we can check by which logistics this situation happened?

Last edited by V1del (2023-01-27 13:13:32)

Offline

#3 2023-01-27 13:40:46

stackola
Member
Registered: 2023-01-27
Posts: 2

Re: [SOLVED] Sound not working until switching profiles back and forth.

Thank you for the reply, I removed pipewire-alsa and wireplumber (which was required by pipewire-alsa) and that has indeed fixed my problem. pipewire-alsa didn't seem to be required by anything else I currently have installed, so I'm not 100% sure how that came to be. I surely didn't manually install it.

Here is the pacman.log, maybe you can tell me how this came to be.
https://hastebin.com/ecazinoraw.yaml
If I had to guess, it came along with this: "yay -S sof-firmware alsa-ucm-conf" which was when I was stuggling with an ID-10T error after trying to use the microphone jack as an output.
I used anarchy-linux (formerly arch-anywhere) to install my system, but I don't think it's at fault here, and has always worked for all other machines I have arch running on. (Just checked my notebook, no wireplumber to be found)

In any case, I'm very thankful for the spot-on diagnosis.

Last edited by stackola (2023-01-27 13:58:07)

Offline

#4 2023-01-27 14:48:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,109

Re: [SOLVED] Sound not working until switching profiles back and forth.

sof-firmware nor alsa-ucm-conf lead to any audio server being installed. Checking the current iteration of the anarchy script shows that it blindly installs just pipewire which will blindly default to wireplumber as the media-session provider. If you installed your notebook earlier it might have simply predated that constellation

Offline

Board footer

Powered by FluxBB