You are not logged in.

#1 2021-10-06 04:30:48

Subbeh
Member
Registered: 2020-07-25
Posts: 16

Pulseaudio not finding sink from default.pa

I have the following line in my default.pa config file to change the description of my main sound output sink:

update-sink-proplist alsa_output.pci-0000_00_1f.3.analog-stereo device.description="laptop"

However, this is stopping pulseaudio from running with the following entry in the system log:

Oct 06 15:24:34 arch pulseaudio[177406]: No sink found by this name or index.
Oct 06 15:24:34 arch pulseaudio[177406]: Failed to initialize daemon due to errors while executing startup commands. Source of commands: /home/sysadm/.config/pulse//default.pa

Running this with pacmd seems to work fine though:

update-sink-proplist alsa_output.pci-0000_00_1f.3.analog-stereo device.description="laptop"

Any idea why this is happening?

Offline

#2 2021-10-06 05:01:55

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Pulseaudio not finding sink from default.pa

The sink is probably only added after the config file has been read and is still missing while that line is executed.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-10-06 17:33:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,668

Re: Pulseaudio not finding sink from default.pa

Where do you add that line? It should be after the udev-detect at the minimum, but there's no harm and you can only benefit from adding it at the end. And prepend it with .nofail so that the pulse server startup doesn't fail if that isn't enough like so,

.nofail
update-sink-proplist alsa_output.pci-0000_00_1f.3.analog-stereo device.description="laptop"

if you do that addition it's even more important that you add it at the end.

Last edited by V1del (2021-10-06 17:35:16)

Offline

#4 2021-10-06 17:45:25

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Pulseaudio not finding sink from default.pa

If changing the description that way does not work for devices detected with udev, then you might be able to set the name with ENV{PULSE_NAME} in an udev rule.
https://lists.freedesktop.org/archives/ … 28664.html
https://gist.github.com/Aishou/f39c2f97 … 5c5cc0890e
https://unix.stackexchange.com/question … n-usb-tree

Last edited by progandy (2021-10-06 17:47:18)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB