-
-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Remember sound output between Desktop & Gamescope #912
Comments
This is because Valve doesn't set defaults for audio in Game Mode. They rely on Wireplumber to set the default. You can try going into desktop mode and changing the sound output in the system settings by going into Audio --> Devices --> and fiddling with audio profiles. I assume you're using KDE Plasma because you didn't give any information on that. |
Você precisa desativar o fone de ouvido como fonte de áudio no modo desktop, deixe apenas o HDMI como opção disponível |
I have the same problem. System: Minisforum HX99G |
Actually I really don't understand why bizzite os can't correct something
which is clearly it's problem. Steam deck as console just don't have any
other similar outputs as pc based steam consoles with bazzite os.
sob., 30 mar 2024, 08:20 użytkownik BigNerv ***@***.***>
napisał:
… I have the same problem.
Set the default audio device to HDMI in desktop mode.
After switching to game mode the default audio device is set to speaker
out.
—
Reply to this email directly, view it on GitHub
<#912 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWK7S4IOHRKXEDIA4EO6OLTY2ZKRTAVCNFSM6AAAAABFG2SV56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXHE2TCMRZGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
You have to go to the audio settings in desktop mode and disable headphones as an output. then only HDMI will remain, which will remain as default. In my case it worked. |
It's a Steam Gaming Mode "issue" and because it's proprietary software, we cannot have a universal fix for all hardware. |
Steam game mode defaults to whatever Wireplumber's configured default is. You will need to adjust your configs to correct this. |
How do I modify the WirePlumber config if it’s in /usr/share? Isn’t that directory not able to be modified on ublue? |
It can be modified with configuration files in your home directory, and in |
how can we adjust this? i'm new on linux |
Here is an example I have posted in the forums. Reposting as below I'm only posting this in the perspective of non-deck version of Bazzite (i.e. no game/deck mode). I have a problem that Bazzite switches the default audio device to the onboard sound card when I starts a sunshine stream. I found that the order of audio device is determined by wireplumber. I have successfully set my desktop to use my HDMI monitor (actually connected via DisplayPort) as the default audio device without disabling the onboard sound card. First, open a terminal, run
Note that the ID for "Family 17h..." (my onboard sound card) is 53 and that for HDMI is 62. Then, run
You can see that the priority for the onboard card is 736, while that for the HDMI is 632. As the onboard sound card has higher priority it will be preferred. To fix this, we can add a config file to override the priority value for the onboard card. Open Kate (the text editor), open a new file and paste the following contents:
In the config the part after Save this file as After placing that config file, run the command Double check the priorities using Adapt this to your needs. Just remember that the priority should not be set to higher than 1500. Reference: https://blog.zenlinux.com/2022/08/how-to-configure-audio-device-priorities-in-pipewire-wireplumber/ (However the configuration part is outdated) Edit: I played around the sound setting a little more and found that the "Default Configured Devices" shown in |
For me this does not work because it is not the wrong device, it is the wrong output selected. Always output:hdmi-stereo-extra1 instead of output:hdmi-surround-extra1. So since the update to Fedora 40 i have only stereo sound, before that update everything was fine. Now bazzite can't even play 5.1 sound for me anymore in gamemode. |
I made a wireplumber config, that always the 5.1 profile is selected for the device and put it in "/home//.config/wireplumber/wireplumber.conf.d/51-deprio-onboard.conf", but this does not help. After a reboot always stereo is selected until i ssh into bazzite and do "systemctl --user restart wireplumber". Restarting wireplumber sets the audio to 5.1 as configured in my config. So How can I make this annoying process as ist was before? Obviously my wireplumber config is ignored on boot.... |
Please post your config file and the complete output of |
Sorry I deleted my config file and wiped everything, did a fresh clean install of bazzite deck image and it is still not working.... This is so damn annoying. |
@JaCh0o I was having the same issue, managed to fix it by setting the onboard audio card to Inactive state on Desktop Mode. After reboot the audio was kept on HDMI. |
This is my config file, I don't have problems with selecting the right card, for me the stereo profile is always selected after every boot or when switching between desktop and gamemode. This file is located in "/home/bazzite/.config/wireplumber/wireplumber.conf.d/51-surround.conf" When I ssh into bazzite after gamemode is started and doing "systemctl --user restart wireplumber" 5.1 sound is working. Please provide me a way to have it working like before, without ever touching any config files or ssh into bazzite everytime you want to play... monitor.alsa.rules = [
{
matches = [
{
alsa.name = "HDMI 1"
}
]
actions = {
update-props = {
device.profile = "hdmi-surround-extra1"
}
}
}
] "wpctl status" output after bootwpctl status
PipeWire 'pipewire-0' [1.0.7, bazzite@bazzite, cookie:918612595]
└─ Clients:
31. uresourced [1.0.7, bazzite@bazzite, pid:5874]
32. WirePlumber [1.0.7, bazzite@bazzite, pid:5897]
40. WirePlumber [export] [1.0.7, bazzite@bazzite, pid:5897]
51. Chromium input [1.0.7, bazzite@bazzite, pid:7198]
53. wpctl [1.0.7, bazzite@bazzite, pid:7978]
64. gamescope [1.0.7, bazzite@bazzite, pid:6060]
67. pipewire [1.0.7, bazzite@bazzite, pid:6412]
68. Steam Voice Settings [1.0.7, bazzite@bazzite, pid:6274]
69. Steam [1.0.7, bazzite@bazzite, pid:6274]
Audio
├─ Devices:
│ 41. Navi 31 HDMI/DP Audio [alsa]
│ 42. Rembrandt Radeon High Definition Audio Controller [alsa]
│ 43. Family 17h/19h HD Audio Controller [alsa]
│
├─ Sinks:
│ * 47. Navi 31 HDMI/DP Audio Digital Stereo (HDMI 2) [vol: 1.00]
│
├─ Sources:
│
├─ Filters:
│
└─ Streams:
Video
├─ Devices:
│ 58. OBS Virtual Camera [v4l2]
│
├─ Sinks:
│
├─ Sources:
│ * 65. (null)
│
├─ Filters:
│
└─ Streams:
Settings
└─ Default Configured Devices: "wpctl status" after connecting via ssh into bazzite and executing "systemctl --user restart wireplumber"wpctl status
PipeWire 'pipewire-0' [1.0.7, bazzite@bazzite, cookie:918612595]
└─ Clients:
31. uresourced [1.0.7, bazzite@bazzite, pid:5874]
43. WirePlumber [export] [1.0.7, bazzite@bazzite, pid:8060]
51. Chromium input [1.0.7, bazzite@bazzite, pid:7198]
58. WirePlumber [1.0.7, bazzite@bazzite, pid:8060]
64. gamescope [1.0.7, bazzite@bazzite, pid:6060]
67. pipewire [1.0.7, bazzite@bazzite, pid:6412]
68. Steam Voice Settings [1.0.7, bazzite@bazzite, pid:6274]
69. Steam [1.0.7, bazzite@bazzite, pid:6274]
71. wpctl [1.0.7, bazzite@bazzite, pid:8072]
Audio
├─ Devices:
│ 32. Family 17h/19h HD Audio Controller [alsa]
│ 41. Rembrandt Radeon High Definition Audio Controller [alsa]
│ 42. Navi 31 HDMI/DP Audio [alsa]
│
├─ Sinks:
│ * 39. Navi 31 HDMI/DP Audio Digital Surround 5.1 (HDMI 2) [vol: 1.00]
│
├─ Sources:
│
├─ Filters:
│
└─ Streams:
Video
├─ Devices:
│ 60. OBS Virtual Camera [v4l2]
│
├─ Sinks:
│
├─ Sources:
│ * 65. (null)
│
├─ Filters:
│
└─ Streams:
Settings
└─ Default Configured Devices: "wpctl status" does not show inactive devices, I don't think this is very useful. The main problem for me is, where can I configure it persistently? Even if that would mean I need to fiddle around with this config shit, I really need a solution. |
I have multiple versions of a working wireplumper system.d configs which work all after doing a manual "systemctl --user restart wireplumber" after a reboot. Played around with priorities, default sink and all that stuff. I am out of options. Last try is now to setup a service which just executes this command 30s after a reboot, maybe that helps me at least to avoid to do this manually after every reboot.... I am fighting this issue now for months, it is getting ridiculous that there is no solution for that... |
Ok my "final" solution which seems to work is the following:
[Unit]
Description=Set Sink in PipeWire (user session)
[Service]
Type=oneshot
ExecStart=systemctl --user restart wireplumber
[Install]
WantedBy=default.target
[Unit]
Description=Wait some second before run set-surround.service
[Timer]
OnActiveSec=60sec
AccuracySec=1s
[Install]
WantedBy=timers.target
Tadaaaaa: 60 seconds after boot I have 5.1 sound working. Before I just selected in desktop mode the sound setup and the settings were also valid in game mode. Tell that any Windows user and they will never ever even consider to use this OS :-D |
Hi, @JaCh0o. I'm Dosu, and I'm helping the bazzite team manage their backlog. I'm marking this issue as stale. Issue Summary:
Next Steps:
Thank you for your understanding and contribution! |
This issue still happens on the latest version of bazzite. It happens when switching between desktop mode and gamemode as well as restarting / updating. |
That's because this is working as intended, SteamOS does the exact same thing. This is not an issue, it is a feature request and nobody's working on it. |
But we are not using SteamOS, we are using bazzite, which claims to be a full linux gaming solution, but is is obviously not. Just remove the desktop variant and I can agree to a "new feature", otherwise just make basic requirements to work. As a HTPC/Desktop User bazzite is getting worse, not better |
PRs are open, you are welcome to create this feature. We might even accept it if it doesn't break another use case. |
If I would have any knowledge about that, I would have done that. I guess anyone with this problem would love to do that. Such a poor and sad answer makes me realize, I have to start looking for alternatives and install another OS and losing all my mods... The saddest thing is, when I started using bazzite that all worked like a charm, then it broke and no one cares... |
If this was solved elsewhere it'd be fixed everywhere. This has worked this way since launch and works this way on every alternative. |
I disregard the notion that this is more of a feature request and not a bug. If the vast majority of people expect something to work a certain way, and it doesn’t, then it is a bug. Even if it’s not explicitly the result of unintended behavior, and more of a lack of foresight (on valves part, as they made the source software). However, this is an open source project developed for free in people’s own personal time. Threatening to switch platforms doesn’t change the fact that extra work has to go into altering the default behavior from the source software that this project is based upon. Besides this is Linux. There are ALWAYS steps needed to tinker things the way you like. |
I will leave this feature request locked to contributors until a PR is opened and further discussion is required. |
Describe the bug
Hello,
Every time I restart/turn off/update BazziteOS I have to change sound output settings from mini Jack to sound thru HDMi to my TV. Is there any chance to correct this ?
What did you expect to happen?
I would expect to just set it once and I won't change to any other or this one will disappear it will be set permanently.
Output of
rpm-ostree status
No response
Hardware
No response
Extra information or context
No response
The text was updated successfully, but these errors were encountered: