Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pulse audio causing delays in firefox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 420

PostPosted: Mon Aug 14, 2017 2:25 am    Post subject: pulse audio causing delays in firefox Reply with quote

When I install pulse-audio, every time I click on a link in firefox (52.2), there is about a 4 second delay before firefox reacts to my clicking on a link in a webpage.

If I uninstall pulse-audio, firefox works just fine, no delays.

Anyone have thoughts on this?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6051
Location: almost Mile High in the USA

PostPosted: Mon Aug 14, 2017 4:44 am    Post subject: Reply with quote

How are you "installing" pulseaudio?

There's a lot of things that need to be put together for it to actually work properly... Normally the least effort way is to set USE=pulseaudio and emerge --deep --newuse @world.

You may be better off using ALSA with firefox until you're forced to use pulseaudio or apulse?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 420

PostPosted: Mon Aug 14, 2017 6:03 pm    Post subject: Reply with quote

I install pulse-audio the normal gentoo way, emerge (and just as you posted -uDN @world). I basically just follow the Gentoo PA wiki page. I have PA because skype now requires it as are so many other apps.

The situation is getting bad, but I guess not enough people really care since all the distros keep going in these directions.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6051
Location: almost Mile High in the USA

PostPosted: Mon Aug 14, 2017 6:28 pm    Post subject: Reply with quote

I would think it's kind of tricky to remove pulseaudio, which seems to sound like it's an easy task (Simply emerge --unmerge pulseaudio doesn't quite cut it). Did you have consolekit up and running as well before PA? What DE are you using? Does PA even work?

Yes people writing software want to "move ahead"... all about "integration"...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 420

PostPosted: Mon Aug 14, 2017 9:18 pm    Post subject: Reply with quote

I've been able to uninstall it quite easily with -C. Actually, I didn't quite understand where consolekit was coming from, sort of thought it was PA since sound only worked when I had consolekit started. My DE is 'awesome' and PA does work most of the time. But I'm not a big sound person.

Heh, moving ahead can be done in different directions. It's not always a "this is the only way."
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6051
Location: almost Mile High in the USA

PostPosted: Tue Aug 15, 2017 3:54 am    Post subject: Reply with quote

So it looks like you don't have pulseaudio un-setup (or setup for that matter) completely if you just uninstalled pulseaudio by emerge -C ... because you still have consolekit installed. Pulseaudio requires consolekit as it uses consolekit to give rights to your sound device.

Since you use awesome you don't really use a true DE and thus don't technically require consolekit. So there's a bit of a learning curve involved with console sessions and pulseaudio that need to be figured out...

Once you had consolekit installed, did you etc-update/dispatch-conf to update the /etc/pam.d/* stuff for consolekit. This would then get consolekit working properly and thus should allow pulseaudio to work.

Then you need to make sure your client programs such as firefox(USE flag, and post 52.* it will be required) and skype(required) to use pulseaudio.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
arnvidr
Guru
Guru


Joined: 19 Aug 2004
Posts: 552
Location: Oslo, Norway

PostPosted: Tue Aug 15, 2017 12:25 pm    Post subject: Reply with quote

eccerr0r wrote:
firefox(USE flag, and post 52.* it will be required
That's not really true. I still had sound in 54, and I haven't noticed missing sound in 55, although I can't be sure if I've yet actually tried to make any sound after upgrading.

edit: Just to clarify, I don't have pulseaudio installed.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6051
Location: almost Mile High in the USA

PostPosted: Tue Aug 15, 2017 3:33 pm    Post subject: Reply with quote

So you're using apulse?

Either way, Firefox after 52 no longer support direct ALSA, and use the pulseaudio API.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
arnvidr
Guru
Guru


Joined: 19 Aug 2004
Posts: 552
Location: Oslo, Norway

PostPosted: Fri Aug 18, 2017 8:48 pm    Post subject: Reply with quote

No, I don't have apulse installed either. The ALSA code has not been removed from firefox yet, at least in gentoo, althought official support is ended. I assume I'll have to install apulse sooner or later.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 204

PostPosted: Mon Aug 21, 2017 7:10 am    Post subject: Reply with quote

Quote:
So you're using apulse?



What does apulse do? For that matter what does pulseaudio actually do...seems it really is pointless to me that if there is a working system (ALSA) what good is adding a layer of senseless programs onto the back of that and calling it a more advanced or better system?

Programmers who aren't really developers should stop trying to make the work of other developers into their own even if it is easier for us to use because they usually are at best modestly successful with their attempts to improve the work of others.

Seriously though, what's the deal with apulse? Does it emulate PA in ALSA? What added features does that provide to ALSA? I was not under the impression that ALSA was on its way out any time soon (am I right with that as well?)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6051
Location: almost Mile High in the USA

PostPosted: Mon Aug 21, 2017 2:45 pm    Post subject: Reply with quote

After using pulseaudio for a while, there are some nice features for it:
Pulseaudio is basically a sound server in userland that virtually replaces the old esd (enlightened sound daemon). Initially I thought pulseaudio was sort of redundant and simply another API, but it does have some features that are nice when it's working properly:

- out of band volume control (my favorite feature - you can change the volume of specific applications without that application actually having a volume control; you can silence that application as well)
Example: Silence Firefox so those pesky ads don't start playing music while you're using your music player to listen to your music - even if you can't find Firefox's own volume control.
- indication of sound levels (since all sound goes through userspace, you can draw vu meters per application and know which one you should silence as per above.)
- sound routing in userspace - tell which applications get sound sent to which devices on your system without being root (uses consolekit for permissions).
- mixing and per-application filters (duplication of dmix features, but you could put also add a software filter on specific application and not others)

If you only run one sound application at a time, a lot of the features of pulseaudio is useless.

apulse is a minimal set of library routines that fake pulseaudio libraries for any binary that was linked to pulseaudio - it was specifically coded for skype where there's no way to rebuild for direct ALSA support, and now for programs that have only pulseaudio support where us mere mortals can't write in direct ALSA support.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 204

PostPosted: Mon Aug 21, 2017 5:18 pm    Post subject: Reply with quote

I see it is more the backend for the programmers developing new software than a true user tool??
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6051
Location: almost Mile High in the USA

PostPosted: Mon Aug 21, 2017 6:11 pm    Post subject: Reply with quote

I don't understand why it seems like it's a backend for developing new software?

Being able to control each sound generating software outside of the actual software is an end-user control that's pretty useful.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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