OM2009 Dbus with Python

Ovidiu Gavril ovidiu_gavril at
Thu Jun 11 13:23:21 CEST 2009

     Hmm... it works now... I've made some changes. Thank you for your time.


--- On Thu, 6/11/09, Ovidiu Gavril <ovidiu_gavril at> wrote:

From: Ovidiu Gavril <ovidiu_gavril at>
Subject: Re: OM2009 Dbus with Python
To: "Support for Openmoko Device Owners" <support at>
Date: Thursday, June 11, 2009, 2:11 PM

     I didn't make it by myself, I found it at Dbus examples as I remember. Maybe it is only for Om2008, since the 2009 release has a lot of changes, but how should a similar program in 2009 looks like?

--- On Thu, 6/11/09, Sebastian Krzyszkowiak <seba.dos1 at> wrote:

From: Sebastian Krzyszkowiak <seba.dos1 at>
Subject: Re: OM2009 Dbus with Python
To: "Support for Openmoko Device Owners" <support at>
Date: Thursday, June 11, 2009, 2:04 PM

On Thu, Jun 11, 2009 at 13:00, Ovidiu Gavril<ovidiu_gavril at> wrote:
>      I have a problem using dbus in Python programs. I try, for example, to
> use this simple program which makes a phone call on a predefined number:
> #!/usr/bin/env python
> import dbus
> bus = dbus.SystemBus()
> gsm_device_obj = bus.get_object("org.freesmartphone.ogsmd",
> "/org/freesmartphone/GSM/Device")
> gsm_call_iface =
> dbus.Interface(gsm_device_obj,'org.freesmartphone.GSM.Call')
> proxy = bus.get_object("org.openmoko.Dialer",
> "/org/openmoko/Dialer")
> gsm_call_iface.Initiate("12345", "voice")
>      I receive this:
> File "", line 6, in <module>
>     proxy = bus.get_object("org.openmoko.Dialer", "/org/openmoko/Dialer")
>   File "/usr/lib/python2.6/site-packages/dbus/", line 244, in
>     follow_name_owner_changes=follow_name_owner_changes)
>   File "/usr/lib/python2.6/site-packages/dbus/", line 241, in
> __init__
>     self._named_service = conn.activate_name_owner(bus_name)
>   File "/usr/lib/python2.6/site-packages/dbus/", line 183, in
> activate_name_owner
>     self.start_service_by_name(bus_name)
>   File "/usr/lib/python2.6/site-packages/dbus/", line 281, in
> start_service_by_name
>     'su', (bus_name, flags)))
>   File "/usr/lib/python2.6/site-packages/dbus/", line 622, in
> call_blocking
>     message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown:
> The name org.openmoko.Dialer was not provided by any .service files
 I'm sure it is a dbus problem because, if I try a simple
> "dbus-monitor", I get this:
>  "Failed to open connection to session message bus: dbus-launch failed to
> autolaunch D-Bus session: Autolaunch error: X11 initialization failed."
>      I've tried this on OM2008.12 too, but the same things happened, that's
> why I instlalled OM2009.
>      I can make phone calls from command line, using cli-framework and
> gsmcall.Initiate("12345", "voice"), but I need to do this every time I run a
> program.
>      Does anybody know what the problem is and what changes should I make
> for dbus to work with Python?
>      Thanks in advance.
>      Best regards,
>           Ovidiu

What is

support mailing list
support at

-----Inline Attachment Follows-----

support mailing list
support at

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the support mailing list