You are not logged in.

#1 2024-04-24 22:43:27

yawnbo
Member
Registered: 2024-04-06
Posts: 7

[solved] pipewire audio issues

I'm trying to get pipewire working but I can't get any audio i/o. The issues i have seem to be very similar to threads like, #282119, but the solutions in the post don't help. To start, when using 'alsamixer' it starts to a blank sound device with no controls, labeled "Card: PipeWire Chip Pipewire" but switching sound cards using f6 to 'Generic' displays all the correct controls and labels the card as "HD-Audio Generic Chip: Realtek ALCS1200A." So even though alsa detects the card "pactl list cards" outputs nothing, and list short sinks shows

[yawnbo@yawnbo ~]$ pactl list short sinks
32	auto_null	PipeWire	float32le 2ch 48000Hz	SUSPENDED
 [yawnbo@yawnbo ~]$ ps -ef | grep pipewire
yawnbo       733     723  0 07:59 ?        00:00:00 /usr/bin/pipewire
yawnbo       734     723  0 07:59 ?        00:00:00 /usr/bin/pipewire-pulse
yawnbo      1929    1269  0 08:31 pts/1    00:00:00 grep --color=auto pipewire 

This output is weird as it shows hdmi audio too, even though its been blacklisted in modprobe.d,

[yawnbo@yawnbo ~]$ lspci -vnn | grep -i audio
2b:00.1 Audio device [0403]: NVIDIA Corporation GP102 HDMI Audio Controller [10de:10ef] (rev a1)
2d:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487]

On the previous point, snd_hda_codec_hdmi was blacklisted from modules using 'blacklist snd_hda_codec_hdmi' which didn't work, so i switched to,

[yawnbo@yawnbo ~]$ cat /etc/modprobe.d/blacklist.conf
install snd_hda_codec_hdmi /bin/true

I am 100% sure this is my fault in config as this,

[yawnbo@yawnbo ~]$ speaker-test -Dhw:1,0 -c2

speaker-test 1.2.11

Playback device is hw:1,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Periods = 4
was set period_size = 12000
was set buffer_size = 48000
 0 - Front Left
 1 - Front Right

Plays a static sound confirming that the sound is at least somewhere. I assume it's something with pipewire and the hdmi output but I've looked around and can't find anything that helped.
Other relevant output,

 [yawnbo@yawnbo ~]$ pw-cli ls Node
	id 28, type PipeWire:Interface:Node/3
 		object.serial = "28"
 		factory.id = "10"
 		priority.driver = "20000"
 		node.name = "Dummy-Driver"
	id 29, type PipeWire:Interface:Node/3
 		object.serial = "29"
 		factory.id = "10"
 		priority.driver = "19000"
 		node.name = "Freewheel-Driver"
	id 32, type PipeWire:Interface:Node/3
 		object.serial = "32"
 		factory.id = "18"
 		client.id = "31"
 		node.description = "Dummy Output"
 		node.name = "auto_null"
 		media.class = "Audio/Sink"
[yawnbo@yawnbo ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALCS1200A Analog [ALCS1200A Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALCS1200A Digital [ALCS1200A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Any help would be appreciated!

Last edited by yawnbo (2024-04-25 05:56:36)

Offline

#2 2024-04-25 00:29:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,230

Re: [solved] pipewire audio issues

Post

pactl list cards
pactl list sinks
pactl list sink-inputs

during active playback. is alsa-card-profiles installed? you'd have to do some gymnastics for that not to be the case. But could be that that card doesn't have a correct profile... maybe throw in

journalctl -b --user-unit=pipewire --user-unit=pipewire-pulse --user-unit=wireplumber

Last edited by V1del (2024-04-25 00:32:39)

Offline

#3 2024-04-25 04:06:04

yawnbo
Member
Registered: 2024-04-06
Posts: 7

Re: [solved] pipewire audio issues

Thanks for the reply!
While sound test is running output of given cmds looks exactly the same as when not i believe

 [yawnbo@yawnbo ~]$ pactl list cards
[yawnbo@yawnbo ~]$ pactl list sinks
Sink #32
    State: SUSPENDED
    Name: auto_null
    Description: Dummy Output
    Driver: PipeWire
    Sample Specification: float32le 2ch 48000Hz
    Channel Map: front-left,front-right
    Owner Module: 4294967295
    Mute: no
    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
    Monitor Source: auto_null.monitor
    Latency: 0 usec, configured 0 usec
    Flags: DECIBEL_VOLUME LATENCY
    Properties:
        node.name = "auto_null"
        device.description = "Dummy Output"
        audio.rate = "48000"
        audio.channels = "2"
        audio.position = "FL,FR"
        media.class = "Audio/Sink"
        factory.name = "support.null-audio-sink"
        node.virtual = "true"
        monitor.channel-volumes = "true"
        factory.id = "18"
        clock.quantum-limit = "8192"
        client.id = "31"
        node.driver = "true"
        factory.mode = "merge"
        audio.adapt.follower = ""
        library.name = "audioconvert/libspa-audioconvert"
        object.id = "32"
        object.serial = "32"
    Formats:
        pcm
[yawnbo@yawnbo ~]$ pactl list sink-inputs
[yawnbo@yawnbo ~]$

Reinstalled alsa profile pkg and Journalctl shows the following

 [yawnbo@yawnbo ~]$ journalctl -b --user-unit=pipewire --user-unit=pipewire-pulse --user-unit=wireplumber
Hint: You are currently not seeing messages from the system.
      Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
      Pass -q to turn off this notice.
Apr 24 14:01:57 yawnbo systemd[722]: Started PipeWire Multimedia Service.
Apr 24 14:01:57 yawnbo systemd[722]: Started PipeWire PulseAudio. 

Edit: looked into why wireplumber decided not to start and realized it was masked.... unmasking fixed everything ffs

Last edited by yawnbo (2024-04-25 05:55:53)

Offline

Board footer

Powered by FluxBB