steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Steam does not support alsa 1.1.0, no audio

Open kvbev opened this issue 11 years ago • 52 comments

kvbev avatar Nov 18 '15 05:11 kvbev

Same problem here.

ZeXx86 avatar Nov 19 '15 16:11 ZeXx86

Deleting/renaming alsa-lib folde and libasound.so.* in the steam-runtime folder should fix the problem.

~/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/ ~/.steam/steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/ RELATED: #3376

fafryd1125 avatar Nov 19 '15 20:11 fafryd1125

You can also just launch steam like this:

EDIT (2015.11.23, added 64-bit version of lib):

LD_PRELOAD="/usr/lib/libasound.so.2:/usr/lib64/libasound.so.2" steam

And not need to delete files that will come back each time steam updates. :tada:

ryanpcmcquen avatar Nov 20 '15 17:11 ryanpcmcquen

You could also create a wrapper for steam using that LD_PRELOAD method:

EDIT (2015.11.23, added 64-bit version of lib):

#!/bin/sh
LD_PRELOAD="/usr/lib/libasound.so.2:/usr/lib64/libasound.so.2" /usr/bin/steam

Call it /usr/local/bin/steam (so you don't overwrite the one in /usr/bin).

ryanpcmcquen avatar Nov 20 '15 17:11 ryanpcmcquen

Same problem here, I've downgraded to 1.0.29 because it was causing crashes. Additionally, Transistor game stopped working when you launched it on Steam due to this problem.

Edit: I've got PulseAudio installed too.

ismaelgv avatar Nov 23 '15 22:11 ismaelgv

@ChuckDaniels87 have you tried launching steam like this (from the command line)?

LD_PRELOAD="/usr/lib/libasound.so.2:/usr/lib64/libasound.so.2" steam

ryanpcmcquen avatar Nov 23 '15 22:11 ryanpcmcquen

@ryanpcmcquen It works launching steam that way (both Steam audio and Transistor game).

ismaelgv avatar Nov 23 '15 22:11 ismaelgv

@ChuckDaniels87 to make it permanent, create a file named /usr/local/bin/steam (that should take precedence over /usr/bin/steam on most Linux systems.

Put this in it:

#!/bin/sh
LD_PRELOAD="/usr/lib/libasound.so.2:/usr/lib64/libasound.so.2" /usr/bin/steam

UPDATE (2015.12.02): An even better, and shorter way to write this is:

#!/bin/sh
LD_PRELOAD='/usr/$LIB/libasound.so.2' /usr/bin/steam

P.S. The single quotes are important!

ryanpcmcquen avatar Nov 24 '15 02:11 ryanpcmcquen

Thanks for the tip but this bug should be fixed sooner or later. I don't like to make this kind of fixes permanent because I always forgot that I did it in a couple of days (making it really permanent :stuck_out_tongue_winking_eye:). Thank you for the fix anyways! :+1:

ismaelgv avatar Nov 24 '15 08:11 ismaelgv

@ryanpcmcquen When I try launching Steam with LD_PRELOAD="/usr/lib/libasound.so.2:/usr/lib64/libasound.so.2" steam, it says that they can't be preloaded, and says (wrong ELF class: ELFCLASS64): ignored. twice. Similar things happen with the other suggestions here,

ghost avatar Dec 02 '15 12:12 ghost

@Zekario, did you actually see if sound was working?

Here is the thing. Steam is 32-bit, some games (like XCOM: Enemy Unknown), are 64-bit, therefore you need both libraries. That 'error' is innocuous, sound will work. Don't just assume it won't because of that output.

ryanpcmcquen avatar Dec 02 '15 14:12 ryanpcmcquen

@ikokostya the problem with that fix, is that any Steam update is going to bring those files back. The LD_PRELOAD forces the same behavior by loading your system ALSA lib instead of the one bundled with Steam.

ryanpcmcquen avatar Dec 02 '15 14:12 ryanpcmcquen

I assumed it didn't work because nothing happened after I tried it in the terminal. It went back to the prompt and didn't open Steam.

ghost avatar Dec 02 '15 15:12 ghost

Try launching it like this:

LD_PRELOAD='/usr/$LIB/libasound.so.2' /usr/bin/steam &

ryanpcmcquen avatar Dec 02 '15 15:12 ryanpcmcquen

Just in case someone will get the same issue: the "delete *asound*.so* and alsa-related folders from ~/.steam/root/" way worked for me for a week or so, but today CS:GO suddenly started to crash whenever I try to join the game, right before the level is loaded (tried casual mode only, not sure if it affect any other).

Launching steam as @ryanpcmcquen said (LD_PRELOAD='/usr/$LIB/libasound.so.2' /usr/bin/steam &) works OK.

Alsa 1.1.0, Arch Linux rolling x86_64.

ivan-kolmychek avatar Dec 02 '15 18:12 ivan-kolmychek

@ryanpcmcquen That seems to have worked after a restart, I think I already had Steam running. Thanks!

ghost avatar Dec 02 '15 23:12 ghost

@Zekario @ivan-kolmychek :+1:

ryanpcmcquen avatar Dec 03 '15 14:12 ryanpcmcquen

Is there any way to get sound while streaming to Arch working without downgrading alsa-lib? Doesn't seem like this bug will get fixed anytime soon. Setting LD_PRELOAD only works for local games.

Okay, this is strange: alsa-lib < 1.1.0 without lib32-alsa-lib: works alsa-lib = 1.1.0 without lib32-alsa-lib: does not work alsa-lib = 1.1.0 with lib32-alsa-lib: works with LD_PRELOAD='/usr/lib32/libasound.so.2:/usr/lib64/libasound.so.2'

xhsdf avatar Dec 08 '15 21:12 xhsdf

The fix seems to have stopped working, at least on my laptop. Sound doesn't work, despite launching it via the above methods. There was a pretty big Arch update recently, and Steam updated as well.

ghost avatar Dec 12 '15 01:12 ghost

@ryanpcmcquen now steam doesn't want to launch at all :/

EDIT: It launches after a restart, still no sound.

ghost avatar Dec 12 '15 16:12 ghost