Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[workaround] Prevent PulseAudio from taking over your system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Oct 27, 2012 7:47 pm    Post subject: [workaround] Prevent PulseAudio from taking over your system Reply with quote

If you have PA installed you may have noticed alsamixer, among other things, is now broken. This is because someone thought it was clever to make media-sound/pulseaudio[alsa] depend on media-plugins/alsa-plugins[pulseaudio] unconditionally. What this dependency does is install a bunch of plugins not actually required for PA to use ALSA, and drops a few turds in /usr/share/alsa/ that takes away access to your actual sound card.

Gentoo isn't GNOME OS, so here's some shell script to make it go away and, more importantly, stay away:
Code:
(
    cd /usr/share/alsa/alsa.conf.d/
    for i in *pulse*.conf; do : > $i; done
    chmod a-w *pulse*.conf
    chattr +i *pulse*.conf
)
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Sat Oct 27, 2012 8:07 pm    Post subject: Reply with quote

Alsamixer works fine for me with PA. Do you have PA 2.*?

Here is what I've got installed:
Code:
# eix -I pulse
[I] media-plugins/gst-plugins-pulse
     Available versions:  (0.10) 0.10.23^t 0.10.28^t 0.10.30^t [M]~0.10.31^t
     Installed versions:  0.10.30(0.10)^t(03:42:33 27.10.2011)
     Homepage:            http://gstreamer.freedesktop.org/
     Description:         GStreamer plugin for the PulseAudio sound server

[I] media-sound/pulseaudio
     Available versions:  0.9.22-r2 1.1-r1 ~2.0-r1 ~2.0-r2 ~2.1 ~2.1-r1 **9999 {{+X +alsa +asyncns avahi bluetooth +caps dbus doc equalizer +gdbm +glib gnome gtk ipv6 jack libsamplerate lirc +orc oss realtime ssl system-wide systemd tcpd test +udev +webrtc-aec xen}}
     Installed versions:  1.1-r1(13:47:39 09.04.2012)(X alsa asyncns avahi bluetooth caps dbus doc gdbm glib gnome ipv6 libsamplerate orc ssl tcpd udev -equalizer -jack -lirc -oss -realtime -system-wide -test)
     Homepage:            http://www.pulseaudio.org/
     Description:         A networked sound server with an advanced plugin system

Found 2 matches.
Code:
# eix -I alsa
[I] dev-python/pyalsa
     Available versions:  1.0.22 1.0.24 1.0.25 ~1.0.26
     Installed versions:  1.0.25(06:54:39 05.03.2012)
     Homepage:            http://alsa-project.org/
     Description:         Python bindings for ALSA library

[I] media-libs/alsa-lib
     Available versions:  1.0.24.1 1.0.25-r1 ~1.0.26 {{alisp alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol debug doc python static-libs}}
     Installed versions:  1.0.25-r1(19:48:03 10.07.2012)(doc python -alisp -debug)
     Homepage:            http://www.alsa-project.org/
     Description:         Advanced Linux Sound Architecture Library

[I] media-plugins/alsa-plugins
     Available versions:  1.0.24 ~1.0.25 1.0.25-r1 ~1.0.25-r2 ~1.0.26 {{debug ffmpeg jack libsamplerate pulseaudio speex}}
     Installed versions:  1.0.25-r1(22:30:19 13.04.2012)(ffmpeg libsamplerate pulseaudio speex -debug -jack)
     Homepage:            http://www.alsa-project.org/
     Description:         ALSA extra plugins

[I] media-plugins/gst-plugins-alsa
     Available versions:  (0.10) 0.10.32^t 0.10.35^t [M]~0.10.36^t
     Installed versions:  0.10.35(0.10)^t(01:38:34 27.10.2011)
     Homepage:            http://gstreamer.freedesktop.org/
     Description:         plugin for gstreamer

[I] media-sound/alsa-headers
     Available versions:  1.0.23^bs 1.0.24^bs 1.0.25^bs **9999^bs
     Installed versions:  1.0.25^bs(01:02:28 05.03.2012)
     Homepage:            http://www.alsa-project.org/
     Description:         Header files for Advanced Linux Sound Architecture kernel modules

[I] media-sound/alsa-tools
     Available versions:  (0.9) 1.0.23 ~1.0.24.1 1.0.25 ~1.0.26
   {{alsa_cards_darla20 alsa_cards_darla24 alsa_cards_echo3g alsa_cards_emu10k1 alsa_cards_emu10k1x alsa_cards_gina20 alsa_cards_gina24 alsa_cards_hdsp alsa_cards_hdspm alsa_cards_ice1712 alsa_cards_indigo alsa_cards_indigoio alsa_cards_layla20 alsa_cards_layla24 alsa_cards_mia alsa_cards_mixart alsa_cards_mona alsa_cards_pcxhr alsa_cards_rme32 alsa_cards_rme96 alsa_cards_sb16 alsa_cards_sbawe alsa_cards_sscape alsa_cards_usb-usx2y alsa_cards_vx222 fltk gtk}}
     Installed versions:  1.0.25(0.9)(11:00:54 05.03.2012)(fltk gtk -alsa_cards_darla20 -alsa_cards_darla24 -alsa_cards_echo3g -alsa_cards_emu10k1 -alsa_cards_emu10k1x -alsa_cards_gina20 -alsa_cards_gina24 -alsa_cards_hdsp -alsa_cards_hdspm -alsa_cards_ice1712 -alsa_cards_indigo -alsa_cards_indigoio -alsa_cards_layla20 -alsa_cards_layla24 -alsa_cards_mia -alsa_cards_mixart -alsa_cards_mona -alsa_cards_pcxhr -alsa_cards_rme32 -alsa_cards_rme96 -alsa_cards_sb16 -alsa_cards_sbawe -alsa_cards_sscape -alsa_cards_usb-usx2y -alsa_cards_vx222)
     Homepage:            http://www.alsa-project.org/
     Description:         Advanced Linux Sound Architecture tools

[I] media-sound/alsa-utils
     Available versions:  (0.9) 1.0.24.2-r1 1.0.25-r1 ~1.0.26
   {{doc minimal nls selinux}}
     Installed versions:  1.0.25-r1(0.9)(12:12:27 05.03.2012)(doc nls -minimal)
     Homepage:            http://www.alsa-project.org/
     Description:         Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)

Found 7 matches.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Oct 27, 2012 9:34 pm    Post subject: Reply with quote

I'm using ~amd64. Every update for the past few months has broken things so that I have to manually tell alsamixer to control the card.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Sat Oct 27, 2012 9:45 pm    Post subject: Reply with quote

I'm running somewhat stable, but with lot's of keyworderd packages. Gotta remember to stay clear of PA2...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum