[pulseaudio-discuss] How to launch pulseaudio on embedded system
DIEHCO R&D
electronique at diehco.com
Wed Aug 20 05:51:56 PDT 2014
Hello, I hope it is good place for my request. I am looking for some
tips to configure the pulseaudio server on an embedded system. The
program is in the system, but I have difficult to lauch it correctly.
After setting
DBUS_SESSION_BUS_ADDRESS=unix:path=/var/run/dbus/system_bus_socket and
DBUS_SESSION_BUS_PID=`cat /var/run/dbus/pid`
I met the error *Failed to acquire org.PulseAudio1*:
org.freedesktop.DBus.Error.AccessDenied: Connection ":1.19" is not
allowed to own the service "org.PulseAudio1" due to security policies in
the configuration file.
Find attached the complete log.
The file /etc/dbus-1/system.d/pulseaudio-system.conf has <allow
own="org.pulseaudio.Server"/>. I tried to modify without success.
Thank you for reading. Regards,
--
Vincent Vanbesien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140820/da41403e/attachment-0001.html>
-------------- next part --------------
172 messageb 2620 S /usr/bin/dbus-daemon --system
177 root 2424 S /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
182 root 3340 S /sbin/syslogd -n -O /var/log/messages
184 root 3340 S /sbin/klogd -n
187 root 2216 S /usr/sbin/crond
209 root 6828 S /home/root/bin/wd
211 root 6856 S /home/root/bin/plannification
216 root 3344 S /sbin/getty 115200 ttymxc0
217 root 3344 S /sbin/getty 38400 tty1
218 root 6880 S controle
219 root 2844 S /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
220 root 6852 S attente XXX
221 root 6864 S tacheSon
222 root 6860 S menu 221
223 root 6868 S escargot FRA 0 221
224 lennart 2964 S -sh
392 root 2844 S /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
393 root 3008 S -sh
992 root 0 SW [kworker/0:2]
1023 root 0 SW [kworker/0:1]
1084 root 2844 S /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
1085 lennart 2964 S -sh
1089 root 0 SW [kworker/0:0]
1156 root 0 SW [flush-ubifs_0_0]
1190 lennart 3520 R ps
eukrea-cpuimx25:~$ export DBUS_SESSION_BUS_ADDRESS=unix:path=/var/run/dbus/system_bus_socket
eukrea-cpuimx25:~$ export DBUS_SESSION_BUS_PID=`cat /var/run/dbus/pid`
eukrea-cpuimx25:~$ pulseaudio -vvvv &
[1] 1192
eukrea-cpuimx25:~$ I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: No such file or directory
I: [pulseaudio] main.c: This is PulseAudio 3.0-dirty
D: [pulseaudio] main.c: Compilation host: arm-oe-linux-gnueabi
D: [pulseaudio] main.c: Compilation CFLAGS: -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: [pulseaudio] main.c: Running on host: Linux armv5tejl 2.6.37.6 #18 PREEMPT Fri Mar 1 03:08:50 PST 2013
D: [pulseaudio] main.c: Found 1 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 2f33fe147f1a9d0285a2138053f317ec.
I: [pulseaudio] main.c: Using runtime directory /home/lennart/.config/pulse/2f33fe147f1a9d0285a2138053f317ec-runtime.
I: [pulseaudio] main.c: Using state directory /home/lennart/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-3.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: Fresh high-resolution timers available! Bon appetit!
D: [pulseaudio] memblock.c: Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65496
I: [pulseaudio] cpu-arm.c: CPU flags: EDSP
I: [pulseaudio] module-device-restore.c: Successfully opened database file '/home/lennart/.config/pulse/2f33fe147f1a9d0285a2138053f317ec-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database file '/home/lennart/.config/pulse/2f33fe147f1a9d0285a2138053f317ec-stream-volumes'.
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1 added for object /org/pulseaudio/stream_restore1
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1; argument: "").
I: [pulseaudio] module-card-restore.c: Successfully opened database file '/home/lennart/.config/pulse/2f33fe147f1a9d0285a2138053f317ec-card-database'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3; argument: "").
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-udev-detect.so': success
I: [pulseaudio] module-udev-detect.c: Found 0 cards.
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #4; argument: "").
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-jackdbus-detect.so': failure
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-bluetooth-policy.so': failure
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-bluetooth-discover.so': failure
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-esound-protocol-unix.so': failure
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #5; argument: "").
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-gconf.so': failure
I: [pulseaudio] module-default-device-restore.c: Saved default sink 'auto_null' not existent, not restoring default sink setting.
I: [pulseaudio] module-default-device-restore.c: Saved default source 'auto_null.monitor' not existent, not restoring default source setting.
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index: #6; argument: "").
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #7; argument: "").
D: [pulseaudio] module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: [pulseaudio] sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c: device.description = "Dummy Output"
I: [pulseaudio] sink.c: device.class = "abstract"
I: [pulseaudio] sink.c: device.icon_name = "audio-card"
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
I: [pulseaudio] source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c: device.description = "Monitor of Dummy Output"
I: [pulseaudio] source.c: device.class = "monitor"
I: [pulseaudio] source.c: device.icon_name = "audio-input-microphone"
D: [null-sink] module-null-sink.c: Thread starting up
D: [pulseaudio] module-device-restore.c: Could not set format on sink auto_null
I: [pulseaudio] module.c: Loaded "module-null-sink" (index: #8; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #9; argument: "").
I: [pulseaudio] module.c: Loaded "module-intended-roles" (index: #10; argument: "").
D: [pulseaudio] module-suspend-on-idle.c: Sink auto_null becomes idle, timeout in 5 seconds.
I: [pulseaudio] module.c: Loaded "module-suspend-on-idle" (index: #11; argument: "").
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-console-kit.so': success
D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus system bus fa69b03ab803943677e5d13c53f477b8 as :1.17
I: [pulseaudio] module.c: Loaded "module-console-kit" (index: #12; argument: "").
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-systemd-login.so': failure
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: #13; argument: "").
D: [pulseaudio] module-role-cork.c: Using role 'phone' as trigger role.
D: [pulseaudio] module-role-cork.c: Using roles 'music' and 'video' as cork roles.
I: [pulseaudio] module.c: Loaded "module-role-cork" (index: #14; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-heuristics" (index: #15; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-apply" (index: #16; argument: "").
D: [pulseaudio] cli-command.c: Checking for existence of '/usr/lib/pulse-3.0/modules/module-dbus-protocol.so': failure
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index: #17; argument: "").
D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus session bus fa69b03ab803943677e5d13c53f477b8 as :1.19
E: [pulseaudio] main.c: Failed to acquire org.PulseAudio1: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.19" is not allowed to own the service "org.PulseAudio1" due to security policies in the configuration file
More information about the pulseaudio-discuss
mailing list