[pulseaudio-discuss] Hpw to start the pa server

Gene Heskett gene.heskett at verizon.net
Mon Apr 12 08:31:43 PDT 2010

On Monday 12 April 2010, Colin Guthrie wrote:
>'Twas brillig, and Gene Heskett at 12/04/10 07:34 did gyre and gimble:
>> How do I go about starting or restarting PA from a root shell?  None of
>> the other paman or pactl utilities can connect to the server so
>> everything is greyed out ATM.
>This is quite a specific question, but I want to ask a more basic
>question in return. Why do you want to run pulse from a root shell? Is
>there a specific reason to do this.
>Normally PA is started at X11 login by a normal user (see
>start-pulseaudio-x11) but also via autospawning whenever it's needed
>(see client.conf)
>The normal situation of running a sound producing application as root is
>to piggy back on to the X11 root window in order to get connection
>credentials. The root user would then connect to the users PA daemon and
>not create his own one.
>The reason for this revolves around which user is "active". When you
>become root via e.g. su or sudo, the root session is not considered
>"active" and thus consolekit will not hand over device control
>gracefully. If your sound h/w supports it, it would be possible to run
>two PAs at the same time, but like I say, it's generally easier to just
>piggy back on to the users PA via it's root window.
>See here for an explanation of how piggy backing on ot the X11 root
>window actually works.
And I just found xinitd/50pulseaudio, which when I try to launch it as root, 
[root at coyote xinit.d]# ./50pulseaudio
Pulseaudio startup disabled due to soundprofile configuration

However, going into the desktop configuration tool->multimedia, shows that 
the PAServer is the only facility, and the test audio button does nothing but 
kill time while the test plays.  And running paman as me the user now shows 
its connected.  But I'm still silent.

Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
A drama critic is a person who surprises a playwright by informing him
what he meant.
		-- Wilson Mizner

More information about the pulseaudio-discuss mailing list