You are not logged in.

#1 2023-11-15 16:46:19

danjohles
Member
Registered: 2023-11-15
Posts: 3

PipeWire set default audiodevice

Hello,
I only recently installed arch and I have the problem that the default-sink is not the correct device to play back audio.

I tried setting it via

pactl set-default-sink

but running

pactl get-default-sink

afterwards shows, that nothing changed.

pactl list short sinks 

  yields following output

45	alsa_output.pci-0000_09_00.0.analog-stereo	PipeWire	s32le 2ch 48000Hz	IDLE
47	alsa_output.pci-0000_0a_00.1.hdmi-stereo	PipeWire	s32le 2ch 48000Hz	IDLE
49	alsa_output.pci-0000_0d_00.3.iec958-stereo	PipeWire	s32le 2ch 48000Hz	IDLE

I need

45	alsa_output.pci-0000_09_00.0.analog-stereo

to be the default sink
like I mentioned above, I tried

pactl set-default-sink alsa_output.pci-0000_09_00.0.analog-stereo
pactl set-default-sink 45

but the default stays

alsa_output.pci-0000_0a_00.1.hdmi-stereo

another problem, if the first one would be dealt with is the correct port, because the default Port for the correct sink is also wrong and has to be set after each reboot, I use PulseAudio-Volumecontrol to go to Playbackdevices and set the correct port

These are all the ports listed for the correct playback device:
    Ports:
       

analog-output-lineout;output-speaker: Line-Ausgang / Lautsprecher (type: Line, priority: 9010, availability group: Legacy 3, availability unknown)
		analog-output-lineout;output-headphones: Line-Ausgang / Kopfhörer (type: Line, priority: 9009, availability group: Legacy 3, not available)
		analog-output-headphones;output-speaker: Kopfhörer / Lautsprecher (type: Headphones, priority: 9910, availability group: Legacy 4, availability unknown)
		analog-output-headphones;output-headphones: Kopfhörer / Kopfhörer (type: Headphones, priority: 9909, availability group: Legacy 4, available)

the right port is

analog-output-lineout;output-headphones: Line-Ausgang / Kopfhörer (type: Line, priority: 9009, availability group: Legacy 3, not available)

if anything is not clear or any more information is required I'll try my best to do so

thanks in advance!

Last edited by danjohles (2023-11-15 18:13:44)

Offline

#2 2023-11-15 17:37:29

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

Re: PipeWire set default audiodevice

That should work. What's your general environment? e.g. GNOME is notorious for maintaining it's own pulse/sink database which means it would override what you're doing unless you changed it directly in gnomes tools

Also for a general logistics check

sudo fuser -v /dev/snd/*
systemctl --user status pipewire{,-pulse}.service wireplumber

did you ever set any custom wirepulmber/pipewire-pulse.conf that would change this? If push comes to shove you could add the relevant pactl commands to a override in /etc/pipewire/pipewire-pulse.conf.d/ and run them in the context logistics.

Please post the outputs of these commands (and adjust your OP in this regard) in [ code ] [ /code ] tags (without the spaces)

Offline

#3 2023-11-15 18:08:22

danjohles
Member
Registered: 2023-11-15
Posts: 3

Re: PipeWire set default audiodevice

thx for the reply, here are the outputs

first

/dev/snd/controlC0:  user     86590 F.... wireplumber
/dev/snd/controlC1:  user     86590 F.... wireplumber
/dev/snd/controlC2:  user     86590 F.... wireplumber
/dev/snd/controlC3:  user     86590 F.... wireplumber
/dev/snd/controlC4:  user     86590 F.... wireplumber
/dev/snd/seq:        user     86588 F.... pipewire 

second

pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewi
re.service; disabled; preset: enabled)
     Active: active (running) since Wed 2023-11-15 17:12:57 CET; 1h 53min ago
TriggeredBy: ● pipewire.socket
   Main PID: 86588 (pipewire)
      Tasks: 3 (limit: 28697)
     Memory: 20.2M
        CPU: 1min 24.722s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─86588 /usr/bin/pipewire

Nov 15 17:12:57 toaster systemd[789]: Started PipeWire Multimedia Service.

● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/
pipewire-pulse.service; disabled; preset: enabled)
     Active: active (running) since Wed 2023-11-15 14:44:18 CET; 4h 21min ago
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 1081 (pipewire-pulse)
      Tasks: 3 (limit: 28697)
     Memory: 124.9M
        CPU: 5min 11.246s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─1081 /usr/bin/pipewire-pulse

I use hyprland as my Window manager, no full DE installed.
Waybar as a bar, sddm as loginmanager

Last edited by danjohles (2023-11-15 18:55:28)

Offline

Board footer

Powered by FluxBB