Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-10-11 11:44:35

betw023
Member
Registered: 2024-10-06
Posts: 11
LinuxChrome 129.0

sound output device always changed to the one not "default" after rebo

Sound output device always changed to the one not "default" after reboot?
Is there another way to let xfce always choose the output device I selected as default?

xfce-sound.png

as you can see, I've set the HDMI Audio as default, boot after reboot the sound goes to the usb3.0 dual video dock instead

OS: Artix Linux x86_64 with dinit
DE: Xfce4 4.18
WM: Xfwm4 (X11)


64GB RAM running with a rescued broken Ryzen 5800X (half memory channel)

Offline

#2 2024-10-11 22:45:37

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512
LinuxFirefox 131.0

Re: sound output device always changed to the one not "default" after rebo

What does the following return?

pactl list sinks | grep Name

Assuming you can see the HDMI sink listed, you should be able to make it default via:

pactl set-default-sink SINK_NAME

...where SINK_NAME is the appropriate output from the command above.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-10-11 23:47:26

betw023
Member
Registered: 2024-10-06
Posts: 11
LinuxChrome 129.0

Re: sound output device always changed to the one not "default" after rebo

Hi,
Thanks for the tip, let me try:

pactl list sinks | grep Name
        Name: alsa_output.usb-DisplayLink_USB3.0_Dual_Video_Dock_000800110041907-02.analog-stereo
	Name: alsa_output.pci-0000_08_00.1.hdmi-stereo-extra3
	Name: alsa_output.pci-0000_0a_00.4.iec958-stereo

pactl set-default-sink alsa_output.pci-0000_08_00.1.hdmi-stereo-extra3

rebooted computer and it still has the first one choosen as output:
        Name: alsa_output.usb-DisplayLink_USB3.0_Dual_Video_Dock_000800110041907-02.analog-stereo

The fact that in volume control I've already choose hdmi as default but it doesn't work, this gives me feeling that maybe the 'set default' action gets done before the hdmi output populated to the system?
also I think even the set default click doesn't work, at the view of the end user, the sysytem should remember the choosen output device

Last edited by betw023 (2024-10-11 23:52:05)


64GB RAM running with a rescued broken Ryzen 5800X (half memory channel)

Offline

#4 2024-10-12 00:15:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,512
LinuxFirefox 131.0

Re: sound output device always changed to the one not "default" after rebo

Create an autostart entry that runs the following command:

bash -c "sleep 10 && pactl set-default-sink alsa_output.pci-0000_08_00.1.hdmi-stereo-extra3"

This will execute on login, wait 10 seconds then set the default sink.

There might also be a way to edit a configuration file. Are you using pulseaudio or pipewire?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 535.65 KiB (Peak: 536.49 KiB) ]