Pulseaudio not available on D-BUS ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

This is on Gentoo Linux.

I'm trying to control Pulseaudio through D-Bus; I have read and tried
to understand their documentations. But I run into a first problem:
trying to connect to Pulseaudio, it seems it's not available on the
bus : having Pulseaudio running with start-pulseaudio-x11, I then try
in Python

$ python
>>> import dbus
>>> dbus.SystemBus().list_activatable_names()
dbus.Array([dbus.UTF8String('org.freedesktop.DBus'),
dbus.UTF8String('org.freedesktop.PolicyKit1'),
dbus.UTF8String('org.freedesktop.Avahi'),
dbus.UTF8String('org.bluez'),
dbus.UTF8String('org.freedesktop.ModemManager1'),
dbus.UTF8String('org.freedesktop.NetworkManager'),
dbus.UTF8String('org.freedesktop.ConsoleKit'),
dbus.UTF8String('org.freedesktop.UPower'),
dbus.UTF8String('org.freedesktop.UDisks2'),
dbus.UTF8String('org.freedesktop.UDisks'),
dbus.UTF8String('fi.epitest.hostap.WPASupplicant'),
dbus.UTF8String('org.freedesktop.RealtimeKit1'),
dbus.UTF8String('fi.w1.wpa_supplicant1'),
dbus.UTF8String('org.freedesktop.nm_dispatcher')],
signature=dbus.Signature('s'))
>>> dbus.SessionBus().list_activatable_names()
dbus.Array([dbus.UTF8String('org.freedesktop.DBus'),
dbus.UTF8String('org.hexchat.service'),
dbus.UTF8String('org.freedesktop.Notifications'),
dbus.UTF8String('org.gnome.evince.Daemon'),
dbus.UTF8String('org.xfce.Thunar'),
dbus.UTF8String('org.gnome.GConf'),
dbus.UTF8String('org.xfce.vfs.Daemon'),
dbus.UTF8String('org.gtk.vfs.Metadata'),
dbus.UTF8String('org.a11y.Bus'),
dbus.UTF8String('org.gtk.Private.UDisks2VolumeMonitor'),
dbus.UTF8String('org.xfce.Xfconf'),
dbus.UTF8String('org.gnome.keyring.SystemPrompter'),
dbus.UTF8String('org.gnome.keyring'),
dbus.UTF8String('org.gnome.GnomeVFS.Daemon'),
dbus.UTF8String('org.gtk.vfs.Daemon'),
dbus.UTF8String('org.freedesktop.Geoclue.Providers.Localnet'),
dbus.UTF8String('org.freedesktop.secrets'),
dbus.UTF8String('org.gtk.GLib.PACRunner'),
dbus.UTF8String('org.gnome.keyring.PrivatePrompter'),
dbus.UTF8String('org.xfce.FileManager'),
dbus.UTF8String('org.freedesktop.Geoclue.Master'),
dbus.UTF8String('org.a11y.atspi.Registry')],
signature=dbus.Signature('s'))

so nothing looks like pulseaudio there...

Is it normal?

I also tried

>>> bus = dbus.SessionBus()
>>> dbus.Interface( bus.get_object( "org.PulseAudio", "/org/pulsepudio/core1" ), "org.PulseAudio.Core1" )
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 180, in
activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 278, in
start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line
651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.ServiceUnknown: The name org.PulseAudio was
not provided by any .service files

I tried all kind of camel case (pulseAudio, Pulseaudio, pulseaudio,
etc.) but still no success.

Finally I looked into the pulseaudio source tar archive, but couldn't
find any .conf file that I should put in /etc/dbus-1/...

Any help welcome! Thanks.

F. Delente


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux