Still confused about Pulse Audio

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Still confused about Pulse Audio

Post by briandc »

Hi all,
just doing some configuring on my desktop pc that had Ubuntu Studio 12.04 (32-bit) and is now running Ubuntu Studio 16.04 (64-bit) (!).. go figure!

Anyways,
I've been getting some small audio glitches (no xruns however), and I was thinking of removing PulseAudio. But purging it also seems to require installing other pulseaudio files instead!
Here's what I got:

Code: Select all

brian@brian-BM5242-BM5342-BM5642:~/realtimeconfigquickscan$ sudo apt-get purge pulseaudio
[sudo] password for brian: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dleyna-server gnome-control-center gnome-control-center-data
  gnome-online-accounts gnome-settings-daemon iio-sensor-proxy libaudit1:i386
  libcap2:i386 libcolord-gtk1 libdleyna-connector-dbus-1.0-1
  libdleyna-core-1.0-3 libfftw3-single3:i386 libgoa-backend-1.0-1
  libgomp1:i386 libgupnp-av-1.0-2 libgupnp-dlna-2.0-3 libpam-systemd:i386
  libpam0g:i386 libpulsedsp:i386 libtdb1:i386
  libwebrtc-audio-processing-0:i386 libxtst6:i386 pulseaudio:i386
  pulseaudio-module-x11:i386 pulseaudio-utils:i386 realmd rtkit:i386
Suggested packages:
  libfftw3-bin:i386 libfftw3-dev:i386 libpam-doc:i386 pavumeter:i386
  pavucontrol:i386 paman:i386 paprefs:i386
The following packages will be REMOVED:
  indicator-sound* mixxx* osspd* osspd-pulseaudio* pulseaudio*
  pulseaudio-module-jack* pulseaudio-module-x11* pulseaudio-utils* rtkit*
  ubuntustudio-audio* unity-control-center* unity-control-center-signon*
The following NEW packages will be installed:
  dleyna-server gnome-control-center gnome-control-center-data
  gnome-online-accounts gnome-settings-daemon iio-sensor-proxy libaudit1:i386
  libcap2:i386 libcolord-gtk1 libdleyna-connector-dbus-1.0-1
  libdleyna-core-1.0-3 libfftw3-single3:i386 libgoa-backend-1.0-1
  libgomp1:i386 libgupnp-av-1.0-2 libgupnp-dlna-2.0-3 libpam-systemd:i386
  libpam0g:i386 libpulsedsp:i386 libtdb1:i386
  libwebrtc-audio-processing-0:i386 libxtst6:i386 pulseaudio:i386
  pulseaudio-module-x11:i386 pulseaudio-utils:i386 realmd rtkit:i386
0 upgraded, 27 newly installed, 12 to remove and 0 not upgraded.
Need to get 7.296 kB of archives.
After this operation, 15,3 MB of additional disk space will be used.

???


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: Still confused about Pulse Audio

Post by CrocoDuck »

Not sure about that, cause I have stopped using Ubuntu years ago now. However, the pulseaudio package has many components and dependencies. It seems that a lot of these components are needed as dependencies from other packages present on your system. As such, apt cannot get rid of them and it will refuse to uninstall them. The only components packages marked for removal are then the ones on which nobody else depends on your system. That is my take on it.
Lyberta
Established Member
Posts: 681
Joined: Sat Nov 01, 2014 8:15 pm
Location: The Internet
Been thanked: 1 time

Re: Still confused about Pulse Audio

Post by Lyberta »

Try

Code: Select all

# aptitude why pulseaudio
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Still confused about Pulse Audio

Post by briandc »

FaTony wrote:Try

Code: Select all

# aptitude why pulseaudio
Here's what I got:

i pulseaudio-module-x11 Depends pulseaudio (= 1:8.0-0ubuntu3)

So does this mean I should purge pulseaudio-module-x11 also? Is that ok or will it give other problems?


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Still confused about Pulse Audio

Post by briandc »

CrocoDuck wrote:Not sure about that, cause I have stopped using Ubuntu years ago now. However, the pulseaudio package has many components and dependencies. It seems that a lot of these components are needed as dependencies from other packages present on your system. As such, apt cannot get rid of them and it will refuse to uninstall them. The only components packages marked for removal are then the ones on which nobody else depends on your system. That is my take on it.
That's pretty much my understanding, too. Maybe getting rid of pulseaudio-moduleX11 will resolve it..


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: Still confused about Pulse Audio

Post by CrocoDuck »

briandc wrote: So does this mean I should purge pulseaudio-module-x11 also? Is that ok or will it give other problems?
I guess you can try it. If that component is needed by your system I guess apt will refuse to uninstall it... But I would search first what the packages does. Maybe it is actually being useful to you in some way...

To be honest I guess apt will complain: it looks like the sort of package it is pulled in as a dependency. If so, you cannot get rid of it without breaking some other package.

Maybe it is wise to post here the output of apt before giving the go to the purge. I don't really want to advice you into breaking audio on your machine...
barbouze
Established Member
Posts: 187
Joined: Tue May 26, 2015 12:26 pm
Has thanked: 2 times
Been thanked: 16 times

Re: Still confused about Pulse Audio

Post by barbouze »

Why not simply disable PulseAudio? This allows you to rely only on Alsa and Jack for your whole system without the risk of breaking it by involuntarily purging essential packages. :wink:
Optionally, you can then install QasMixer and the other Qas tools if needed.
tnovelli
Established Member
Posts: 277
Joined: Wed Apr 20, 2011 4:52 pm

Re: Still confused about Pulse Audio

Post by tnovelli »

Code: Select all

# aptitude why pulseaudio
i   pulseaudio-module-x11 Depends pulseaudio
# aptitude why pulseaudio-module-x11
i   pulseaudio Recommends pulseaudio-module-x11
Chicken-or-egg problem? :lol:

But this looks ok (this is Mint 17.1 MATE edition)

Code: Select all

# apt-get purge pulseaudio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  mate-media-gstreamer mate-settings-daemon-gstreamer
The following packages will be REMOVED:
  libcanberra-pulse* mate-media-pulse* mate-settings-daemon-pulse*
  mint-meta-mate* pulseaudio* pulseaudio-module-bluetooth*
  pulseaudio-module-x11*
The following NEW packages will be installed:
  mate-media-gstreamer mate-settings-daemon-gstreamer
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Still confused about Pulse Audio

Post by briandc »

It appears the issue has something to do with streaming. Mint has its own streamer application, so it doesn't require pulseaudio.
Could that be it?

brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Still confused about Pulse Audio

Post by briandc »

barbouze wrote:Why not simply disable PulseAudio? This allows you to rely only on Alsa and Jack for your whole system without the risk of breaking it by involuntarily purging essential packages. :wink:
Optionally, you can then install QasMixer and the other Qas tools if needed.
Thank you for the tips! I changed the spawn = yes into spawn = no and then killed pulseaudio. Seems to work fine that way, so I guess I can manage Pulse that way for now.


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
User avatar
Xzu Rukneg
Established Member
Posts: 156
Joined: Wed Oct 03, 2012 12:00 pm
Location: France
Contact:

Re: Still confused about Pulse Audio

Post by Xzu Rukneg »

Personally, I resolve all my issue with pulseaudio by using "cadence" .
Some application need pulse-audio and nothing else to work (with audio, of course). Also resolve web browser's issues.
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Still confused about Pulse Audio

Post by briandc »

Xzu Rukneg wrote:Personally, I resolve all my issue with pulseaudio by using "cadence" .
Some application need pulse-audio and nothing else to work (with audio, of course). Also resolve web browser's issues.
Thanks for the tip! I'll try that next time. I haven't explored Cadence all that much yet, but it sounds like a good suggestion-- in particular with regards to web browser audio. ;)


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
User avatar
Xzu Rukneg
Established Member
Posts: 156
Joined: Wed Oct 03, 2012 12:00 pm
Location: France
Contact:

Re: Still confused about Pulse Audio

Post by Xzu Rukneg »

So, [fixed] ? :wink:
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Still confused about Pulse Audio

Post by briandc »

Xzu Rukneg wrote:So, [fixed] ? :wink:
Yes, thanks! At least I have PulseAudio not auto-spawning anymore. I still haven't delved into Cadence (although I have in the past), so that's something on my to-do list now. It might be just what I need to kind of "speed up" the workflow a bit, too.. :)


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
User avatar
Xzu Rukneg
Established Member
Posts: 156
Joined: Wed Oct 03, 2012 12:00 pm
Location: France
Contact:

Re: Still confused about Pulse Audio

Post by Xzu Rukneg »

Personally I always use ALSA->JACK(plugin) bridge, and start pulse audio only when needed (for some web site and few apps, likes games).
All run like if I got a standard alsa-sound card, but I've a firewire one and jack!
Post Reply