On Thursday 29 May 2014 07:27:24 Mick wrote:
> On Thursday 29 May 2014 00:05:16 William Kenworthy wrote:
> > On 29/05/14 06:28, Mick wrote:
> > > On Wednesday 28 May 2014 20:02:29 Samuli Suominen wrote:
> > >> On 28/05/14 21:42, Mick wrote:
> > >>> Hmm ... am I alone in this quest?
> > >> 
> > >> See here, http://bugs.gentoo.org/show_bug.cgi?id=505362
> > > 
> > > Thanks!  I missed this bug when I glanced earlier.  However, it does
> > > not mention rfcomm is now missing, or the fact that the gentoo rc
> > > script fails to initialise bluethooth and complains about rfcomm
> > > service not having started/exist, or that bluetoothctl now does not
> > > work at all.  Is all this down to a missing udev rule?
> > 
> > No its the fact that bluez 5 has been redesigned to fit in more with the
> > systemd world.
> 
> I see.  No systemd here, other than systemd's udev.
> 
> > it works if:
> > 
> > remove rfcomm using rc-update
> 
> I didn't have to remove it because it wasn't there ... no rfcomm service
> anymore, or any /etc/conf.d/rfcomm file.  There is a /etc/conf.d/bluetooth
> showing:
> ============================================================
> # Bluetooth configuraton file
> 
> # Bind rfcomm devices (allowed values are "true" and "false")
> RFCOMM_ENABLE=true
> 
> # Config file for rfcomm
> RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
> ============================================================
> 
> > /etc/init.d/bluetoothctl restart (get rid of any existing config)
> 
> Ahh!  I have no /etc/init.d/bluetoothctl service, only
> /etc/init.d/bluetooth
> 
> Am I missing some package for it?  Interestingly the module bt_rfcomm was
> not initialised by udev and I had to modprobe it manually ...
> 
> # lsmod | grep bt
> btusb                  14115  0
> bluetooth             173578  5 btusb,rfcomm
> 
> > bluetoothctl
> > power on
> > scan on
> > agent on
> > default-agent
> > trust [MAC ADDRESS OF CLIENT]
> > pair [MAC ADDRESS OF CLIENT]
> > enter PIN when requested
> > wait for "Connected: no"
> > exit
> 
> Unfortunately, none of the above works anymore for me:
> 
> [bluetooth]# power on
> No default controller available
> [bluetooth]# scan on
> No default controller available
> [bluetooth]# agent on
> Agent registration enabled
> [bluetooth]# default-agent
> No agent is registered
> [bluetooth]#
> 
> > After this you should have an rfcomm channel available to the client.  I
> > have the above in an expect script as bluetoothctl has no inate remote
> > controllability capabilities.  No separate pairing app or rfcomm init
> > script needed.
> 
> I do not get a /dev/rfcommX, unless I manually set it up like so:
> 
> # rfcomm bind rfcomm0 hci0
> # ls -la /dev/rfcomm*
> crw-rw---- 1 root uucp 216, 0 May 29 07:06 /dev/rfcomm0
> 
> and hci0 will not come up unless I start it with hciconfig.  Despite all
> this manual intervention bluetooth does not have access or use the rfcomm
> device, although 'hcitool scan' and 'sdptool browse' return results from
> my mobile phone.
> 
> Please note I have not used the previous patch you have posted on the list.
> 
> These are the BT modules in my 3.12.20-gentoo kernel:
> 
> $ grep -i BT /usr/src/linux/.config
> CONFIG_BT=m
> CONFIG_BT_RFCOMM=m
> CONFIG_BT_RFCOMM_TTY=y
> CONFIG_BT_BNEP=m
> CONFIG_BT_BNEP_MC_FILTER=y
> CONFIG_BT_BNEP_PROTO_FILTER=y
> CONFIG_BT_HIDP=m
> CONFIG_BT_HCIBTUSB=m
> CONFIG_BT_HCIBTSDIO=m
> # CONFIG_BT_HCIUART is not set
> CONFIG_BT_HCIBCM203X=m
> # CONFIG_BT_HCIBPA10X is not set
> # CONFIG_BT_HCIBFUSB is not set
> # CONFIG_BT_HCIDTL1 is not set
> # CONFIG_BT_HCIBT3C is not set
> # CONFIG_BT_HCIBLUECARD is not set
> # CONFIG_BT_HCIBTUART is not set
> # CONFIG_BT_HCIVHCI is not set
> # CONFIG_BT_MRVL is not set
> # CONFIG_BT_ATH3K is not set
> CONFIG_MAC_EMUMOUSEBTN=y
> # CONFIG_INPUT_ATLAS_BTNS is not set
> # CONFIG_VIDEO_USBTV is not set
> # CONFIG_SND_BT87X is not set
> # CONFIG_USB_BTMTK is not set
> # CONFIG_TOSHIBA_BT_RFKILL is not set
> # CONFIG_BTRFS_FS is not set
> # CONFIG_RBTREE_TEST is not set
> CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
> 
> and I don't recall changing any of them since the good ol' bluez-4 days.


Hmm... also noticed that BT_HCIBCM203X is not loaded either.  This is what 
dmesg shows:
=========================================================================
... 
[    2.778306] usb 2-1.6: new full-speed USB device number 3 using ehci-pci
[    2.795308] hub 2-1:1.0: port 6 not reset yet, waiting 10ms
[    2.844701] psmouse serio1: synaptics: Touchpad model: 1, fw: 7.2, id: 
0x1c0b1, caps: 0xd04733/0xa40000/0xa0000, board id: 3655, fw id: 579772
[    2.870246] usb 2-1.6: ep0 maxpacket = 8
[    2.873102] usb 2-1.6: default language 0x0409
[    2.873610] usb 2-1.6: udev 3, busnum 2, minor = 130
[    2.873617] usb 2-1.6: New USB device found, idVendor=0a5c, idProduct=4500
[    2.879698] usb 2-1.6: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[    2.884038] usb 2-1.6: Product: BCM2046B1
[    2.888341] usb 2-1.6: Manufacturer: Broadcom
[    2.891237] usb 2-1.6: usb_probe_device
[    2.891244] usb 2-1.6: configuration #1 chosen from 1 choice
[    2.891354] usb 2-1.6: adding 2-1.6:1.0 (config #1, interface 0)
[    2.891398] hub 2-1.6:1.0: usb_probe_interface
[    2.891403] hub 2-1.6:1.0: usb_probe_interface - got id
[    2.891409] hub 2-1.6:1.0: USB hub found
[    2.894104] hub 2-1.6:1.0: 3 ports detected
[    2.896322] hub 2-1.6:1.0: compound device; port removable status: FFF
[    2.896325] hub 2-1.6:1.0: ganged power switching
[    2.896327] hub 2-1.6:1.0: global over-current protection
[    2.896329] hub 2-1.6:1.0: power on to power good time: 100ms
[    2.896606] hub 2-1.6:1.0: local power source is good
[    2.896611] hub 2-1.6:1.0: no over-current condition exists
[    2.896687] hub 2-1.6:1.0: enabling power on all ports
[snip ...]


[    9.117034] Bluetooth: Core ver 2.16
[    9.117051] NET: Registered protocol family 31
[    9.117053] Bluetooth: HCI device and connection manager initialized
[    9.117058] Bluetooth: HCI socket layer initialized
[    9.117061] Bluetooth: L2CAP socket layer initialized
[    9.117067] Bluetooth: SCO socket layer initialized
[    9.189459] cfg80211: World regulatory domain updated:
[    9.189460] cfg80211:   (start_freq - end_freq @ bandwidth), 
(max_antenna_gain, max_eirp)
[    9.189462] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.189463] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.189465] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 
2000 mBm)
[    9.189466] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.189467] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.229696] btusb 2-1.6.3:1.0: usb_probe_interface
[    9.229699] btusb 2-1.6.3:1.0: usb_probe_interface - got id
[    9.230158] btusb 2-1.6.3:1.2: usb_probe_interface
[    9.230164] btusb 2-1.6.3:1.2: usb_probe_interface - got id
[    9.230178] btusb 2-1.6.3:1.3: usb_probe_interface
[    9.230182] btusb 2-1.6.3:1.3: usb_probe_interface - got id
[    9.230211] usbcore: registered new interface driver btusb
[    9.230410] usb 2-1.6.3: link qh1-3008/ffff8801325a7c00 start 0 [1/2 us]
[    9.346066] input: HDA Intel MID Headphone Surround as 
/devices/pci0000:00/0000:00:1b.0/sound/card0/input14
=========================================================================

So it picks up and loads btusb, but not bcm203x, or rfcomm.  Is my kernel 
config wrong?


This is the device in question:
==============================
Bus 002 Device 006: ID 413c:8156 Dell Computer Corp. Wireless 370 Bluetooth 
Mini-card
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          224 Wireless
  bDeviceSubClass         1 Radio Frequency
  bDeviceProtocol         1 Bluetooth
  bMaxPacketSize0        64
  idVendor           0x413c Dell Computer Corp.
  idProduct          0x8156 Wireless 370 Bluetooth Mini-card
  bcdDevice            4.56
  iManufacturer           1 Dell Computer Corp
  iProduct                2 Dell Wireless 370 Bluetooth Mini-card
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          216
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      1 Bluetooth
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      1 Bluetooth
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0000  1x 0 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0000  1x 0 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      1 Bluetooth
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           2
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      1 Bluetooth
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0011  1x 17 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0011  1x 17 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           2
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      1 Bluetooth
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           2
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      1 Bluetooth
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           2
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      1 Bluetooth
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       254 Application Specific Interface
      bInterfaceSubClass      1 Device Firmware Update
      bInterfaceProtocol      0 
      iInterface              0 
      Device Firmware Upgrade Interface Descriptor:
        bLength                             7
        bDescriptorType                    33
        bmAttributes                        7
          Will Not Detach
          Manifestation Tolerant
          Upload Supported
          Download Supported
        wDetachTimeout                   5000 milliseconds
        wTransferSize                      64 bytes
Device Status:     0x0001
  Self Powered
==============================

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to