You are not logged in.
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
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
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)
Online
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