[Pkg-bluetooth-maintainers] Bug#498056: Bug#498056: Can not control input_service via dbus

Filippo Giunchedi filippo at debian.org
Sun Sep 7 07:40:17 UTC 2008


On Sat, Sep 06, 2008 at 07:50:56PM +0200, Joachim Breitner wrote:
> Hi,
> 
> using the experimental bluez-utils package on my Deban FreeRunner, I try
> to control the input_service by running, as root:
> 
> $ dbus-send --system --print-reply --dest=org.bluez /org/bluez/service_input org.bluez.Service.Stop 
> Error org.bluez.Error.Failed: Operation not permitted
> 
> D-Bus communication works in general:
> $ dbus-send --system --print-reply --dest=org.bluez /org/bluez/service_input org.bluez.Service.IsRunning
> method return sender=:1.17 -> dest=:1.19 reply_serial=2
>    boolean true

Start/Stop (and IsRunning FWIW) don't seem to be implemented, see
hcid/dbus-service.c:

static DBusMessage *start(DBusConnection *conn,
                        DBusMessage *msg, void *data)
{
        return g_dbus_create_error(msg,
                        ERROR_INTERFACE ".Failed",
                        strerror(EALREADY));
}

static DBusMessage *stop(DBusConnection *conn,
                        DBusMessage *msg, void *data)
{
        return g_dbus_create_error(msg,
                        ERROR_INTERFACE ".Failed",
                        strerror(EPERM));
}

static DBusMessage *is_running(DBusConnection *conn,
                                DBusMessage *msg, void *data)
{
        DBusMessage *reply;
        dbus_bool_t running = TRUE;

        reply = dbus_message_new_method_return(msg);
        if (!reply)
                return NULL;

        dbus_message_append_args(reply,
                        DBUS_TYPE_BOOLEAN, &running,
                        DBUS_TYPE_INVALID);

        return reply;
}

that explains the bug, unless I'm missing something of course :)

filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:

Beauty isn't worth thinking about; what's important is your mind.
You don't want a fifty-dollar haircut on a fifty-cent head.
-- Garrison Keillor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-bluetooth-maintainers/attachments/20080907/f57d89f2/attachment.pgp 


More information about the Pkg-bluetooth-maintainers mailing list