Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[L4D2] [LINUX] audio settings doesn't saving

Open gamidov-r opened this issue 10 years ago • 33 comments

Hi. I have audio system 5.1 I choose in settings "speaker 5.1" and after re-launch the game I need repeat choosing in settings "speaker 5.1", because this option doesn't save

my system: debian jessie 64bit with gnome 3.14 GTX580 and propietary video driver

P.S. in CS:GO it's fixed:)

gamidov-r avatar Apr 01 '15 11:04 gamidov-r

Closing as this appears to have been fixed.

kisak-valve avatar Dec 30 '16 00:12 kisak-valve

THis is not fixed! I go to record video.

gamidov-r avatar Jan 14 '17 14:01 gamidov-r

  1. open Left 4 Dead 2 game
  2. go to audio settings
  3. change speakers from default 5.1 to another (ex. 2 speakers)
  4. close game
  5. open game again
  6. go to audio settings
  7. look for speakers preset
  8. profit https://www.youtube.com/watch?v=CkmWUEARQRg&feature=youtu.be

gamidov-r avatar Jan 14 '17 14:01 gamidov-r

Hello @steamlinux, please copy your system information from steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report. In particular, is the game generating a CrashID or minidump in /tmp/dumps on game exit?

This sounds like the game is crashing on exit before the setting change gets saved to the config file. Are you using any launch options with the game? Separately, if you add LANG=C %command% to the game's launch options, does the sound setting change work as expected?

kisak-valve avatar Jan 14 '17 14:01 kisak-valve

my system information from Steam help (in russia) http://pastebin.com/TZjFGi07 my inxi -xbbb output http://pastebin.com/tRNaXycc my game don't create minidumps (empty dir) I have launch options "-dev +dsp_enhance_stereo 1 +mat_queue_mode 0" now I try without launch options and with only "LANG=C %command%", audio settings doesn't save

P.S. before update (I do not remember exactly, it seems 6 oct 2015) game always change speakers to "2 speakers", I always change to "5.1", now game change always to "5.1" and I change to "2 speakers", because after update sound reversed on this presets. with "5.1" preset work 2 channels (front-left, front-right), with "2 speakers" work all 6 channels i can record video about this

gamidov-r avatar Jan 15 '17 09:01 gamidov-r

game updated and this bug doesn't fixed, sadly

gamidov-r avatar Jan 25 '17 20:01 gamidov-r

Its still a issue! :)

vfjpl avatar Apr 16 '17 19:04 vfjpl

I hate this issue! :( in CS:GO this bug fixed about 1 week in L4D2 valve don't try (!) fix this about >3 years

gamidov-r avatar Apr 16 '17 22:04 gamidov-r

bump?

gamidov-r avatar Jan 22 '18 17:01 gamidov-r

Figured I would leave a message hear seems as my somewhat similar issue got closed.

Left 4 Dead 2 detecting wrong speaker configuration upon startup and ignoring last speaker configuration selection on the latest LTS release of Ubuntu

I am not sure why this happens. On the OS level my audio output is set to my motherboards builtin audio output with the analogue stereo output profile selected however every time I launch Left 4 Dead 2 the in-game speaker configuration setting gets set to 5.1 speakers instead of either 2 speakers or headphones.

This raises two issues. The first issue is Left 4 Dead 2 doesn't save the selection you chose prier in the speaker configuration setting, instead it determines the setting on each launch regardless to what you chose to set it to previously. The second issue is Left 4 Dead 2 isn't detecting the correct speaker configuration in the first place.

Steps to produce issue:

  1. Launch Left 4 Dead 2
  2. Change the speaker configuration setting from 5.1 speakers to headphones
  3. Quit Left 4 Dead 2
  4. Launch Left 4 Dead 2

What's expected to happen: Left 4 Dead 2 remembers you've selected headphones under the speaker configuration setting.

What actually happens: Left 4 Dead 2 incorrectly assumes you're using 5.1 speakers and changes your previous selection.

This is a somewhat annoying issue because the only solution is to change this setting every time you launch the game. I really hope this issue is looked into further and possible fixed. Best regards, a long time Left 4 Dead 2 fan.

ghost avatar Apr 18 '20 16:04 ghost

This bug has lasted probably some years now, and sadly no one seem to care about l4d2 anymore. Wish they would fix some random crashes as well, but so far they doesn't seem to create a new l4d game either. I could survive a manual console command to set the audio as well, but it doesn't seem to exists..

olehj avatar Apr 22 '20 21:04 olehj

This bug has lasted probably some years now, and sadly no one seem to care about l4d2 anymore. Wish they would fix some random crashes as well, but so far they doesn't seem to create a new l4d game either. I could survive a manual console command to set the audio as well, but it doesn't seem to exists..

Well you see my problem is if they're going to continue to sell a game for money the least they could do is support it on the latest versions of Windows and Ubuntu LTS.

ghost avatar Apr 22 '20 23:04 ghost

This bug has lasted probably some years now, and sadly no one seem to care about l4d2 anymore. Wish they would fix some random crashes as well, but so far they doesn't seem to create a new l4d game either. I could survive a manual console command to set the audio as well, but it doesn't seem to exists..

Well you see my problem is if they're going to continue to sell a game for money the least they could do is support it on the latest versions of Windows and Ubuntu LTS.

I agree.

I also get the problem that the in-game voice gets disabled if I choose "Headphones" when I'm already playing the game. So I must wait for a new chapter for it to work again. It's really annoying. Tried to disable, and enable it manually by the voice setup or hotkeys, but that didn't work either. The hotkey/bind for push-to-talk doesn't seem to work.

olehj avatar May 06 '20 20:05 olehj

I also get the problem that the in-game voice gets disabled if I choose "Headphones" when I'm already playing the game. So I must wait for a new chapter for it to work again. It's really annoying. Tried to disable, and enable it manually by the voice setup or hotkeys, but that didn't work either. The hotkey/bind for push-to-talk doesn't seem to work.

That is issue #2756

undeference avatar May 06 '20 22:05 undeference

@ghost

This is a somewhat annoying issue because the only solution is to change this setting every time you launch the game. I really hope this issue is looked into further and possible fixed. Best regards, a long time Left 4 Dead 2 fan.

I hope that with the new update this will be corrected, it is very embarrassing every time to have to configure the audio, please Valve fix this problem

ViNi-Arco avatar Sep 24 '20 18:09 ViNi-Arco

@ghost

This is a somewhat annoying issue because the only solution is to change this setting every time you launch the game. I really hope this issue is looked into further and possible fixed. Best regards, a long time Left 4 Dead 2 fan.

I hope that with the new update this will be corrected, it is very embarrassing every time to have to configure the audio, please Valve fix this problem

I can confirm that it doesn't...

olehj avatar Sep 24 '20 18:09 olehj

@olehj

I can confirm that it doesn't...

Truth.

Edit: Although the L4D2 is working well in the gameplay part, there hasn't been a fix for the sound issue after the update yet :/

l4d2update

ViNi-Arco avatar Sep 24 '20 20:09 ViNi-Arco

Folks ! today an update of just over 600Kb came out, and the problem was solved here, can you test to see if it solved for you too?

ViNi-Arco avatar Sep 27 '20 01:09 ViNi-Arco

Not fixed

undeference avatar Sep 27 '20 01:09 undeference

uhmm, after more tests I came to the conclusion that it is not 100% corrected, after closing and opening the L4D2 once, it keeps the saved audio settings: audiol4d2

now, if I close and open it twice it resets the audio configuration :( audiol4d2-2

ViNi-Arco avatar Sep 27 '20 01:09 ViNi-Arco

Two more years!

traverseda avatar Feb 14 '22 01:02 traverseda

Still broken as ever! :D

pukmajster avatar Mar 08 '22 21:03 pukmajster

and if you do change it.. the microphone get issues/does not work, can't remember.., but bugs!

olehj avatar Mar 21 '22 21:03 olehj

kinda hilarious how it's still not fixed, at least give us a command like windows_speaker_config and no problem

TheCraZyDuDee avatar May 30 '22 18:05 TheCraZyDuDee

yeah how come this setting isn't a regular convar? I went throught list of convars/concmds and failed to find anything

pukmajster avatar Jun 05 '22 15:06 pukmajster

Bump

pukmajster avatar Dec 25 '22 15:12 pukmajster

There is a variable, that exists in every Source 1 game: "snd_surround_speakers". It is set to -1 by default in Left 4 Dead 2, which means "autodetect". However, this variable is missing FCVAR_ARCHIVE flag, and thus not written to the config.cfg. It doesn't have FCVAR_LAUNCHER flag either (that would allow setting as before game starts, if passed as a parameter). In fact, it does not have any flags, despite being completely functional. Variable can be changed while playing, if you use VScript, however, this is a dumb solution, because it is much faster to change it by hand in the menu, than running a host to make script change it for you.

XandrosDarkstorm avatar Feb 16 '23 16:02 XandrosDarkstorm

Would an autoexec change the value of the convar though?

pukmajster avatar Feb 26 '23 22:02 pukmajster

Would an autoexec change the value of the convar though?

No it will not, because this variable does not have necessary flags set in the game library. It can be changed using VScript, but that means your sound can be changed only when you are playing on your own server (VScript works only when you host your own local server). I made an addon for that, but this is not a proper fix.

XandrosDarkstorm avatar Feb 26 '23 22:02 XandrosDarkstorm

What is funny is that almost the same situation is on Windows systems. The reason why there is no issue saving this parameter on Windows is because this parameter is saved somewhere in Registry instead — something that does not exist on non-Windows platforms.

XandrosDarkstorm avatar Feb 26 '23 22:02 XandrosDarkstorm