View previous topic :: View next topic |
Author |
Message |
Neskweek n00b
Joined: 20 Jun 2004 Posts: 35 Location: Nantes - France
|
Posted: Sat Dec 08, 2012 3:09 pm Post subject: |
|
|
ExecutorElassus wrote: | I tried this same fix, and now all my audio in wine (say, playing games) sounds horribly distorted and overdriven (and oddly, the intro cinematic plays twice as fast). Further, every time I open alsamixer, the volume for PCM, Surround, and a bunch of other channels is set to 100%. Any guess what's going wrong?
Cheers,
EE |
Pulseaudio is wrongly configured.
That's all |
|
Back to top |
|
|
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Tue Jan 22, 2013 5:28 pm Post subject: |
|
|
Neskweek: so, I'm back here again, with ALSA and pulseaudio not playing nicely together again.
First question: in what way is pulseaudio wrongly configured, and how do I fix it?
Second: now I have no sound at all, with any program, after a recent update. Alsamixer is using the correct soundcard, and the levels are correct. How do I debug?
Thanks,
EE |
|
Back to top |
|
|
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Tue Jan 22, 2013 5:46 pm Post subject: |
|
|
incidentally, to answer the "why are you using pulseaudio" question:
gnome-settings-daemon, gnome-control-center, and gnome-shell all explicitly require pulseadio to be enabled on alsa-plugins. With that installed, many other packages install pulseaudio support in turn.
Is there a way around this behavior?
Cheers,
EE |
|
Back to top |
|
|
FastTurtle Guru
Joined: 03 Sep 2002 Posts: 477 Location: Flakey Shake & Bake Caliornia, USA
|
Posted: Sat Mar 09, 2013 4:27 pm Post subject: |
|
|
ExecutorElassus:
Use /etc/portage/package.use and set the flag as needed only on those apps the explictly depend on pulseaudio. Then do an emerge -pvuN world to see what needs rebuilding w/o pulseaudio, which should not show the gnome settings-daemon gnome-control center and gnome-shell as they already have pulseaudio. It the pretend flag shows them being rebuilt, you need to double check your package.use settings (did you save it and are the packages properly listed). |
|
Back to top |
|
|
Muzer n00b
Joined: 19 Jun 2011 Posts: 9
|
Posted: Wed Apr 03, 2013 12:41 am Post subject: |
|
|
Neskweek wrote: | midnigther wrote: | Problem solved. I disabled the pulseaudio flag. |
Ooooww Common ! :/... Disabling the feature doesn't solve the the problem !!!...
Well then, I got the same problem, and did found the solution here.
The cause : It's a multilib problem:
PulseAudio is set to ALWAYS use 64 bit libraries.
So porgram like Skype, GuitarPro6, Wine 32bit etc... doesn't work because they need 32bit libraries.
There you go for Gentoo (tested and working) :
0. Install, if not done, emul-linux-x86-soundlibs
emerge emul-linux-x86-soundlibs
1. Create /etc/ld.so.conf.d/alsa32.conf with the following contents:
Code: | /usr/lib32/alsa-lib |
2. Create /etc/ld.so.conf.d/alsa64.conf with the following contents:
3. ldconfig
4. Open /usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf in the editor and remove the "/usr/lib/alsa-lib/" prefix from the libasound_module_conf_pulse.so file.
like this :
Code: | # PulseAudio alsa plugin configuration file to set the pulseaudio plugin as
# default output for applications using alsa when pulseaudio is running.
hook_func.pulse_load_if_running {
#replace this
# lib "/usr/lib/alsa-lib/libasound_module_conf_pulse.so"
#by this :
lib "libasound_module_conf_pulse.so"
func "conf_pulse_hook_load_if_running"
}
@hooks [
{
func pulse_load_if_running
files [
"/usr/share/alsa/pulse-default.conf"
"/etc/asound.conf"
"~/.asoundrc"
]
errors false
}
]
|
And that should do it. |
Why is this required now?
I use pulseaudio because I like some of its features and it does indeed seem to unify audio such that it works in stubborn applications, which ALSA alone has never done for me too well. It's also easier to configure things like surround sound up/downmixing, and pavucontrol is a very useful tool. I see no reason to discontinue using pulseaudio.
I'm sure I didn't need it before a recent update, but after it, I do. What has changed? How can I make the fix more permanent so it isn't overwritten every ALSA update? |
|
Back to top |
|
|
gendjaral n00b
Joined: 11 Aug 2012 Posts: 46 Location: DE Munich
|
Posted: Fri Apr 05, 2013 9:58 pm Post subject: |
|
|
Neskweek wrote: |
Ooooww Common ! :/... Disabling the feature doesn't solve the the problem !!!...
|
Full ack!
Neskweek wrote: |
...
4. Open /usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf in the editor and remove the "/usr/lib/alsa-lib/" prefix from the libasound_module_conf_pulse.so file.
...
|
Thanks a lot!
If you visit Germany/Munich I buy you a pizza!
Best,
gendjaral |
|
Back to top |
|
|
heheman3000 n00b
Joined: 22 Oct 2006 Posts: 33
|
Posted: Tue Apr 23, 2013 11:29 pm Post subject: |
|
|
Great! This also fixed my problem with no sound in Starcraft 2 on Wine 1.5.28. |
|
Back to top |
|
|
Muzer n00b
Joined: 19 Jun 2011 Posts: 9
|
Posted: Tue Aug 27, 2013 6:37 pm Post subject: |
|
|
Is it possible to fix this permanently? It's annoying having to reinsert it every update. Perhaps it could be fixed in the package?
EDIT: Lol, I forgot I posted in this thread already, sorry if it seems like I'm repeating myself
I'm wondering if relative paths for libraries would be possible, so if fixing it in the package you could replace the path with alsa-lib/libasound_module_conf_pulse.so - that way you wouldn't need the ld.conf.so.d files either. |
|
Back to top |
|
|
Beresford n00b
Joined: 14 Aug 2005 Posts: 5 Location: Graz
|
Posted: Tue Jun 24, 2014 1:25 pm Post subject: |
|
|
Thank you It worked for me too
Now (in my case) steam works as expected without any spontanious self-kill of itself
Have a nice week
Cheers,
siegfried
Neskweek wrote: | midnigther wrote: | Problem solved. I disabled the pulseaudio flag. |
Ooooww Common ! :/... Disabling the feature doesn't solve the the problem !!!...
Well then, I got the same problem, and did found the solution here.
The cause : It's a multilib problem:
PulseAudio is set to ALWAYS use 64 bit libraries.
So porgram like Skype, GuitarPro6, Wine 32bit etc... doesn't work because they need 32bit libraries.
There you go for Gentoo (tested and working) :
0. Install, if not done, emul-linux-x86-soundlibs
emerge emul-linux-x86-soundlibs
1. Create /etc/ld.so.conf.d/alsa32.conf with the following contents:
Code: | /usr/lib32/alsa-lib |
2. Create /etc/ld.so.conf.d/alsa64.conf with the following contents:
3. ldconfig
4. Open /usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf in the editor and remove the "/usr/lib/alsa-lib/" prefix from the libasound_module_conf_pulse.so file.
like this :
Code: | # PulseAudio alsa plugin configuration file to set the pulseaudio plugin as
# default output for applications using alsa when pulseaudio is running.
hook_func.pulse_load_if_running {
#replace this
# lib "/usr/lib/alsa-lib/libasound_module_conf_pulse.so"
#by this :
lib "libasound_module_conf_pulse.so"
func "conf_pulse_hook_load_if_running"
}
@hooks [
{
func pulse_load_if_running
files [
"/usr/share/alsa/pulse-default.conf"
"/etc/asound.conf"
"~/.asoundrc"
]
errors false
}
]
|
And that should do it. |
|
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
|