[pulseaudio-discuss] pulseaudio-0.9.21, alsa-1.0.23, kde-4.4.5, consolekit, dbus
sibu xolo
sibxol at btconnect.com
Mon Sep 13 03:10:52 PDT 2010
On Monday 13 September 2010 09:28:22 Colin Guthrie wrote:
> 'Twas brillig, and sibu xolo at 13/09/10 02:04 did gyre and gimble:
> > a) I am using system5 init and alsamixer refuses to start on the CLI at
> > run- level 3 reporting
> > "pulseaaudio' connection refused (or somesuch) but...
>
> I guess PA cannot start on the CLI for some reason. alsamixer or aplay
> should autospawn PA if it's not running (which would be typical with a
> console login).
>
> I suspect not being able to connect to dbus/consolekit is the problem,
> but to find out, run pulseaudio -vvv from the cli rather than aplay and
> it should tell you the reasons for not starting.
######## here is the ooutput from running pulseaudio -vvv on the cli BEFORE
kde starts
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
D: core-rtclock.c: Timer slack is set to 50 us.
I: core-util.c: Failed to acquire high-priority scheduling: No such file or
directory
I: main.c: This is PulseAudio 0.9.21
D: main.c: Compilation host: x86_64-unknown-linux-gnu
D: main.c: Compilation CFLAGS: -g -O2 -Wall -W -Wextra -pipe -Wno-long-long -
Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -
Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs
-Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -
Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-
prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -
Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-
unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -
fdiagnostics-show-option
D: main.c: Running on host: Linux x86_64 2.6.35.4nbf8DRIm #1 SMP PREEMPT Wed
Sep 8 15:10:46 BST 2010
D: main.c: Found 2 CPUs.
I: main.c: Page size is 4096 bytes
D: main.c: Compiled with Valgrind support: yes
D: main.c: Running in valgrind mode: no
D: main.c: Running in VM: no
D: main.c: Optimized build: yes
D: main.c: All asserts enabled.
I: main.c: Machine ID is 1385ab3a82291ea28004768900000006.
I: main.c: Using runtime directory
/home/sx/.pulse/1385ab3a82291ea28004768900000006-runtime.
I: main.c: Using state directory /home/sx/.pulse.
I: main.c: Using modules directory /opt/lib/pulse-0.9.21/modules.
I: main.c: Running in system mode: no
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: cpu-x86.c: CPU flags: MMX SSE SSE2 SSE3 MMXEXT 3DNOW 3DNOWEXT
I: svolume_mmx.c: Initialising MMX optimized functions.
I: remap_mmx.c: Initialising MMX optimized remappers.
I: svolume_sse.c: Initialising SSE2 optimized functions.
I: remap_sse.c: Initialising SSE2 optimized remappers.
I: sconv_sse.c: Initialising SSE2 optimized conversions.
D: 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 65472
D: database-gdbm.c: Opened GDBM database
'/home/sx/.pulse/1385ab3a82291ea28004768900000006-device-volumes.x86_64-
unknown-linux-gnu.gdbm'
I: module-device-restore.c: Sucessfully opened database file
'/home/sx/.pulse/1385ab3a82291ea28004768900000006-device-volumes'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
D: database-gdbm.c: Opened GDBM database
'/home/sx/.pulse/1385ab3a82291ea28004768900000006-stream-volumes.x86_64-
unknown-linux-gnu.gdbm'
I: module-stream-restore.c: Sucessfully opened database file
'/home/sx/.pulse/1385ab3a82291ea28004768900000006-stream-volumes'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
D: database-gdbm.c: Opened GDBM database
'/home/sx/.pulse/1385ab3a82291ea28004768900000006-card-database.x86_64-
unknown-linux-gnu.gdbm'
I: module-card-restore.c: Sucessfully opened database file
'/home/sx/.pulse/1385ab3a82291ea28004768900000006-card-database'.
I: module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: module.c: Loaded "module-augment-properties" (index: #3; argument: "").
D: cli-command.c: Checking for existance of
'/opt/lib/pulse-0.9.21/modules/module-udev-detect.so': success
I: module-udev-detect.c: Found 0 cards.
I: module.c: Loaded "module-udev-detect" (index: #4; argument: "").
D: cli-command.c: Checking for existance of
'/opt/lib/pulse-0.9.21/modules/module-bluetooth-discover.so': success
D: dbus-util.c: Successfully connected to D-Bus system bus
244284b9a8358759ce53123d00000008 as :1.7
D: bluetooth-util.c: dbus: interface=org.freedesktop.DBus,
path=/org/freedesktop/DBus, member=NameAcquired
D: bluetooth-util.c: Bluetooth daemon is apparently not available.
I: module.c: Loaded "module-bluetooth-discover" (index: #5; argument: "").
D: cli-command.c: Checking for existance of
'/opt/lib/pulse-0.9.21/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #6; argument: "").
I: module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
D: cli-command.c: Checking for existance of
'/opt/lib/pulse-0.9.21/modules/module-gconf.so': failure
I: module-default-device-restore.c: Saved default sink 'auto_null' not
existant, not restoring default sink setting.
I: module-default-device-restore.c: Saved default source 'auto_null.monitor'
not existant, not restoring default source setting.
I: module.c: Loaded "module-default-device-restore" (index: #8; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #9; argument: "").
D: module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: module-device-restore.c: Restoring volume for sink auto_null.
I: module-device-restore.c: Restoring mute state for sink auto_null.
I: sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and
channel map front-left,front-right
I: sink.c: device.description = "Dummy Output"
I: sink.c: device.class = "abstract"
I: sink.c: device.icon_name = "audio-card"
D: core-subscribe.c: Dropped redundant event due to change event.
I: source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch
44100Hz and channel map front-left,front-right
I: source.c: device.description = "Monitor of Dummy Output"
I: source.c: device.class = "monitor"
I: source.c: device.icon_name = "audio-input-microphone"
D: module-null-sink.c: Thread starting up
I: module.c: Loaded "module-null-sink" (index: #10; argument:
"sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: module.c: Loaded "module-always-sink" (index: #11; argument: "").
I: module.c: Loaded "module-intended-roles" (index: #12; argument: "").
D: module-suspend-on-idle.c: Sink auto_null becomes idle, timeout in 5
seconds.
I: module.c: Loaded "module-suspend-on-idle" (index: #13; argument: "").
I: module.c: Loaded "module-console-kit" (index: #14; argument: "").
I: module.c: Loaded "module-position-event-sounds" (index: #15; argument: "").
I: module.c: Loaded "module-cork-music-on-phone" (index: #16; argument: "").
E: x11wrap.c: XOpenDisplay() failed
E: module.c: Failed to load module "module-x11-bell" (argument: "sample=bell-
windowing-system"): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to initialize daemon.
I: module.c: Unloading "module-device-restore" (index: #0).
I: module.c: Unloaded "module-device-restore" (index: #0).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-stream-restore" (index: #1).
I: module.c: Unloaded "module-stream-restore" (index: #1).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-card-restore" (index: #2).
I: module.c: Unloaded "module-card-restore" (index: #2).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-augment-properties" (index: #3).
I: module.c: Unloaded "module-augment-properties" (index: #3).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-udev-detect" (index: #4).
I: module.c: Unloaded "module-udev-detect" (index: #4).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-bluetooth-discover" (index: #5).
I: module.c: Unloaded "module-bluetooth-discover" (index: #5).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-esound-protocol-unix" (index: #6).
I: module.c: Unloaded "module-esound-protocol-unix" (index: #6).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-native-protocol-unix" (index: #7).
I: module.c: Unloaded "module-native-protocol-unix" (index: #7).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-default-device-restore" (index: #8).
I: module.c: Unloaded "module-default-device-restore" (index: #8).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-rescue-streams" (index: #9).
I: module.c: Unloaded "module-rescue-streams" (index: #9).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-null-sink" (index: #10).
D: module-always-sink.c: Autoloaded null-sink removed
D: core-subscribe.c: Dropped redundant event due to remove event.
D: core-subscribe.c: Dropped redundant event due to remove event.
D: core-subscribe.c: Dropped redundant event due to remove event.
D: core-subscribe.c: Dropped redundant event due to remove event.
D: module-null-sink.c: Thread shutting down
I: sink.c: Freeing sink 0 "auto_null"
I: source.c: Freeing source 0 "auto_null.monitor"
I: module.c: Unloaded "module-null-sink" (index: #10).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-always-sink" (index: #11).
I: module.c: Unloaded "module-always-sink" (index: #11).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-intended-roles" (index: #12).
I: module.c: Unloaded "module-intended-roles" (index: #12).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-suspend-on-idle" (index: #13).
I: module.c: Unloaded "module-suspend-on-idle" (index: #13).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-console-kit" (index: #14).
I: module.c: Unloaded "module-console-kit" (index: #14).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-position-event-sounds" (index: #15).
I: module.c: Unloaded "module-position-event-sounds" (index: #15).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-cork-music-on-phone" (index: #16).
I: module.c: Unloaded "module-cork-music-on-phone" (index: #16).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: main.c: Daemon terminated.
############################################
> > b) alsamixer starts after login in kde in konsole; sound devices are
> > correctly reported (on the cli); aplay reports no errors but no sound is
> > heard and outputs are not mute.
>
> Check the profiles in pavucontrol's configuration tab. Post the output
> from "pacmd ls" to allow others to have a look at the setup.
######## here is the ooutput from running "pacmd ls" on the cli AFTER kde
starts
Welcome to PulseAudio! Use "help" for usage information.
>>> Memory blocks currently allocated: 1, size: 63.9 KiB.
Memory blocks allocated during the whole lifetime: 2139, size: 4.2 MiB.
Memory blocks imported from other processes: 0, size: 0 B.
Memory blocks exported to other processes: 0, size: 0 B.
Total sample cache size: 0 B.
Default sample spec: s16le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: auto_null
Default source name: auto_null.monitor
Memory blocks of type POOL: 1 allocated/1417 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/0 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/0 accumulated.
Memory blocks of type IMPORTED: 0 allocated/722 accumulated.
23 module(s) loaded.
index: 0
name: <module-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute state of
devices"
module.version = "0.9.21"
index: 1
name: <module-stream-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute/device
state of streams"
module.version = "0.9.21"
index: 2
name: <module-card-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore profile of cards"
module.version = "0.9.21"
index: 3
name: <module-augment-properties>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Augment the property sets of streams with
additional static information"
module.version = "0.9.21"
index: 4
name: <module-udev-detect>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Detect available audio hardware and load
matching drivers"
module.version = "0.9.21"
index: 5
name: <module-bluetooth-discover>
argument: <>
used: -1
load once: yes
properties:
module.author = "Joao Paulo Rechi Vita"
module.description = "Detect available bluetooth audio devices and
load bluetooth audio drivers"
module.version = "0.9.21"
index: 6
name: <module-esound-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "ESOUND protocol (UNIX sockets)"
module.version = "0.9.21"
index: 7
name: <module-native-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (UNIX sockets)"
module.version = "0.9.21"
index: 8
name: <module-default-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the default sink and
source"
module.version = "0.9.21"
index: 9
name: <module-rescue-streams>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is removed, try to move
their streams to the default sink/source"
module.version = "0.9.21"
index: 10
name: <module-null-sink>
argument: <sink_name=auto_null sink_properties='device.description="Dummy
Output"'>
used: 0
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Clocked NULL sink"
module.version = "0.9.21"
index: 11
name: <module-always-sink>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Always keeps at least one sink loaded even if
it's a null one"
module.version = "0.9.21"
index: 12
name: <module-intended-roles>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically set device of streams based of
intended roles of devices"
module.version = "0.9.21"
index: 13
name: <module-suspend-on-idle>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is idle for too long,
suspend it"
module.version = "0.9.21"
index: 14
name: <module-console-kit>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each ConsoleKit session of
this user"
module.version = "0.9.21"
index: 15
name: <module-position-event-sounds>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Position event sounds between L and R
depending on the position on screen of the widget triggering them."
module.version = "0.9.21"
index: 16
name: <module-cork-music-on-phone>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Mute or cork music while a phone stream
exists"
module.version = "0.9.21"
index: 17
name: <module-x11-bell>
argument: <sample=bell-windowing-system>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "X11 bell interceptor"
module.version = "0.9.21"
index: 18
name: <module-x11-xsmp>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "X11 session management"
module.version = "0.9.21"
index: 19
name: <module-device-manager>
argument: <do_routing=1>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Keep track of devices (and their descriptions)
both past and present and prioritise by role"
module.version = "0.9.21"
index: 20
name: <module-x11-publish>
argument: <display=:0>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "X11 credential publisher"
module.version = "0.9.21"
index: 21
name: <module-x11-cork-request>
argument: <display=:0>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Synthesize X11 media key events when
cork/uncork is requested"
module.version = "0.9.21"
index: 22
name: <module-cli-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Command line interface protocol (UNIX
sockets)"
module.version = "0.9.21"
1 sink(s) available.
* index: 0
name: <auto_null>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1000
volume: 0: 60% 1: 60%
0: -13.31 dB 1: -13.31 dB
balance 0.00
base volume: 100%
0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 1722 KiB
max rewind: 1722 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 10000.00 ms
module: 10
properties:
device.description = "Dummy Output"
device.class = "abstract"
device.icon_name = "audio-card"
1 source(s) available.
* index: 0
name: <auto_null.monitor>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1000
volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
base volume: 100%
0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max rewind: 1722 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 10000.00 ms
monitor_of: 0
module: 10
properties:
device.description = "Monitor of Dummy Output"
device.class = "monitor"
device.icon_name = "audio-input-microphone"
5 client(s) logged in.
index: 0
driver: <module-console-kit.c>
owner module: 14
properties:
application.name = "ConsoleKit Session
/org/freedesktop/ConsoleKit/Session1"
console-kit.session = "/org/freedesktop/ConsoleKit/Session1"
index: 1
driver: <module-x11-xsmp.c>
owner module: 18
properties:
application.name = "XSMP Session on KDE as
1025a2651a4214000128436888900000020230009"
xsmp.vendor = "KDE"
xsmp.client.id = "1025a2651a4214000128436888900000020230009"
index: 6
driver: <protocol-native.c>
owner module: 7
properties:
application.name = "libphonon"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "16"
application.process.id = "2031"
application.process.user = "sx"
application.process.host = "hooter.b-lux.balls"
application.process.binary = "knotify4"
application.language = "C"
window.x11.display = ":0.0"
application.process.machine_id = "1385ab3a82291ea28004768900000006"
application.process.session_id =
"1385ab3a82291ea28004768900000006-1284368874.612659-1587182980"
index: 7
driver: <protocol-native.c>
owner module: 7
properties:
application.name = "knotify4"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "16"
media.role = "event"
phonon.streamid = "{dda39186-350d-4789-bf7d-f4888ed9adf1}"
application.process.id = "2031"
application.process.user = "sx"
application.process.host = "hooter.b-lux.balls"
application.process.binary = "knotify4"
application.language = "C"
window.x11.display = ":0.0"
application.process.machine_id = "1385ab3a82291ea28004768900000006"
application.process.session_id =
"1385ab3a82291ea28004768900000006-1284368874.612659-1587182980"
index: 9
driver: <cli.c>
owner module: 22
properties:
application.name = "UNIX socket client"
0 card(s) available.
0 sink input(s) available.
0 source outputs(s) available.
0 cache entrie(s) available.
>>>
##############################
> > b) Still in kde, When the ownership/permissions on
> > /usr/lib/dbus-1.0/dbus- daemon-launch-helper
> >
> > file are set as shown above the KDE System Settings/Multimedia dialog
> >
> > reports a dummy device
>
> $ ll /lib64/dbus-1/dbus-daemon-launch-helper
> -rwsr-x--- 1 root messagebus 47384 2010-03-24 09:46
> /lib64/dbus-1/dbus-daemon-launch-helper
>
> Same perms here... I'm not sure why dbus failure would results in a
> dummy device. I wonder if it's simply that PA cannot reserve the audio
> device via the dbus based device reservation protocol and thus can't
> load the sink.
>
> Even still dbus based activation seems to work for me :s
>
> Col
More information about the pulseaudio-discuss
mailing list