Cannot connect with bluetooth

Bug #69528 reported by Youri Matthys
This bug report is a duplicate of:  Bug #33338: bluez-utils can't start in dbus mode. Edit Remove
2
Affects Status Importance Assigned to Milestone
gnome-bluetooth (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gnome-bluetooth

Connecting via hcitool works.

hcitool scan
Scanning ...
        00:0F:DE:FD:1F:72 Youri T630

hcitool cc 00:0F:DE:FD:1F:72

But i cannot send files from/to my phone/pc.

 lsusb
Bus 002 Device 002: ID 046d:c518 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0db0:a970 Micro Star International
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 002: ID 093b:0060 Plextor Corp.
Bus 001 Device 001: ID 0000:0000
youri@ltmatthys:/usr/src/linux$ cat /proc/
Display all 163 possibilities? (y or n)
youri@ltmatthys:/usr/src/linux$ cat /proc/bu
buddyinfo bus/
youri@ltmatthys:/usr/src/linux$ cat /proc/bus/usb/
001/ 002/ 003/ devices .usbfs/
youri@ltmatthys:/usr/src/linux$ cat /proc/bus/usb/devices

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 4
B: Alloc= 43/900 us ( 5%), #Int= 1, #Iso= 2
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.15-26-amd64-generic ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:13.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0db0 ProdID=a970 Rev=19.15
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
I: If#= 2 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 4
B: Alloc= 28/900 us ( 3%), #Int= 2, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.15-26-amd64-generic ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:13.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c518 Rev=42.02
S: Manufacturer=Logitech
S: Product=USB Receiver
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.15-26-amd64-generic ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:13.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=093b ProdID=0060 Rev= 3.02
S: Manufacturer=Plextor S.A./N.V.
S: Product=PLEXTOR PX-PH
S: SerialNumber=000000002B9B
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Have you installed package bluez-passkey-gnome?

Also please go through https://wiki.ubuntu.com/Bluetooth/TestPlan to do a step by step testing and let us know which step fails for you.

Revision history for this message
Youri Matthys (yourimatthys) wrote :

I seem to be stuck at step 4. Discover works like a charm but i cannot pair my phone and my pc.

Connecting with hcitool works.

Gnome-obex-send seems to fail on me...

[code]$ gnome-obex-send -d 00:0F:DE:FD:1F:72 .wvdial.conf
Browsing 00:0F:DE:FD:1F:72 ...
Service Name: OBEX Object Push
Service RecHandle: 0x10005
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 10
  "OBEX" (0x0008)
Service Class ID List:
  "OBEX Object Push" (0x1105)
** Message: device 00:0F:DE:FD:1F:72 (OBEX Object Push) port 10
[/code]

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Have you installed package bluez-passkey-gnome? After installing it please logout and login again.

If you still have problem with pairing then please attach your hcid.conf (and hcid.conf.dpkg-old or hcid.conf.dpkg-new) file to the bug.

Revision history for this message
Youri Matthys (yourimatthys) wrote :

bluez-passkey-gnome has been installed, i've logged out and rebooted multiple times.

[code]
cat /etc/bluetooth/hcid.conf
#
# HCI daemon configuration file.
#

# HCId options
options {
        # Automatically initialize new devices
        autoinit yes;

        # Security Manager mode
        # none - Security manager disabled
        # auto - Use local PIN for incoming connections
        # user - Always ask user for a PIN
        #
        security user;

        # Pairing mode
        # none - Pairing disabled
        # multi - Allow pairing with already paired devices
        # once - Pair once and deny successive attempts
        pairing multi;

        #PIN helper
        #pin_helper /usr/bin/bluez-pin;
        pin_helper /usr/lib/kdebluetooth/kbluepin

        # Default PIN code for incoming connections
        passkey "1234";
}

# Default settings for HCI devices
device {
        # Local device name
        # %d - device id
        # %h - host name
        name "%h";

        # Local device class
        class 0x3e0100;

        # Default packet type
        pkt_type DH1,DM1,HV1;

        # Inquiry and Page scan
        iscan enable; pscan enable;
        discovto 0;

        # Default link mode
        # none - no specific policy
        # accept - always accept incoming connections
        # master - become master on incoming connections,
        # deny role switch on outgoing connections
        lm accept;

        # Default link policy
        # none - no specific policy
        # rswitch - allow role switch
        # hold - allow hold mode
        # sniff - allow sniff mode
        # park - allow park mode
        lp rswitch,hold,sniff,park;
}
[/code]

hcid.conf.dpkg-old and new where not found on my system...

[code]
locate hcid.conf
/etc/dbus-1/system.d/bluez-hcid.conf
/etc/bluetooth/hcid.conf
/usr/share/man/man5/hcid.conf.5.gz
[/code]

Maybe this is important to?

[code]
 cat /etc/dbus-1//system.d/bluez
bluez.conf bluez-hcid.conf
youri@ltmatthys:~$ cat /etc/dbus-1//system.d/bluez-hcid.conf
<!-- This configuration file specifies the required security policies
     for BlueZ hcid to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- ../system.conf have denied everything, so we just punch some holes -->

  <policy user="root">
    <allow own="org.bluez"/>
  </policy>

  <policy at_console="true">
    <allow send_destination="org.bluez.Adapter"/>
    <allow receive_sender="org.bluez.Adapter"/>

    <allow send_path="/org/bluez/Adapter"/>

    <allow send_destination="org.bluez.Manager"/>
    <allow receive_sender="org.bluez.Manager"/>

    <allow send_path="/org/bluez/Manager"/>

    <allow send_destination="org.bluez.Security"/>
    <allow receive_sender="org.bluez.Security"/>
  </policy>
[/code]

Bluetooth used to work when i was using gentoo. Not sure what version i was using at that time though...

Revision history for this message
ttoine (ttoine) wrote :

do we have enough information, or is it a duplicate af several bugs about bluez-utils and hcid ??

Changed in gnome-bluetooth:
status: Unconfirmed → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.