You are not logged in.

#1 2007-07-27 20:43:47

cheer
Member
From: Russia, St. Petersburg
Registered: 2006-08-02
Posts: 131

[SOLVED] bluetooth daemon and configuration file

Hello all, I've installed bluez-utils from [current], ran hciconfig:

[cheer@lap ~]$ hciconfig -a
hci0:   Type: USB
        BD Address: 00:16:CF:FA:F8:B3 ACL MTU: 1017:8 SCO MTU: 64:8
        UP RUNNING PSCAN
        RX bytes:994 acl:0 sco:0 events:28 errors:0
        TX bytes:358 acl:0 sco:0 commands:28 errors:0
        Features: 0xff 0xff 0x8d 0xfe 0x9b 0xfd 0x00 0x80
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'BlueZ (0)'
        Class: 0x3e0100
        Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio
        Device Class: Computer, Uncategorized
        HCI Ver: 2.0 (0x3) HCI Rev: 0x20da LMP Ver: 2.0 (0x3) LMP Subver: 0x4182
        Manufacturer: Broadcom Corporation (15)

You can see that there's no ISCAN, so my mobile phone can't detect computer (yes, I know, it can be fixed with "sudo hciconfig hci0 piscan"), but in my /etc/bluetooth/hcid.conf I have:

options {
        autoinit yes;
        security auto;
        pairing multi;
        passkey "123456";
}

device {
        name "%h-%d";
        class 0x3e0100;
        iscan enable; pscan enable;
        lm accept;
        lp rswitch,hold,sniff,park;
}

So we can see that even name is different in the hcid.conf file and in the output of hciconfig. I suppose that the file is not read by the daemon. WTF?

Last edited by cheer (2007-07-29 09:13:38)

Offline

#2 2007-07-29 09:13:16

cheer
Member
From: Russia, St. Petersburg
Registered: 2006-08-02
Posts: 131

Re: [SOLVED] bluetooth daemon and configuration file

I solved this problem:

#rm -r /var/lib/bluetooth
/etc/rc.d/bluetooth restart

May be we are to add deleting this directory after removing or upgrading the package?

Offline

#3 2007-09-19 16:07:52

drazi
Member
From: CT, USA
Registered: 2006-01-30
Posts: 13

Re: [SOLVED] bluetooth daemon and configuration file

I am having the same problem but deleting the /var/lib/bluetooth directory has not solved it. Could something else have fixed your problem?

Last edited by drazi (2007-09-19 16:08:23)

Offline

Board footer

Powered by FluxBB