Received: from mail-yw0-f47.google.com ([209.85.213.47]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QehPT-0002hd-Nu for openembedded-devel@lists.openembedded.org; Thu, 07 Jul 2011 07:45:59 +0200 Received: by ywa12 with SMTP id 12so274522ywa.6 for ; Wed, 06 Jul 2011 22:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=rpJd/cwHsJHNojBFLXkWUG3FyRBe3+JuRLbN5jg3Un8=; b=SsgMGSZb5z6Hz+lh2/VplTrlZg2B+hwEHQrstcgFvr5q60ZGKOm+Ur/r4PnhWegmlm BPgubqx+cKqzoN4K338ChpF3JYYT7SkxSh7BVgVJduJLVKp/BjxWDwBULYkIVh+IQKUy 5Z6Em0R2DAyOBhUG9OVZvcDwhUm9x1gphEL/Y= Received: by 10.236.46.74 with SMTP id q50mr403956yhb.275.1310017328121; Wed, 06 Jul 2011 22:42:08 -0700 (PDT) Received: from localhost.localdomain (dragon.ti.com [192.94.94.33]) by mx.google.com with ESMTPS id e24sm1316696yhk.65.2011.07.06.22.42.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jul 2011 22:42:07 -0700 (PDT) From: Joel A Fernandes To: openembedded-devel@lists.openembedded.org Date: Thu, 7 Jul 2011 00:38:58 -0500 Message-Id: <1310017138-8936-1-git-send-email-agnel.joel@gmail.com> X-Mailer: git-send-email 1.7.0.4 Cc: joelagnel@ti.com, beagleboard@googlegroups.com, k-kooi@ti.com, Joel A Fernandes , jdk@ti.com, beagle@list.ti.com Subject: [PATCH v2] pulseaudio: Run as system-wide instance instead of per-user X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 05:45:59 -0000 * Pulseaudio running as per-user is opening audio devices and blocking everyone else from getting access to the device. The problem is it doesn't even seem to be allowing applications to connect to it, this patch starts it up in system mode instead which is tested and known to work Signed-off-by: Joel A Fernandes --- Changes since earlier version: Sorry I didn't bump the PR! Resending it again .../pulseaudio-system-mode-startup.sh | 4 ++++ recipes/pulseaudio/pulseaudio_0.9.22.bb | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletions(-) create mode 100755 recipes/pulseaudio/pulseaudio-0.9.21/pulseaudio-system-mode-startup.sh diff --git a/recipes/pulseaudio/pulseaudio-0.9.21/pulseaudio-system-mode-startup.sh b/recipes/pulseaudio/pulseaudio-0.9.21/pulseaudio-system-mode-startup.sh new file mode 100755 index 0000000..528ceb9 --- /dev/null +++ b/recipes/pulseaudio/pulseaudio-0.9.21/pulseaudio-system-mode-startup.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "Starting Pulseaudio in system mode.." +pulseaudio --log-target=syslog --system diff --git a/recipes/pulseaudio/pulseaudio_0.9.22.bb b/recipes/pulseaudio/pulseaudio_0.9.22.bb index 2368829..1bc6816 100644 --- a/recipes/pulseaudio/pulseaudio_0.9.22.bb +++ b/recipes/pulseaudio/pulseaudio_0.9.22.bb @@ -1,6 +1,6 @@ require pulseaudio.inc -PR = ${INC_PR}.2 +PR = ${INC_PR}.3 DEPENDS += "gdbm speex" @@ -12,6 +12,10 @@ FILESPATHPKG =. "pulseaudio-0.9.21:" inherit gettext +inherit update-rc.d +INITSCRIPT_NAME = "pulseaudio.sh" +INITSCRIPT_PARAMS = "start 99 2 3 4 5 ." + #SRC_URI += "\ # file://buildfix.patch \ # file://autoconf_version.patch \ @@ -27,6 +31,7 @@ SRC_URI += "\ file://armv4+v5asm.patch \ file://fixbluezbuild.patch \ file://ubacktrace.patch \ + file://pulseaudio-system-mode-startup.sh \ " #do_compile_prepend() { @@ -37,3 +42,13 @@ SRC_URI += "\ SRC_URI[md5sum] = "ca85ab470669b05e100861654cf5eb3c" SRC_URI[sha256sum] = "c6019324395117a258c048a6db5e9734551cc2c61dc35b46403ff00d64be55f0" + +do_install_append() { + # init script to start pulseaudio system-wide + install -d ${D}/${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/pulseaudio-system-mode-startup.sh ${D}/${sysconfdir}/init.d/pulseaudio.sh + + # Disable startup of pulseaudio as a per-user instance + chmod -x ${D}/${bindir}/start-pulseaudio-x11 +} + -- 1.7.0.4