SteamOS icon indicating copy to clipboard operation
SteamOS copied to clipboard

Surround 5.1 audio not working for games (only stereo output), setting doesn't survive reboot.

Open DNKROZ opened this issue 1 year ago • 45 comments
trafficstars

Your system information

  • Steam client version: 1726256783
  • SteamOS version: 3.6.13
  • Opted into Steam client beta?: No
  • Opted into SteamOS beta?: Yes
  • Have you checked for updates in Settings > System?: Yes

Please describe your issue in as much detail as possible:

Hardware tested is a Steamdeck OLED 512 GB version using the official dock (sw updated) and a direct HDMI connection to a Marantz SR7011 receiver (no ARC being used), 5.1 audio has been tested and used multiple times, daily, with several other elements (Apple TV, nVidia Shield, PS4, PS3, Nintendo Switch... and so on...) and it's working fine so I rule out the receiver and cable completely. With SteamOS current stable version audio is 2.0 by default, I can get to Desktop Mode and change the audio properties of the current device being used (HDMI connection) and change those properties from Stereo to 5.1 mode, I can also test the individual output speakers and they work perfectly fine, when I get to Game Mode I see that the AV receiver is currently getting a LPCM 5.1 signal and all speakers are active (and also LFE channel), when I launch a game (I've tested with Alan Wake 2 (Epic), RDR2 (Steam), Cyberpunk 2077 (GOG) I get a 5.1 sound (RDR2 and Cyberpunk 2077 need to configure the audio in their settings but Alan Wake does this automatically), if I reboot the Steam Deck I'm still getting a LPCM 5.1 signal and games still function the same with the expected 5.1 audio.

Using SteamOS current Beta (and second RC, this is the thing that worries me most) I get the same 2.0 audio by default but redoing the same steps never end in a 5.1 working audio for games and it does not survive a reboot (2.0 signal after reboot). I can get to Desktop Mode and change the audio properties to 5.1 and the speaker test works perfectly fine but no 5.1 audio in any game (only stereo and even if the audio signal is still being identified as 5.1), there is no difference if the game is launched from Game Mode or Desktop Mode.

Steps for reproducing this issue:

  1. From Game Mode get to Desktop Mode (since we don't have a way to change this from the Game Mode UI).
  2. Select the correct audio device at audio settings and change several times from Stereo to 5.1 (for good measure) and leave 5.1 selected.
  3. Go to extended properties (top middle icon if I remember correctly) and click the "Test" button, verify that every speaker works as expected (this works for me)
  4. Launch any game from Desktop Mode or go to Game Mode (check the signal at the AV receiver and you should see a LPCM 5.1 audio signal) and launch any game and you 'll get Stereo output even if the output signal is still 5.1, doesn't matter if you configure the game with 5.1 audio (RDR2 or Cyberpunk 2077)
  5. Downgrade to Stable version and retrace these steps and you should get a 5.1 signal AND 5.1 audio in game everytime.

DNKROZ avatar Sep 15 '24 11:09 DNKROZ

I have exactly the same problem, in stable it works correctly and even holds up after a reboot, but if I update to beta or preview, the surround sound is lost and it only outputs in PCM 2.0.

Gausak avatar Sep 15 '24 13:09 Gausak

Thanks for the input @Gausak , can you check if your receiver still gets a 5.1 LPCM signal? (I get a visual feeback in mine using the "info" button, with signal, active speakers for that signal and current active speakers), I think this is important, because the output signal seems fine, but I only get Stereo output from the two front speakers.

DNKROZ avatar Sep 15 '24 13:09 DNKROZ

On the receiver it shows PCM 2.0, it is the only difference with respect to your error, I suppose it is a question of how the Steam Deck is connected to the AV (in my case I use a jsaux and fiber optic dock, not via HDMI)

Gausak avatar Sep 15 '24 13:09 Gausak

I see, thanks for the input, what signal do you get when you are in stable?, as far as I remember, 5.1 LPCM signals are only available via HDMI connections and I can't get AC3 or Dolby or anything aside that, maybe it uses compressed formats when only fiber optic is available, I'm just curious.

DNKROZ avatar Sep 15 '24 13:09 DNKROZ

I think it outputs LPCM 5.1, nothing from Dolby or similar, right now I couldn't tell you 100%

Gausak avatar Sep 15 '24 13:09 Gausak

Thank you, lets see if anyone has any more info or workaround for this issue. Regards.

EDIT: Confirmed broken also on 3.7 update track

DNKROZ avatar Sep 15 '24 13:09 DNKROZ

@DNKROZ not only that, many TVs and receivers <2022 only support ARC which doesn’t do 5.1+ PCM passthrough, because there isn’t enough bandwidth. You need eARC for surround PCM passthrough.

It would be nice if Valve added a “Dolby” purchase to the Steam store that unlocked Dolby Digital Plus, maybe even Dolby Atmos compression. Although honestly that should have been folded into the purchase price of the Deck. It’s only a few dollars of licensing fees, and now instead most Deck owners with gear from <2022 are boned.

ahydronous avatar Oct 18 '24 15:10 ahydronous

I've just updated to 3.6.19 stable (you know... for science) and the bug is still present, no way to recover 5.1 audio now (since you can't roll back from stable) :(

DNKROZ avatar Oct 24 '24 18:10 DNKROZ

SteamDeck Oled 512 Steam OS 3.6.19 JSAUX Dock LG C1 LG SC9S connected through EARC

I’m facing the same problem. In desktop mode, it correctly detects the eARC soundbar, and with the built-in testing sounds, I can confirm that everything is working fine. However, when switching back to game mode, games that worked perfectly on the previous stable build (3.5.X) are no longer working.

JorgeRamirezDEV avatar Oct 25 '24 11:10 JorgeRamirezDEV

Can confirm as well. This should be easier to configure with a dedicated audio channel option in Game Mode, without needing to go into Desktop Mode.

aemiliu5 avatar Oct 28 '24 23:10 aemiliu5

Can also confirm this. As I use the Steam Deck as my main rig (+geforce now) this is a big deal breaker :-( On 3.5.x everything was fine.

cbodenst avatar Nov 01 '24 20:11 cbodenst

Same issue here... looks like they've updated how the audio sinking works with the latest update. https://github.com/ValveSoftware/SteamOS/issues/1671#issuecomment-2435856739

remoteman213 avatar Nov 03 '24 06:11 remoteman213

Anyone found any workarounds for this? Is there a way to disable the "stereo" audio setting? Do the beta or preview channels fix it?

phofferkamp avatar Nov 21 '24 21:11 phofferkamp

+1, seeing the same behavior in a 5.1 setup with the official dock. Testing individual speakers in desktop mode works, but other than that I'm not getting any audio in the rear channels.

coreywjohnson avatar Nov 26 '24 01:11 coreywjohnson

Same here. OS 3.6.20, Dock Firmware 0.13.15.124.

esasse avatar Nov 26 '24 12:11 esasse

Anyone found any workarounds for this? Is there a way to disable the "stereo" audio setting? Do the beta or preview channels fix it?

I have the original Steam Deck (OS version 3.6.20)

I was having a similar issue only with Half-Life 2. I couldn't change my speaker configuration in the Options menu.

I changed the compatiblity setting from "Steam Linux Runtime 1.0 (scout)" to "Proton hotfix" and I was able to change the speaker configuration to "5.1 Speakers" in the audio options menu.

Hope that helps someone.

EDIT:

looks like I also have to unplug and plug back in the usb-c cable from the dock while in gaming mode to get the Deck to output 5.1

tyl0r avatar Dec 09 '24 20:12 tyl0r

Same problem: in desktop mode i can "test" the sound device and get sound from all 5.1 channels. But when i start games/moonlight its just stereo. It worked perfect on older steam os Versions

EDIT:

TV: SAMSUNG GQ65S90CAT AVR: Denon AVR-X3600H Dock: JSAUX HB0603 Steam OS: SteamOS 3.6.20

MajinChibi avatar Dec 10 '24 22:12 MajinChibi

Any news with the new beta? I´m a litle hesitant to switch to beta myself

MajinChibi avatar Dec 21 '24 14:12 MajinChibi

Nothing new to report. Both beta and stable versions of SteamOS are unable to output multichannel audio properly at this time.

brenttoast avatar Dec 21 '24 14:12 brenttoast

Any news with the new beta? I´m a litle hesitant to switch to beta myself

GUYBRUSH THREEPWOOD!! Anyhoo, as I said over att Reddit – TRAGIC, to say the least, especially since there's no indication of a fix for the coming update.

If only there was a way of petitioning/pressuring Valve for a fix. Not sure if we're being heard.

Hammid avatar Jan 09 '25 17:01 Hammid

Same issue still

prestonsmartuk avatar Jan 12 '25 03:01 prestonsmartuk

There is a fix for this that survives reboots. Valve are using some kind of Pipewire filter that is capable of stereo only. This is why when you test the external device in desktop mode all the channels work, but when you load an app or game it defaults back to stereo only because of the stereo only Pipewire configs.

In the folder /etc/pipewire/pipewire.conf.d you will find 4 filters/virtual sinks. filter-chain-sink.conf, filter-chain.conf, virtual-sink.conf and virtual-source.conf.

If in the user directory of /home/deck/.config/pipewire/pipewire.conf.d you create blank text files with the same names as the ones above and then reboot, it overrides the Pipewire config and these virtual sink and filter chain devices disappear. Then your device will correctly send the right number of audio channels (stereo for inbuilt speakers, 7.1 for external HDMI). I have tested this myself and now get the right 7.1 audio from my Deck to my TV soundbar via eARC.

Hope this helps for now until we can get a proper fix from Valve!

evanractivand avatar Jan 18 '25 14:01 evanractivand

Replying to https://github.com/ValveSoftware/SteamOS/issues/1639#issuecomment-2599729371

Did you do this on stable or beta? I tried on beta and the Deck still only outputs stereo PCM via HDMI. Double-checked 7.1 was selected in PulseAudio Volume Control within game mode.

MamaKrama avatar Jan 18 '25 19:01 MamaKrama

Replying to https://github.com/ValveSoftware/SteamOS/issues/1639#issuecomment-2599729371

God bless you, evanractivand – my hero!! This resolved the main issue I've had with my Steam Deck OLED (White) since I purchased it, drawing shame beside my Nintendo Switch handling LPCM 5.1 without nagging.

The folder ~/.config/pipewire/pipewire.conf.d didn't exist at first, so I created the folders (mkdir) pipewire and inside it, pipewire.conf.d.

Then I touched those empty files inside pipewire.conf.d using command (while in ~/.config/pipewire/pipewire.conf.d):

touch filter-chain-sink.conf filter-chain.conf virtual-sink.conf virtual-source.conf

After rebooting my Steam Deck (first making sure 7.1 surround is selected in Desktop Mode), I heard in-game 7.1 surround for the very first time – and boy was I delighted and surprised. Valve should recruit you, right away! Will spread the word in the Steam forums too, lauding you as the hero!!

Hammid avatar Jan 18 '25 20:01 Hammid

Replying to https://github.com/ValveSoftware/SteamOS/issues/1639#issuecomment-2599729371

Did you do this on stable or beta? I tried on beta and the Deck still only outputs stereo PCM via HDMI. Double-checked 7.1 was selected in PulseAudio Volume Control within game mode.

Worked PERFECTLY for me in Stable ;) Double-check your paths and file names look fine.

Hammid avatar Jan 18 '25 20:01 Hammid

Replying to #1639 (comment)

Did you do this on stable or beta? I tried on beta and the Deck still only outputs stereo PCM via HDMI. Double-checked 7.1 was selected in PulseAudio Volume Control within game mode.

Worked PERFECTLY for me in Stable ;) Double-check your paths and file names look fine.

Reinstalled SteamOS and it works for me, too! Great workaround! Only issue I’m having now is that surround settings do not survive reboots. PulseAudio control must be opened through Game Mode each boot to switch setting back to 5.1 or 7.1.

MamaKrama avatar Jan 18 '25 21:01 MamaKrama

Replying to https://github.com/ValveSoftware/SteamOS/issues/1639#issuecomment-2600116175

I'm sure there's a way to have proper working profiles for Pipewire that automatically switch to the most appropriate audio output device so it doesn't have to be done manually, maybe with some scripting. This is ultimately what Valve should do, correct automatic audio device selection and channel mapping on internal speakers or external HDMI devices when connected.

I'm no Arch Linux or Pipewire guru though, just an IT guy who stumbled on this solution as a workaround for now so I could play some It Takes Two on the TV with my partner with working surround. So I'm not entirely sure but someone cleverer than me can probably work the rest out :)

evanractivand avatar Jan 19 '25 01:01 evanractivand

Just tested this on Stable @evanractivand and I get 5.1 signal AND audio thanks to it, as you said it isn't an optimal solution, but at least I get 5.1 audio now, thank you for this workaround ;)

DNKROZ avatar Jan 19 '25 02:01 DNKROZ

I just had to cry a little bit, when i first heard sound from my rears again.

Thank you @evanractivand

MajinChibi avatar Jan 19 '25 04:01 MajinChibi

There are still super heroes in this modern world! This finally helps. Thank you!

cbodenst avatar Jan 19 '25 08:01 cbodenst