chimeraos icon indicating copy to clipboard operation
chimeraos copied to clipboard

Select sound device does not persist

Open kasper-madsen opened this issue 1 year ago • 27 comments

Rebooting of shutting down and booting makes the sound device change back to another sound source

kasper-madsen avatar Feb 14 '24 19:02 kasper-madsen

I get the same issue - but only in GameUI

I have an ayaneo am02 computer with chimeraos, plugged to a TV. Everything appears to work out of the box - had no driver issues and suspense and resume works fine.

I keep setting the sound output in gameui to the hdmi (tv) and after a restart the setting gets reverted. Gnome shell does persist my setting which is nice.

Another thing that doesnt persist is the selected session. If i reboot from gnome-shell, it will come back as gameui

blurymind avatar Feb 19 '24 09:02 blurymind

I experience that as well. Refering to this older issue https://github.com/ChimeraOS/chimeraos/issues/74 there should be audio controls in the web interface. Did not yet tinker with it myself, I'll try later

tbyte80 avatar Feb 19 '24 13:02 tbyte80

changing it in gameui works fine for me. The problem is that it does not persist when you turn it off or restart the machine - it falls back to the same default.

I am guessing that in my case, when the device boots up, if it does before the tv is on - it could decide that the hdmi output is gone and fall back to the initial one.

In that case it would be nice if it had the concept of a prefered output and be able to sustain it once found instead. I am guessing that gnome-shell doesnt have this problem because it does have to concept of a prefered output to use when that output becomes available. This is just a wild guess

blurymind avatar Feb 19 '24 15:02 blurymind

i have to correc myself - i turned it on yesterday and it had lost the sound settings in gnome-shell as well

blurymind avatar Feb 20 '24 14:02 blurymind

Ok, so for me symptoms are the same. The audio output device is not remembered neither in gnome shell nor game ui.

Since chimera uses pipewire I installed pavucontrol (used tty3 to unlock pacman). In pavucontrol under output devices you can set a default output. Which is being remembered between reboots but doesn't affect the sound settings in gnome shell and game ui.

There must be some different tool/layer that controls audio or I am missing something. I also don't understand why sound settings in gnome shell are so sparse. Iirc there should be a "Set Default" option somewhere.

(I checked that compatibility layer pipewire-pulse is installed so pavucontrol should also work with pipewire. In theory.)

While further investigating I noticed that wireplumber is installed to manage pipewire sessions which may or may not conflict with pavucontrol. I also stumbled upon the following unresolved issue which may be related: https://bugzilla.redhat.com/show_bug.cgi?id=2026170

I tried to set the default sink using pactl like suggested here: https://www.reddit.com/r/archlinux/comments/ozcxpa/pipewire_how_to_set_default_sink_persistently/ which seemed to work but doesn't persist across sessions. Well, I am out of ideas for now.

tbyte80 avatar Feb 22 '24 10:02 tbyte80

Same issue. I need to set HDMI as audio output every time. Being able to set HDMI as default and auto switch to it on boot (or HDMI handshake) would be great 👍

muzzwood avatar Feb 26 '24 00:02 muzzwood

Can everyone affected please try the following:

  • Permanently change your session to gnome: chimera-session desktop
  • Adjust your sound settings as desired
  • Reboot and check if the issue persists.

pastaq avatar Feb 26 '24 16:02 pastaq

It worked when rebooting to desktop, but once you switch back to steam it goes back to the family setting

jtkellys avatar Mar 01 '24 06:03 jtkellys

Same problem for me. Tried pactl and it works in desktop mode, but gaming mode audio settings reset to default every boot:( Setup - desktop PC + HDMI TV

sapkyy avatar Mar 06 '24 09:03 sapkyy

Alright, looks like its only present in gamemode. That's a start. If you haven't already, please post your build/system hardware list and what sound device you are trying to use.

pastaq avatar Mar 06 '24 22:03 pastaq

I can also confirm that when rebooting to desktop sound settings are indeed persisting (gnome shell settings used). My setup is a Minisforum HX99G Mini PC which runs on Ryzen 9 6900HX and RX 6650M GPU. Mainboard: AMD Promontory/Bixby FCH, external PSU.

I am picking HDMI as audio output device

tbyte80 avatar Mar 08 '24 12:03 tbyte80

Yes Same for me on Steam Deck LCD. After restart, He changed automatically from HDMI Audio to speakers

lm209 avatar Mar 11 '24 17:03 lm209

Same for me on a Ser5 Mini PC (5560u model). I have to manually set it after each restart, installing any fix has not worked.

NYXZGames avatar Mar 11 '24 21:03 NYXZGames

I "fixed" this by going into the BIOS and disabling the motherboards audio device. This needs an official fix though so people can use multiple outputs (not to mention inputs) without having to set audio device on each startup.

jimlei avatar Mar 15 '24 07:03 jimlei

I've just installed Bazzit OS now, doesn't seem to be an issue on there if you're after a Steam Deck OS style experience.

NYXZGames avatar Mar 16 '24 08:03 NYXZGames

Yes Bazzite has no issue with it.

lm209 avatar Mar 17 '24 03:03 lm209

After fighting with this for a few hours, I think I found a solution that works after reboot and doesn't require and messing around in the BIOS or disabling kernel modules.

Use pactl list short sinks to get a list of sinks. The sink name is the second field, probably a long string. Try each one using pactl set-default-sink <sink-name> Once you figure out which sink is the one you want to use, add the line: PULSE_SINK=<sink-name> to the /etc/environment file.

Just got the SteamOS boot sound for the first time!

zerotohero avatar Apr 07 '24 07:04 zerotohero

Great, that works!

tbyte80 avatar Apr 07 '24 11:04 tbyte80

I dunno if this helps on chimera (manjaro over here but my "fix" can give you guys some ideas) but if you have the convolver sound fix -> https://github.com/aarron-lee/legion-go-tricks/tree/main/experimental_sound_fix

Personally I do this to make the convolver audio the default output:

sudo nano /usr/bin/steamos-polkit-helpers/steamos-priv-write

and I added at the top of the file

pw-metadata 0 default.configured.audio.sink '{ "name": "Legion GO" }' pw-metadata 0 default.audio.sink '{ "name": "Legion GO" }' pactl set-default-sink "Legion GO"

I had to at least once in desktop select "Legion GO" has sound output and reboot from desktop so desktop also remembered.

So I assume it would work for any device given the correct name is used for audio sink.

adolfotregosa avatar Apr 07 '24 13:04 adolfotregosa

After fighting with this for a few hours, I think I found a solution that works after reboot and doesn't require and messing around in the BIOS or disabling kernel modules.

Use pactl list short sinks to get a list of sinks. The sink name is the second field, probably a long string. Try each one using pactl set-default-sink <sink-name> Once you figure out which sink is the one you want to use, add the line: PULSE_SINK=<sink-name> to the /etc/environment file.

Just got the SteamOS boot sound for the first time!

FYI you can also add it as a drop-in, e.g. /etc/environment.d/set-default-sink.conf which will have the benefit of not interfering with any future changes in the stock /etc/environment file, though it currently appears to be unused.

ghost avatar Apr 10 '24 05:04 ghost