ublue-os / bazzite

Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
3.53k stars 201 forks source link

Sound settings not saved across reboots #1339

Open T13nou opened 1 month ago

T13nou commented 1 month ago

Describe the bug

Hi !

I've got my HTPC running Bazzite pretty well but I need to set the sound device at each reboot. I'm using audio thru HDMI as my HTPC is connected to the TV.

When I go to Settings > Audio, I have 3 options

The settings I'm using is the Navi31 HDMI as my HTPC is connected to the TV and renders video & sound thru it.

At each reboot, default (auto) is selected and I need to set again Navi31 HDMI/DP manually.

What did you expect to happen?

That the settings I choose manually keeps the same across reboots.

Output of rpm-ostree status

No response

Hardware

CPU : Intel 13600K GPU : AMD 7900 XT DDR5 : 64 Go

Extra information or context

No response

KyleGospo commented 1 month ago

This is expected behavior, Steam game mode will always default to the output set by Wireplumber. If you need to change that default you need to modify your configs.

T13nou commented 1 month ago

Thanks @KyleGospo ! Can you please explain how could I do that ?

KyleGospo commented 1 month ago
  {
    matches = [
      {
        node.name = "~alsa_input.*"
        alsa.card_name = "Wireless Controller"
      }
      {
        node.name = "~alsa_output.*"
        alsa.card_name = "Wireless Controller"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 90
        priority.session       = 90
      }
    }
  }
]

Here's an example config that lowers the priority of a given output. By changing the priority to be the highest (Get your list of outputs and their priorities with pactl list sinks), you will change the default selected audio output. That same command will also list the various properties you can use to match your desired output.

T13nou commented 1 month ago

Thanks @KyleGospo :) Not sure about where to find this config file and how to change it. Any guidance ?

Thanks !

T13nou