ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.22k stars 174 forks source link

several games have no sound on fedora 21 #3864

Closed MaxPayneFH closed 5 years ago

MaxPayneFH commented 9 years ago

While trying to play non valve games on fedora 21, I found out to my dismay that they don't have sound, despite appearing to work very well on the visual side of things.

Games with sound: All valve games I've tried Civilization Beyond Earth Civilization V Serius Sam 3

Games without sound: Bioshock: Infinite BorderLands 2 Chivalry: Medieval Warfare Killing Floor Metro 2033 Redux Metro: Last Light Metro: Last Light Redux The Witcher 2: Assasins of Kings Enhanced Edition Worms Reloaded

Back when I was still using fedora 20 I had sound on Metro: Last Light and Killing Floor, but nowadays they are mute.

Hopefully someone will have figured out a way to bring back sound to these games, but searching the issues here only showed up unrelated stuff.

Basic System Specs: OS: Fedora 21 Window Manager: Gnome 3.14.2 kernel: 4.0.4 Video Driver: 352.09(Nvidia beta proprietary driver directlly from their website) Sound card: Realtek ALC889 (motherboard integrated sound card) CPU: AMD FX8350 RAM: 16GB Video Cards: Nvidia GTX760 SLI(AA mode)

Thanks in adavance for any help given.

Celexi commented 9 years ago

Hi,

I did not have any issues in fedora 21 ( now in 22 ) with sound, except for dota 2 which required a selinux exception (selinux troubleshooter will tell you) is your pulseaudio properly set and not corrupted?

MaxPayneFH commented 9 years ago

Hello,

How can you tell if pulseaudio is corrupted or not? Apart from the games I mentioned before, sound works pretty well, even in vlc, clementine, firefox, teamspeak, mumble and probablly any other program I haven't tried. csgo had an selinux exception that made the game crash, but that was solved on selinux troubleshooter, and not sure it was ever sound related in the first place, apart from that there's that bug(https://github.com/ValveSoftware/Counter-Strike-Global-Offensive/issues/12#issuecomment-107076835) that prevents you from changing speaker configuration the headphones, however that seems to be something csgo specific.

MaxPayneFH commented 9 years ago

After trying some of the games on other distros and goggling a little, I found out that Metro: Last light and Killing Floor have sound on ubuntu 14.04LTS out of the box, on OpenSuse Tumbleweed Killing Floor and THE Witcher 2 also as sound out of the box but Metro: Last light does not, fortunately adding SDL_AUDIODRIVER=alsa %command% to the launch options is a workaround.

On Fedora 21 the same workaround by itself did not work, it was necessary to run "pulseaudio --kill" and "alsactl kill rescan" on the terminal for sound to work, this workaround on fedora worked for all the Metro franchise games, Killing Floor, Chivalry: Medieval Warfare and Borderlands 2, unfortunately it didn't work for Bioshock: Infinite, The Witcher 2 and Worms Reloaded, so amongst the games on my library those remain without sound on Fedora 21.

MaxPayneFH commented 9 years ago

Not sure if this was partially fixed on your end or on fedora's but the games that didn't have sound at all even with workaround now have sound on fedora 21, that games that required the annoying workaround to have sound still need so. The most weird situation is on Chivalry Medieval Warfare, where you have sound on the intro (the unreal engine logo thin and stuff), but then no sound in-game if your not using the workaround, and if you use the workaround there is no sound during the unreal engine logo thing but at least there is sound in-game.

Tried fedora 22 on a different partition and there Metro 2033 had sound without the workaround.

If this partial fix was your doing you have my thanks

MaxPayneFH commented 9 years ago

Not sure if this was partially fixed on your end or on fedora's but the games that didn't have sound at all even with workaround now have sound on fedora 21, the games that required the annoying workaround to have sound still need so. The most weird situation is on Chivalry Medieval Warfare, where you have sound on the intro (the unreal engine logo thing and stuff), but then no sound in-game if your not using the workaround, and if you use the workaround there is no sound during the unreal engine logo thing but at least there is sound in-game.

Tried fedora 22 on a different partition and there Metro 2033 had sound without the workaround.

If this partial fix was your doing you have my thanks

Germano0 commented 7 years ago

Confirming on Fedora 24 with steam-1.0.0.53-1.fc24.i686. SDL_AUDIODRIVER=alsa steam does not solve the problem, but I could see some particular messages like

>>> Adding process 3375 for game ID *removed_for_privacy*
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

I attached some useful infos at https://gist.github.com/Germano0/892e9de85c07229f5daaad4269f59500

Tele42 commented 7 years ago

Hello @Germano0, please copy the majority of your last comment into a gist and link it in the comment instead of having a large spam post.

Germano0 commented 7 years ago

@Tele42 done Downstream bugreport https://bugzilla.rpmfusion.org/show_bug.cgi?id=4372

Germano0 commented 7 years ago

This sounds crazy: I killed pulseaudio with $ pulseaudio -k (the autospawn was already been disabled), then runned $ pulseaudio -vvvvv and the problem suddendly disappeared. I attach the pulseaudio log at https://bugzilla.rpmfusion.org/attachment.cgi?id=1701 Tomorrow I will test if the problem is still reproducible.

UPDATE Yes I can reproduce the problem. @MaxPayneFH could you please provide a feedback about the just mentioned pulseaudio commands? Thank you

kisak-valve commented 6 years ago

Hello @MaxPayneFH, are you still experiencing this this issue with an up to date system?

kisak-valve commented 5 years ago

Closing pending feedback.