| View previous topic :: View next topic |
| Author |
Message |
chias n00b

Joined: 06 Nov 2009 Posts: 56 Location: everywhere
|
Posted: Sat Feb 06, 2010 12:47 am Post subject: pulseaudio library woes [solved] |
|
|
Hi
I installed and set up pulseaudio as described in the following two links:
http://en.gentoo-wiki.com/wiki/PulseAudio
http://www.pulseaudio.org/wiki/PerfectSetup
I did not set it up as a "server", and my /etc/asound.conf looks like this:
| Code: |
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
|
I think it's working... although I guess it's hard to tell. Audio streams are for the most part listed in pavucontrol. However, programs like aplay, amixer, alsamixer etc. all fail with this response:
| Code: |
ALSA lib control.c:874:(snd_ctl_open_conf) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_ctl_pulse.so
amixer: Mixer attach default error: No such file or directory
|
I looked around for that file and found it in lib32, but soft-linking and even copying the file had no effect.
Also while I'm griping about pulseaudio, the icons don't seem to work. See:
http://img13.imageshack.us/img13/1228/pavuss.jpg
Can I fix that somehow?
Thanks,
Chias
Last edited by chias on Wed Feb 10, 2010 4:19 pm; edited 1 time in total |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4060
|
Posted: Sat Feb 06, 2010 1:35 am Post subject: |
|
|
Did you emerge alsa-plugins with pulse useflag ?
The icons are probably just an issue of theme. |
|
| Back to top |
|
 |
chias n00b

Joined: 06 Nov 2009 Posts: 56 Location: everywhere
|
Posted: Sun Feb 07, 2010 12:38 am Post subject: |
|
|
Hi
Thanks for your reply. Yes I did.
| Code: |
oliver@human ~ $ equery uses alsa-plugins
[ Searching for packages matching alsa-plugins... ]
[ Colour Code : set unset ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-plugins/alsa-plugins-1.0.20 ]
U I
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
+ + ffmpeg : Enable ffmpeg-based audio/video codec support
+ + jack : Adds support for the JACK Audio Connection Kit
- - libsamplerate : Build with support for converting sample rates using libsamplerate
+ + pulseaudio : Adds support for PulseAudio sound server
- - speex : Adds support for the speex audio codec (used for speech)
|
|
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4060
|
Posted: Sun Feb 07, 2010 1:43 am Post subject: |
|
|
What does 'ls /usr/lib/alsa-lib/lib*pulse*' list ?
What were alsa-lib useflags ? |
|
| Back to top |
|
 |
Rexilion l33t


Joined: 17 Mar 2009 Posts: 974
|
Posted: Sun Feb 07, 2010 10:25 am Post subject: |
|
|
Perhaps your system is inconsistent, to fix it, try this:
emerge -q -1 -n lafilefixer gentoolkit
lafilefixer --justfixit
emerge --pretend --verbose --deep --update --newuse world # first run this with the --pretend flag, and if everything is correct then do it without
emerge --verbose --deep --update --newuse world # like this...
revdep-rebuild |
|
| Back to top |
|
 |
chias n00b

Joined: 06 Nov 2009 Posts: 56 Location: everywhere
|
Posted: Tue Feb 09, 2010 5:55 am Post subject: |
|
|
Thanks for the replies
@VoidMage,
| Code: |
human etc # ls /usr/lib/alsa-lib/lib*pulse*
ls: cannot access /usr/lib/alsa-lib/lib*pulse*: No such file or directory
human etc # ls /usr/lib/alsa-lib/lib*
/usr/lib/alsa-lib/libasound_module_ctl_bluetooth.so
/usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
|
alsa-lib is compiled with every useflag enabled except debug doc and alisp.
@rexilion
running lafilefixer did not resolve the issue. I'm in the middle of doing the emerge (it's doing binutils and icedtea6-bin). Hopefully the revdep-rebuild will solve the issue but i've run it a number of times (albeit pre-lafilefixer) and it hasn't done anything... |
|
| Back to top |
|
 |
Rexilion l33t


Joined: 17 Mar 2009 Posts: 974
|
Posted: Tue Feb 09, 2010 8:53 am Post subject: |
|
|
Revdep-rebuild doesn't always catch everything (unfortunately). What I do is simply re-emerge all the related programs, like:
emerge -1 -q media-sound/alsa-headers media-libs/alsa-lib media-sound/pulseaudio
And any other related sound stuff I missed here... |
|
| Back to top |
|
 |
chias n00b

Joined: 06 Nov 2009 Posts: 56 Location: everywhere
|
Posted: Tue Feb 09, 2010 9:37 am Post subject: |
|
|
Thanks for the tip
I did a "emerge -av -1 -q alsa-headers alsa-lib alsa-utils pulseaudio" followed by an "etc-update" but it did not solve my issues... Is there a way to tell which package is supposed to be pulling in the file "/usr/lib64/alsa-lib/libasound_module_ctl_pulse.so"? |
|
| Back to top |
|
 |
Rexilion l33t


Joined: 17 Mar 2009 Posts: 974
|
Posted: Tue Feb 09, 2010 9:57 am Post subject: |
|
|
| chias wrote: | Thanks for the tip
I did a "emerge -av -1 -q alsa-headers alsa-lib alsa-utils pulseaudio" followed by an "etc-update" but it did not solve my issues... Is there a way to tell which package is supposed to be pulling in the file "/usr/lib64/alsa-lib/libasound_module_ctl_pulse.so"? |
Found it:
USE=pulseaudio emerge -q -1 emul-linux-x86-soundlibs
Did you enable pulseaudio system-wide? (I thought you did, so that is why I asked all the re-emerging...) If you did not, I definitly recommend to do so, to prevent these kind of problems (it this is the case of course). |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4060
|
Posted: Tue Feb 09, 2010 1:30 pm Post subject: |
|
|
Think again, Rexilion.
It's not about emul-linux-x86 packages, the standard libs are from alsa-plugins.
Also, system-wide is discouraged by upstream.
@chias: Paste:
emerge -1pv alsa-lib
emerge -1pv alsa-plugins |
|
| Back to top |
|
 |
Rexilion l33t


Joined: 17 Mar 2009 Posts: 974
|
Posted: Tue Feb 09, 2010 1:35 pm Post subject: |
|
|
| VoidMage wrote: | Think again, Rexilion.
It's not about emul-linux-x86 packages, the standard libs are from alsa-plugins.
Also, system-wide is discouraged by upstream.
@chias: Paste:
emerge -1pv alsa-lib
emerge -1pv alsa-plugins |
Yes, indeed, upstream discourages a system-wide daemon (I should have been more specific). What I meant was, a system-wide *useflag* for pulseaudio (in /etc/make.conf). About the file, I guess you were right. I overlooked :p
http://old.nabble.com/PulseAudio,-multilib,-emul-linux-x86-soundlibs-td13000402.html
it's:
USE=pulseaudio emerge -1 -q alsa-plugins |
|
| Back to top |
|
 |
chias n00b

Joined: 06 Nov 2009 Posts: 56 Location: everywhere
|
Posted: Wed Feb 10, 2010 4:18 pm Post subject: |
|
|
Aaah I got it! VoidMage your suggested pastes gave it away: somehow alsa-plugins was not installed! which confuses me as 'equery uses alsa-plugins' seemed to imply that it was...
Anyway, thanks both of you for your help, it all works now
And sorry for being such a noob...
Yet another problem rears its head: i now have far fewer sliders in alsamixer (a good thing i guess) and cannot move them (not such a good thing) so I don't know how to adjust my volume... |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4060
|
Posted: Thu Feb 11, 2010 2:53 am Post subject: |
|
|
There's pavucontrol (though it's gtkmm) and alsa device is still accessible
in alsamixer, you just need to look for it harder. |
|
| Back to top |
|
 |
86me n00b


Joined: 20 Jul 2009 Posts: 20
|
Posted: Tue Jul 19, 2011 8:32 am Post subject: |
|
|
| Yes, media-plugins/alsa-plugins (with pulseaudio use flag) did the trick. |
|
| Back to top |
|
 |
|