On 17/11/2021 19:58, Sam Varshavchik wrote:
Ed Greshko writes:
> On 17/11/2021 07:27, Sam Varshavchik wrote:
>> One of my servers was rebooted two times, so far, since the update to F35.
>>
>> There's no audio after each reboot. First time: after some scrambling around,
I found that I simply have to switch to "Built-In Analog Stereo" in XFCE's
(my desktop) audio mixer. Fine, so I wrote it off as a result of a one-time update to
Pipewire.
>>
>> But this happened again, after the 2nd reboot.
>>
>> I saw nothing in audio mixer which lets me permanently set my default audio out.
>>
>> I searched for "pipewire default audio device" and "pipewire save
default audio device" but didn't find anything useful. After browsing some random
links I found mentions of a "pactl" command, so after reading its man page:
>>
>> $ pactl list short sinks
>> 41 alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo
PipeWire s16le 2ch 48000Hz SUSPENDED
>> 42 alsa_output.pci-0000_00_1b.0.analog-stereo PipeWire s32le 2ch 48000Hz
SUSPENDED
>>
>> After a reboot:
>>
>> $ pactl get-default-sink
>> alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo
>>
>> Fail.
>>
>> $ pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
>>
>> Now I have audio again.
>>
>> After logging out and back in, the default audio is unchanged. But it gets reset
after every reboot. After scratching my head, I looked deeper and discovered that pactl is
pulseaudio, but my understanding is that F35 switched to something called
"pipewire".
>>
>> More digging uncovered the existence of pw-cli. However its man page is sparse,
and after starting it the "dump" and "list objects" command produced a
ton of incomprehensible output. "help" didn't seem to have much help to say
in terms of selecting and saving, permanently, the default output device. Wouldn't you
think that this should be pretty basic, elementary stuff that any audio framework should
put in front of the user, in a very visible way? But I guess not.
>>
>> So, anyone knows how to set the permanent default output device?
>
> No. But I do have a question.
>
> If you boot the system with the USB device disconnected, and then login, I assume
sound works with the pci
> device.
>
> Then, if you plug in the USB device does it take over from the pci device?
No, it does not.
$ pactl list short sinks
40 alsa_output.pci-0000_00_1b.0.analog-stereo PipeWire s32le 2ch 48000Hz
SUSPENDED
55 alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo PipeWire s16le
2ch 48000Hz SUSPENDED
Only the first entry, the built-in audio jack, came up after a reboot, and that's
where the audio went by default. Plugging back the USB-Audio adapter did not change the
default audio-out.
So, you get the audio where you want it if you boot with the device disconnected.
Have you checked the journal or dmesg to maybe see what is happening when the system is
booted with the device connected?
--
Did 황준호 die?