Skip to content

Pipewire-pulse profile switch issues

Just migrated from pulseaudio to pipewire-pulse and I'm trying to make my xrandr and pulseaudio display switching scripts work correctly. I've confirmed that audio is working fine from the migrate.

Previously, with pulseaudio, I used pacmd to switch between an HDMI profile and my laptop's built in audio profile. However, pacmd does not seem available anymore upon switching to pipewire. I am trying to use pactl instead to switch, but the commands I need to use are different and everywhere I've checked online on switching profiles has said to use pacmd.

Switching my profile manually with pavucontrol and the like works fine, so that's not the issue. Any idea on how I could use pactl or a different tool altogether to switch instead?

12 points4 comments
Open on Reddit
About this post
Posted
Archived
Score
12 · 94% up
Kind
Text
ID
l2dfcs

Author

23
posts
306
comments
8
media
View profile

4 comments

Do you mean something like:

pactl set-card-profile 0 off
pactl set-card-profile 0 output:hdmi-stereo-extra2
1 points

Previously, to switch my card profile I would use something like:

pacmd set-card-profile "alsa_card.pci-0000_00_1f.3" "output:hdmi-stereo-extra1+input:analog-stereo"

using the card name and the profile name. Just that command but with pactl instead does not work. I've tried using the card index instead of the card name in the pactl command, but I get the same error as when I use the name: Failure: no such entity. I've tried random index values in a for loop as well just to see if I was picking the wrong index and those don't work either.

1 points

I just did pactl set-card-profile alsa_card.pci-0000_2b_00.3 output:analog-surround-21+input:analog-stereo and it works. Dunno what are you doing wrong. Check card and profile names with pactl list cards

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.