You are not logged in.
I've created a file ~/.config/pulse/default.pa:
.include /etc/pulse/default.pa
set-default-sink alsa_output.usb-Jineung_Elecom_UHF-nano_S-01-UHFnanoS.analog-stereoWhen I login it seems that PulseAudio is switched to the specified sink:
$ pacmd list-sinks | grep -e name: -e index
index: 0
name: <alsa_output.pci-0000_01_00.1.hdmi-stereo>
index: 1
name: <alsa_output.pci-0000_00_14.2.analog-stereo>
* index: 2
name: <alsa_output.usb-Jineung_Elecom_UHF-nano_S-01-UHFnanoS.analog-stereo>But in fact PulseAudio plays sound in a wrong sound card until I restart it with pulseaudio -k.
Setting load-module module-stream-restore restore_device=false as described here did not help.
Setting set-card-profile as described here did not help either (got the ridiculous error "No such profile: output:analog-stereo").
Actually, I solved this problem by explicit load-module for the only device and disabling autodetecting other devices, but I don't like this dirty hack at all. I want to know why PulseAudio doesn't obey set-default-sink. Any ideas, anyone?
Offline