[OE-core] [poky][PATCH v5] pulseaudio: Revert "launch: Avoid specifically starting PA and rely on autospawn/socket activation"

Zhu Carol B54851 at freescale.com
Fri Jul 31 09:14:52 UTC 2015


Hi Tanu,
   We had a try about your suggestion " enable autospawning for root by adding "allow-autospawn-for-root = yes" to client.conf.
   It seems an unknown value.
   The log is attached:
   W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
   E: [pulseaudio] conf-parser.c: [/etc/pulse/client.conf:35] Unknown lvalue 'allow-autospawn-for-root' in section 'n/a'.
   E: [autospawn] core-util.c: Home directory not accessible: Permission denied
   W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
   E: [pulseaudio] main.c: Failed to acquire autospawn lock
   

B.R.
Yuqing Zhu

-----Original Message-----
From: Tanu Kaskinen [mailto:tanu.kaskinen at linux.intel.com] 
Sent: Thursday, July 30, 2015 10:41 PM
To: Zhu Yuqing-B54851
Cc: openembedded-core at lists.openembedded.org
Subject: Re: [OE-core] [poky][PATCH v5] pulseaudio: Revert "launch: Avoid specifically starting PA and rely on autospawn/socket activation"

On Fri, 2015-07-31 at 03:06 +0800, Yuqing Zhu wrote:
> Pulseaudio is always started by autospawn, which is there is default 
> process in system, it will start the pulseaudio daemon and the session is always exist, so pulseaudio daemon will be closed.
> 
> But in yocto, pulseaudio only can be started by boot up script, there is no process to start the pulseaudio daemon.
> But this patch remove the starting PA in script, then pulseaudio will be started in yocto.

Sorry, I don't understand what you're trying to say in the commit message.

The patch indicates that you're having trouble with starting PulseAudio.
It looks like autospawning isn't working in your setup. The likely explanations for that are that either you have disabled autospawning, or you're trying to access PulseAudio as root.

If you have disabled autospawning, then to be able to offer advice, I'd need to know why you have disabled it.

If you're trying to access PulseAudio as root, then I suppose you're running a graphical session as root (start-pulseaudio-x11 is relevant for graphical sessions only). That doesn't work out of the box, because in multi-user environments running PulseAudio as root can easily cause trouble for other users, so autospawning is not allowed for root. If there are no regular users in the system, however, you can enable autospawning for root by adding "allow-autospawn-for-root = yes" to client.conf. The sato images use that option, see pulseaudio-client-conf-sato.bb.

--
Tanu



More information about the Openembedded-core mailing list