LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-17-2015, 01:51 PM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Steam client (32bit games lacking sound) due to -current updates


Hi. Recently updated -current on x86_64, but should have waited until alienBOB's compat32 packages were also updated... that's my fault for not thinking ahead.

But it has caused all 32bit games to lack sound... i am wondering how can i get sound back in the meantime while patiently waiting for the multilib packages to get an update?

Does anyone know which packages are required for 32bit sound?

I'm aware of convertpkg-compat32 but no idea which packages to convert.
 
Old 11-17-2015, 02:18 PM   #2
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 113

Rep: Reputation: Disabled
If you have full AlienBob multilib install, you have a multilib gcc 4.9.3 package installed, so maybe its worth to wait for AlienBob to update his multilib stuff.
 
Old 11-17-2015, 02:44 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You would likely need to recompile gcc/glibc into multilib.

After that, it is just a matter of using covertpkg-compat32 to convert the needed Slackware 32bit packages into multilib.

The second is much easier than the first.

Unfortunately, it is probably best to wait until Eric provides updated packages.
 
Old 11-18-2015, 03:11 PM   #4
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
I just spotted alienBOB's packages were updated:
http://taper.alienbase.nl/mirrors/pe.../ChangeLog.txt
Code:
current/gcc-5.2.0_multilib-x86_64-1alien.txz:  Upgraded.
current/gcc-g++-5.2.0_multilib-x86_64-1alien.txz:  Upgraded.
current/gcc-gfortran-5.2.0_multilib-x86_64-1alien.txz:  Upgraded.
current/gcc-gnat-5.2.0_multilib-x86_64-1alien.txz:  Upgraded.
current/gcc-go-5.2.0_multilib-x86_64-1alien.txz:  Upgraded.
  Shared library .so-version bump.
current/gcc-java-5.2.0_multilib-x86_64-1alien.txz:  Upgraded.
  Shared library .so-version bump.
current/gcc-objc-5.2.0_multilib-x86_64-1alien.txz:  Upgraded.
14.1/slackware64-compat32:  Refreshed the *compat32 packages.
current/slackware64-compat32:  Refreshed the *compat32 packages.
'slackpkg search alsa'
Code:
   installed           multilib                     alsa-lib-compat32-1.1.0-x86_64-1compat32  
   installed           multilib                     alsa-oss-compat32-1.0.28-x86_64-1compat32
However, i still have no sound in all 32bit games. Including, Team Fortress 2, Counter Strike: Global Offensive, and all games installed via PlayOnLinux have no sound either. All other sound seems to be working as normal...

Is anyone else using steam on a 64bit -current install and can confirm this? I haven't changed any config files since the big update.

But here is my asound.conf anyway:
Code:
pcm.dmixer  {
 	type dmix
 	ipc_key 1024
 	slave {
		pcm "hw:SB,0"
		period_time 0
		period_size 1024
		buffer_size 8192
		rate 44100
		#rate 48000
	}
	bindings {
		0 0
		1 1
	}
}

pcm.asymed {
        type asym
        playback.pcm "dmixer"
        capture.pcm "hw:SB,0" 
} 

pcm.!default {
	type plug
	slave.pcm "asymed"
} 

pcm.default {
	type plug
	slave.pcm "asymed"
} 

ctl.dmixer {
	type hw
	card SB
	device 3
}
Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1                                                                                                     
  Subdevice #0: subdevice #0                                                                                          
card 0: SB [HDA ATI SB], device 1: ALC1150 Digital [ALC1150 Digital]                                                  
  Subdevices: 1/1                                                                                                     
  Subdevice #0: subdevice #0                                                                                          
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]                                                                
  Subdevices: 1/1                                                                                                     
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 
Old 11-18-2015, 03:42 PM   #5
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
edit:
I just fixed sound in csgo by editing /usr/share/alsa/alsa.conf and commenting out the timer hint sections at lines 584 and 630-633. Maybe it is possible to do this using .asoundrc instead of editing the system config files?

I just noticed that multilib has the updated alsa packages now so I updated my alsa-lib to 1.1.0 but steam games still don't work for me. I tried deleting/replacing all the alsa-lib stuff in the steam-runtime directories with the ones from the slackware packages as an experiment but that didn't fix it. I guess steam just doesn't support alsa-lib 1.1.0 yet.

The alsa errors I see in the terminal are:
Code:
ALSA lib timer_hw.c:342:(_snd_timer_hw_open) Unexpected field hint
ALSA lib timer_hw.c:342:(_snd_timer_hw_open) Unexpected field hint
ALSA lib pcm_direct.c:1118:(snd1_pcm_direct_initialize_poll_fd) unable to open timer 'hw:CLASS=3,SCLASS=0,CARD=1,DEV=0,SUBDEV=0'
ALSA lib pcm_dmix.c:1095:(snd_pcm_dmix_open) unable to initialize poll_fd
The alsa-lib changelog at http://www.alsa-project.org/main/ind...v1.0.29_v1.1.0 mentions "Allow hint for ctl, hwdep, timer and seq". Because csgo/portal 2/whatever is linked with an older version of alsa-lib I guess it isn't expecting these extra hint fields in the system config files (at least that is my guess).

Last edited by af7567; 11-18-2015 at 03:46 PM. Reason: "fixed" the problem
 
2 members found this post helpful.
Old 11-18-2015, 04:18 PM   #6
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by af7567 View Post
edit:
I just fixed sound in csgo by editing /usr/share/alsa/alsa.conf and commenting out the timer hint sections at lines 584 and 630-633. Maybe it is possible to do this using .asoundrc instead of editing the system config files?

I just noticed that multilib has the updated alsa packages now so I updated my alsa-lib to 1.1.0 but steam games still don't work for me. I tried deleting/replacing all the alsa-lib stuff in the steam-runtime directories with the ones from the slackware packages as an experiment but that didn't fix it. I guess steam just doesn't support alsa-lib 1.1.0 yet.

The alsa errors I see in the terminal are:
Code:
ALSA lib timer_hw.c:342:(_snd_timer_hw_open) Unexpected field hint
ALSA lib timer_hw.c:342:(_snd_timer_hw_open) Unexpected field hint
ALSA lib pcm_direct.c:1118:(snd1_pcm_direct_initialize_poll_fd) unable to open timer 'hw:CLASS=3,SCLASS=0,CARD=1,DEV=0,SUBDEV=0'
ALSA lib pcm_dmix.c:1095:(snd_pcm_dmix_open) unable to initialize poll_fd
The alsa-lib changelog at http://www.alsa-project.org/main/ind...v1.0.29_v1.1.0 mentions "Allow hint for ctl, hwdep, timer and seq". Because csgo/portal 2/whatever is linked with an older version of alsa-lib I guess it isn't expecting these extra hint fields in the system config files (at least that is my guess).
Many thanks for that information. I have been trying different kernels, rebuilding drivers and other stuff in the hope i'd broken something... i'll keep track of that and try the solution you mentioned. Great help thanks!

edit: it's working! :-D

Last edited by coralfang; 11-18-2015 at 04:22 PM.
 
Old 11-18-2015, 05:41 PM   #7
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by coralfang View Post
edit: it's working! :-D
Just remember to reinstall the alsa-lib packages again when steam updates to support alsa-lib 1.1.0 so that you get the alsa files back to normal . I don't know if they will just have to do a steam-runtime update or if they will need to update each game individually.
 
Old 11-18-2015, 07:03 PM   #8
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
Quote:
Originally Posted by coralfang View Post
Many thanks for that information. I have been trying different kernels, rebuilding drivers and other stuff in the hope i'd broken something... i'll keep track of that and try the solution you mentioned. Great help thanks!

edit: it's working! :-D
Having a similar problem. What did you do to get it working?
 
Old 11-18-2015, 07:16 PM   #9
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
This
Quote:
I just fixed sound in csgo by editing /usr/share/alsa/alsa.conf and commenting out the timer hint sections at lines 584 and 630-633.
 
Old 11-18-2015, 07:34 PM   #10
bsd1101
Member
 
Registered: Jul 2010
Location: Brooklyn NY
Distribution: Slackware 64
Posts: 31

Rep: Reputation: Disabled
editing just those lines did not fix it for me. I didn't have sound in either the steam client itself or the game I was playing; "Talos Principle". I edited out hints from each property of the file. This is the file with all edits.

http://pastie.org/10566314
 
1 members found this post helpful.
Old 11-18-2015, 10:10 PM   #11
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Here is a diff of bsd1101's file (against the default alsa.conf):

https://www.irccloud.com/pastebin/b9.../alsaHint.diff
 
Old 11-19-2015, 05:19 AM   #12
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
For me it took a more than commenting out appropriate lines in /usr/share/alsa/alsa.conf; which did not work, still no sound.

I also had to comment out the appropriate lines in /usr/share/alsa/pcm/default.conf and dmix.conf.

I now have sound in Steam.
 
Old 11-19-2015, 05:22 PM   #13
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Anyone know how to do this without touching the system configs? In other words, using '/etc/asound.conf'?
 
Old 11-20-2015, 11:32 AM   #14
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
I have a better fix, launch steam like so:

Code:
LD_PRELOAD=/usr/lib/libasound.so.2 steam
Talking to Eric about getting this included in the wrapper.
 
3 members found this post helpful.
Old 11-20-2015, 12:13 PM   #15
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by ryanpcmcquen View Post
I have a better fix, launch steam like so:

Code:
LD_PRELOAD=/usr/lib/libasound.so.2 steam
Talking to Eric about getting this included in the wrapper.
Thanks, that works for me. Much nicer than editing the system alsa config files
The steam wrapper already supports this, you just need to add the line to your ~/.steam4slackware file which is included by the steam script in Erics package.

In my ~/.steam4slackware I now have this
Code:
export LD_PRELOAD="/usr/lib/libasound.so.2"
and it is working (and yes I have reinstalled the alsa-lib packages to fix the system files)
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] no sound in some steam games after installing gstreamer ugly syncBQ Slackware 2 05-31-2013 04:10 PM
LXer: Steam client updates LXer Syndicated Linux News 0 12-20-2012 12:44 AM
LXer: Steam Client and Source Games Porting to OSX LXer Syndicated Linux News 0 03-10-2010 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration