Steam kills all sound on system

Questions about Wine on Linux
Locked
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Steam kills all sound on system

Post by Dead Zeppelin »

Hey,

I just installed Steam with wine and I'm experiencing a really strange problem. When Steam is running, I can't hear any sounds in my system, no matter if they are from a steam game or a random audio file on the system. As soon as I kill the steam process, all sound immidiately goes back on. I am running Arch Linux.

Any ideas? Thanks.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

http://wiki.winehq.org/Sound (see section on Limitations)
Simon of Aragon
Level 3
Level 3
Posts: 94
Joined: Sat Sep 08, 2012 3:56 pm

Re: Steam kills all sound on system

Post by Simon of Aragon »

I don't know if Arch Linux uses Pulse Audio or not but I have mine permanently disabled for all the popping and cracking. The noise is not limited to WINE either. Pulse has been a thorn in my side more and more as all the distros seem to be integrating it into the software.

I can appreciate the Pulse Audio developers have to deal with multiple hardware, many distributions, desktops, and applications. However that is where my sympathy ends, because prior to Pulse Audio, there wasn't an issue, and the developers of Esound, OSS, and Alsa had the same responsibilities on their shoulders.

Now that I use 14.04 Trusty Kubuntu I had to use the command pulseaudio --kill after creating a no spawn key in the hidden .pulse folder. You would need to create a text file called client.conf that contains the line; autospawn=no

I could be wrong about your issue relating to Pulse Audio, however shutting it down is always been recommended in the past. You can always turn it back on (pulseaudio --start). Also I don't run my Steam Account through WINE since all the games I purchased are Linux versions. I have no experience with the Windows version.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

Simon of Aragon wrote: I could be wrong about your issue relating to Pulse Audio, however shutting it down is always been recommended in the past.
Shutting down PulseAudio hasn't been recommended since the audio rewrite four years ago, and is explicitly advised against on the Sound wiki page.
Simon of Aragon
Level 3
Level 3
Posts: 94
Joined: Sat Sep 08, 2012 3:56 pm

Re: Steam kills all sound on system

Post by Simon of Aragon »

Interesting, regardless PA is dead on my distribution and my sound couldn't be better. Maybe you should update your pinned post about Pulse Audio?
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

dimesio wrote:http://wiki.winehq.org/Sound (see section on Limitations)
It's seems like it's not a problem caused by Wine itself. If I close Steam I get sound, even through the winecfg sound test. But as soon as I launch steam with wine, the sound test isn't audible anymore. The driver shown in my winecfg is winealsa.drv.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

Maybe you should update your pinned post about Pulse Audio?
There's nothing to update. That post does not recommend disabling Pulseaudio, nor does the Sound wiki page it links to.

Certainly people who don't want PulseAudio for other reasons can disable it, and if PulseAudio isn't working for native apps it can't be expected to work properly in Wine, either. But http://wiki.winehq.org/Sound explicitly advises against disabling it just to solve Wine sound problems. The one exception is for people using versions of PulseAudio older than 1.0, because it was known to have bugs that affected Wine, but not many people fall into that category any more.

BTW, the problem the OP describes is more likely to be caused by not using PulseAudio (or some other sound server) than by using it. If the sound card doesn't support hardware mixing (most don't), it needs to be done in software. If Wine is set to access the sound hardware directly, it will monopolize it. My guess is that's what's happening here, with Steam grabbing control of the sound card, and nothing else able to access it. Of course, I could be wrong, but based on the description of the problem, that is the first thing I'd investigate.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

Dead Zeppelin wrote: It's seems like it's not a problem caused by Wine itself. If I close Steam I get sound, even through the winecfg sound test. But as soon as I launch steam with wine, the sound test isn't audible anymore. The driver shown in my winecfg is winealsa.drv.
So the question is, are you using PulseAudio or something else that provides mixing (e.g., dmix)? What I think is happening is that your system doesn't support mixing, and Steam is preventing anything else from accessing the sound card.
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

dimesio wrote:
Dead Zeppelin wrote: It's seems like it's not a problem caused by Wine itself. If I close Steam I get sound, even through the winecfg sound test. But as soon as I launch steam with wine, the sound test isn't audible anymore. The driver shown in my winecfg is winealsa.drv.
So the question is, are you using PulseAudio or something else that provides mixing (e.g., dmix)? What I think is happening is that your system doesn't support mixing, and Steam is preventing anything else from accessing the sound card.
I have Pulseaudio as the default sound card.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

On the audio tab in winecfg, what is the Output Device?
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

dimesio wrote:On the audio tab in winecfg, what is the Output Device?
System Default.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

Is the problem only with Steam, or does it happen when you use any app in Wine that uses sound?

Do you have 32 bit alsa-plugins installed?

Is this a clean wineprefix (no native dlls, Windows version left at XP, no changes to the registry)? If not, please test one.

And yes, try pasuspender and see if that solves the problem.
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

dimesio wrote:Is the problem only with Steam, or does it happen when you use any app in Wine that uses sound?

Do you have 32 bit alsa-plugins installed?

Is this a clean wineprefix (no native dlls, Windows version left at XP, no changes to the registry)? If not, please test one.

And yes, try pasuspender and see if that solves the problem.
I don't have any other wine apps, so I don't know.
WINEARCH=win32 WINEPREFIX=~/.wine winecfgWINEARCH=win32 WINEPREFIX=~/.wine winecfg
I've installed the 32 bit alsa-plugins, do I need to do anything special to make them work?

I'm not completely sure on the whole WINEPREFIX thing, but I read on the FAQ and I've ran this:

Code: Select all

unset WINEPREFIX

Code: Select all

WINEARCH=win32 WINEPREFIX=~/.wine winecfg
So now I should have a 'clean' prefix with win32 enabled, right?

Thanks again for your time btw
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

Dead Zeppelin wrote:

Code: Select all

WINEARCH=win32 WINEPREFIX=~/.wine winecfg
So now I should have a 'clean' prefix with win32 enabled, right?
That will create ~/.wine as a clean 32 bit wineprefix provided ~/.wine didn't already exist. If it did already exist, that command would either give an error message about the architecture (if ~/.wine was 64 bit) or (if ~/.wine was 32 bit) just open winecfg in the existing, probably not-clean, wineprefix. So if you didn't delete or rename ~/.wine before doing that, you need to, and then recreate it.

Once you have a clean wineprefix, install a simple non-Steam game to it and see if sound works. If you're not sure what to try, http://qrostar.skr.jp/data/jelly1000.zip should work. It's a small download, and the game doesn't even need to be installed. Just extract the contents of the zip file to the wineprefix and run jelly.exe.
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

dimesio wrote:
Dead Zeppelin wrote:

Code: Select all

WINEARCH=win32 WINEPREFIX=~/.wine winecfg
So now I should have a 'clean' prefix with win32 enabled, right?
That will create ~/.wine as a clean 32 bit wineprefix provided ~/.wine didn't already exist. If it did already exist, that command would either give an error message about the architecture (if ~/.wine was 64 bit) or (if ~/.wine was 32 bit) just open winecfg in the existing, probably not-clean, wineprefix. So if you didn't delete or rename ~/.wine before doing that, you need to, and then recreate it.

Once you have a clean wineprefix, install a simple non-Steam game to it and see if sound works. If you're not sure what to try, http://qrostar.skr.jp/data/jelly1000.zip should work. It's a small download, and the game doesn't even need to be installed. Just extract the contents of the zip file to the wineprefix and run jelly.exe.
I see. So here I tried removing the existing prefix and adding the 32-bit one. Getting a lot of errors in the log though:

Code: Select all

[samuel@sampc ~]$ sudo rm -r ~/.wine
[sudo] password for root: 
[samuel@sampc ~]$ WINEARCH=win32 WINEPREFIX=~/.wine winecfg
wine: created the configuration directory '/home/samuel/.wine'
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80040155
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80040155
err:ole:get_local_server_stream Failed: 80040155
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80040155
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80040155
err:ole:get_local_server_stream Failed: 80040155
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
err:winediag:schan_imp_init Failed to load libgnutls, secure connections will not be available.
fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x69e6d901, context 0x713de0, init_notify 0, handle 0xfde794): stub
fixme:iphlpapi:CancelMibChangeNotify2 (handle (nil)): stub
wine: configuration in '/home/samuel/.wine' has been updated.
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
The jelly game launched (very fun btw) with sound perfectly. I got a steam game running as well with sound (!!) but after rebooting I can't get steam to start. It just gets stuck at "Connecting to steam account".
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

Dead Zeppelin wrote: I see. So here I tried removing the existing prefix and adding the 32-bit one. Getting a lot of errors in the log though:

Code: Select all

[samuel@sampc ~]$ sudo rm -r ~/.wine
[sudo] password for root: 
You shouldn't need sudo to delete your user's ~/.wine, and if you did, it suggests you might have created it as sudo or installed something to it as sudo. If that was the case, messed-up permissions could have been the cause of your sound problems.

The console output you posted for wineprefix creation looks normal, except for this:

Code: Select all

err:winediag:schan_imp_init Failed to load libgnutls, secure connections will not be available.
That error could well be the cause of Steam not being able to connect. You are probably missing 32 bit libgnutls.
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

dimesio wrote:
Dead Zeppelin wrote: I see. So here I tried removing the existing prefix and adding the 32-bit one. Getting a lot of errors in the log though:

Code: Select all

[samuel@sampc ~]$ sudo rm -r ~/.wine
[sudo] password for root: 
You shouldn't need sudo to delete your user's ~/.wine, and if you did, it suggests you might have created it as sudo or installed something to it as sudo. If that was the case, messed-up permissions could have been the cause of your sound problems.

The console output you posted for wineprefix creation looks normal, except for this:

Code: Select all

err:winediag:schan_imp_init Failed to load libgnutls, secure connections will not be available.
That error could well be the cause of Steam not being able to connect. You are probably missing 32 bit libgnutls.
I installed 32-lib gnutls. It worked through two reboots and after the third reboot, the problem came back. Steam is getting stuck att connecting.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

Dead Zeppelin wrote: I installed 32-lib gnutls. It worked through two reboots and after the third reboot, the problem came back. Steam is getting stuck att connecting.
That's very odd. Are you sure it's not just some intermittent problem with Steam's servers or your ISP? Assuming it's not, post console output.
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

dimesio wrote:
Dead Zeppelin wrote: I installed 32-lib gnutls. It worked through two reboots and after the third reboot, the problem came back. Steam is getting stuck att connecting.
That's very odd. Are you sure it's not just some intermittent problem with Steam's servers or your ISP? Assuming it's not, post console output.
This is what I get when I launch wine steam through terminal. Sorry if this isn't what you meant by "console output", in that case please specify.

Code: Select all

[samuel@sampc ~]$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe
wine: cannot find '/home/samuel/.wine/drive_c/Program Files (x86)/Steam/Steam.exe'
[samuel@sampc ~]$ wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:ver:GetCurrentPackageId (0x32e420 (nil)): stub
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[2015-07-30 20:54:40] Startup - updater built Jul 23 2015 11:47:39
[2015-07-30 20:54:40] Verifying installation...

[2015-07-30 20:54:40] Verification complete
fixme:advapi:EventRegister {47a9201e-73b0-42ce-9821-7e134361bc6f}, 0x3f006c50, 0x3f040ce8, 0x3f040ce0
fixme:advapi:EventRegister {58a9201e-73b0-42ce-9821-7e134361bc70}, 0x3f006c50, 0x3f040d20, 0x3f040d18
fixme:advapi:EventRegister {3fa9201e-73b0-43fe-9821-7e145359bc6f}, 0x3f006c50, 0x3f040cb0, 0x3f040ca8
fixme:advapi:EventRegister {1432afee-73b0-42ce-9821-7e134361b433}, 0x3f006c50, 0x3f040d58, 0x3f040d50
fixme:advapi:EventRegister {4372afee-73b0-42ce-9821-7e134361b519}, 0x3f006c50, 0x3f040d90, 0x3f040d88
fixme:process:SetProcessShutdownParameters (00000100, 00000000): partial stub.
fixme:imm:ImmGetOpenStatus (0x1cb6f8): semi-stub
fixme:ver:GetCurrentPackageId (0x32e1e4 (nil)): stub
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:heap:RtlSetHeapInformation 0x110000 0 0x33fc6c 4 stub
fixme:ver:GetCurrentPackageId (0x30e3c0 (nil)): stub
fixme:wbemprox:wbem_locator_ConnectServer unsupported flags
fixme:wbemprox:client_security_SetBlanket 0x7d08b6fc, 0x426d100, 10, 0, (null), 3, 3, (nil), 0x00000000
fixme:wbemprox:client_security_Release 0x7d08b6fc
fixme:hnetcfg:fw_apps_get__NewEnum 0x42ac598, 0xd6be4bc
fixme:wbemprox:wbem_locator_ConnectServer unsupported flags
fixme:wbemprox:client_security_SetBlanket 0x7d08b6fc, 0x4340620, 10, 0, (null), 3, 3, (nil), 0x00000000
fixme:wbemprox:client_security_Release 0x7d08b6fc
fixme:hnetcfg:fw_app_put_ProcessImageFileName 0x4249928, L"C:\\Program Files\\Steam\\steam.exe"
fixme:hnetcfg:fw_app_put_Name 0x4249928, L"Steam"
fixme:hnetcfg:fw_app_put_Enabled 0x4249928, -1
fixme:hnetcfg:fw_apps_Add 0x43405b0, 0x4249928
err:ole:CoGetClassObject class {e2b3c97f-6ae1-41ac-817a-f6f92166d7dd} not registered
err:ole:CoGetClassObject no class object {e2b3c97f-6ae1-41ac-817a-f6f92166d7dd} could be created for context 0x1
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
fixme:wbemprox:enum_class_object_Next timeout not supported
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
fixme:wbemprox:enum_class_object_Next timeout not supported
fixme:wbemprox:enum_class_object_Next timeout not supported
fixme:wbemprox:enum_class_object_Next timeout not supported
fixme:wbemprox:enum_class_object_Next timeout not supported
fixme:process:SetProcessDEPPolicy (3): stub
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:imm:ImmDisableTextFrameService Stub
fixme:thread:GetThreadPreferredUILanguages 56, 0x33f744, (nil) 0x33f748
fixme:winsock:WSALookupServiceBeginW (0x33f634 0x00000ff0 0x33f670) Stub!
[0730/205440:ERROR:network_change_notifier_win.cc(173)] WSALookupServiceBegin failed with: 8
fixme:iphlpapi:NotifyAddrChange (Handle 0x33f77c, overlapped 0x14b720): stub
fixme:win:RegisterDeviceNotificationW (hwnd=0x100ae, filter=0x33f788,flags=0x00000000) returns a fake device notification handle!
fixme:win:RegisterDeviceNotificationW (hwnd=0x100ae, filter=0x33f788,flags=0x00000000) returns a fake device notification handle!
fixme:ver:GetCurrentPackageId (0x33f374 (nil)): stub
fixme:win:EnumDisplayDevicesW ((null),0,0x33f0c0,0x00000000), stub!
fixme:ver:GetCurrentPackageId (0x33fb38 (nil)): stub
fixme:iphlpapi:NotifyAddrChange (Handle 0x1f303cc, overlapped 0x1f303d0): stub
fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_HANDLE_INFORMATION
fixme:win:RegisterDeviceNotificationA (hwnd=0x20040, filter=0xdede4ac,flags=0x00000004) returns a fake device notification handle!
[2015-07-30 20:54:40] Background update loop checking for update. . .
[2015-07-30 20:54:40] Checking for available update...
fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform
fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported
err:ole:CoGetClassObject class {77f10cf0-3db5-4966-b520-b7c54fd35ed6} not registered
err:ole:CoGetClassObject no class object {77f10cf0-3db5-4966-b520-b7c54fd35ed6} could be created for context 0x1
fixme:imm:ImmReleaseContext (0x2003e, 0x439dcc0): stub
fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
Thanks for bearing with me.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

Yes, that is what I meant by console output.

Code: Select all

[0730/205440:ERROR:network_change_notifier_win.cc(173)] WSALookupServiceBegin failed with: 8
That looks related, but I don't know why you're getting that error message (and it's not a Wine message). I get the same fixme:winsock that comes right before it, but not the error message, and I can connect.

You say it worked for awhile. Did anything change on your system between the time it worked and the time it stopped working (including installing anything into that wineprefix)?
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Steam kills all sound on system

Post by spoon0042 »

dimesio wrote:

Code: Select all

[0730/205440:ERROR:network_change_notifier_win.cc(173)] WSALookupServiceBegin failed with: 8
That looks related, but I don't know why you're getting that error message (and it's not a Wine message). I get the same fixme:winsock that comes right before it, but not the error message, and I can connect.
I get that message all the time and it doesn't seem to affect anything.
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

dimesio wrote:Yes, that is what I meant by console output.

Code: Select all

[0730/205440:ERROR:network_change_notifier_win.cc(173)] WSALookupServiceBegin failed with: 8
That looks related, but I don't know why you're getting that error message (and it's not a Wine message). I get the same fixme:winsock that comes right before it, but not the error message, and I can connect.

You say it worked for awhile. Did anything change on your system between the time it worked and the time it stopped working (including installing anything into that wineprefix)?
I have not done anything to change wine or steam. Sometimes it just works and sometimes it doesn't it seems that if I have had my system running for a while, the chances are greater that I will be able to launch it.
Dead Zeppelin
Level 2
Level 2
Posts: 11
Joined: Mon Jul 20, 2015 7:31 am

Re: Steam kills all sound on system

Post by Dead Zeppelin »

I am truly grateful for your help and this problem is still occuring, I haven't been able to get into steam for a while now. Would love to reach a a solution but I feel I have no idea how to proceed.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Steam kills all sound on system

Post by dimesio »

If it sometimes works and sometimes doesn't, that suggests something outside of Wine. Unfortunately, I have no idea what that something might be other than intermittent connection issues. Any problems with native apps? What about the Linux version of Steam?
Locked