PDA

View Full Version : [xfce] Hary/xfce : pulseaudio as a service is for root only ;-(



manatlan
April 25th, 2008, 09:50 PM
I'd dist-upgraded from gutsy to hardy. No trouble
I use mainly XFCE4, and it seems that pulseaudio is only available under gnome-session, because it seems it replace ESd in the core.

SO under xfce4, pulseaudio is not activate ...
when i run "pulseaudio" in a terminal ... all seems works.

But i'd like to be able to run it as a service. So i edited the /etc/init.d/pulseaudio, to be able to start the service when session start. (on hardy, the service pulseaudio is not activated, because, like a say before, it's integrated in the esg/gnome)

So, under xfce/hardy, the pulseaudio start now as a service, and all audio applications reach to play audio thru pulse audio (mpd, totem, ...)

But because as a service, it's started as root ... all pulseaudio utilities are not able to connect to pulse (paplay, pavucontrol, pavumeter ...), by saying "connection refused : access denied" ... (note: if i run "sudo pavumeter" : it can't connect too !!?!)
(If i start pulseaudio under a terminal, without root rights, all this tools reach to connect)

So, how can I do to be able to run pulseaudio as a service, and to be able to use pulseaudio tools in the same time ???

please help
I had googled a lot, but found nothing ...

stevodude
May 23rd, 2008, 01:15 AM
I to would like to know how to do this.

Have" ubunut 8.04
Pulseaudio
MPD running as a service when pc starts.
now I cannot hear any music play when I connect using mpd clients (ie ncmpc) until I log into gnome...

This is an unsatisfactory way to run an audio engine specially on linux...
should be as a startup daemon service.

Cyan_Fire
January 19th, 2009, 07:52 AM
Did you figure it out? If not, you need to add users to the pulse-access group to be able to connect to pulseaudio, as documented here (http://pulseaudio.org/wiki/SystemWideInstance).

Also, you shouldn't modify the init script itself but instead the settings in /etc/default/pulseaudio.