2008-07-16 15:34:37

by Voni Hakau

[permalink] [raw]
Subject: [Bluez-users] bluez-utils 3.36: Unable to get on D-Bus

Hi all,

I get the following error:

# hcid -n -s -d
hcid[467]: Bluetooth HCI daemon
hcid[467]: Enabling debug information
hcid[467]: Unable to get on D-Bus

Can someone please help me how to debug this ?

I use bluez-utils 3.36 with the newest d-bus.

I got d-bus up and running (dbus-daemon --system is running, and I the
UNIX domain socket file is created).

Any ideas ?

Thank you
Voni

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2008-07-17 08:17:19

by Voni Hakau

[permalink] [raw]
Subject: Re: [Bluez-users] bluez-utils 3.36: Unable to get on D-Bus

Hi all,

On Thu, Jul 17, 2008 at 11:06 AM, Johan Hedberg <[email protected]> wrote:
> Another common cause of this error is that the user hasn't installed
> the D-Bus policy configuration for BlueZ into /etc/dbus-1/system.d
> (the hcid/bluetooth.conf file).

YES ! that was it. more or less. Actually I did have those files in
/etc/dbus-1/system.d, but I found out that my dbus used
/usr/etc/dbus-1/system.d for some reason (I cross compiled it with
--prefix=/usr). So I copied the files over there and voila it works. I
have no clue why it chose to work with /usr/etc instead of /etc
though.

Thank you all for the help!
Voni

>
> Johan
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-07-17 08:06:16

by Johan Hedberg

[permalink] [raw]
Subject: Re: [Bluez-users] bluez-utils 3.36: Unable to get on D-Bus

Hi,

On Jul 17, 2008, at 11:01, Nel D wrote:
> On Wed, Jul 16, 2008 at 9:04 PM, Voni Hakau <[email protected]>
> wrote:
>>
>> I get the following error:
>>
>> # hcid -n -s -d
>> hcid[467]: Bluetooth HCI daemon
>> hcid[467]: Enabling debug information
>> hcid[467]: Unable to get on D-Bus
>
> Try starting hcid as root. Also check if another instance of "hcid" is
> already running when u issue this command??

Another common cause of this error is that the user hasn't installed
the D-Bus policy configuration for BlueZ into /etc/dbus-1/system.d
(the hcid/bluetooth.conf file).

Johan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-07-17 08:01:56

by Nel D

[permalink] [raw]
Subject: Re: [Bluez-users] bluez-utils 3.36: Unable to get on D-Bus

Hi Voni

On Wed, Jul 16, 2008 at 9:04 PM, Voni Hakau <[email protected]> wrote:
> Hi all,
>
> I get the following error:
>
> # hcid -n -s -d
> hcid[467]: Bluetooth HCI daemon
> hcid[467]: Enabling debug information
> hcid[467]: Unable to get on D-Bus

Try starting hcid as root. Also check if another instance of "hcid" is
already running when u issue this command??



HTH,
nel !!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users