1 |
On Thursday 29 May 2014 07:27:24 Mick wrote: |
2 |
> On Thursday 29 May 2014 00:05:16 William Kenworthy wrote: |
3 |
> > On 29/05/14 06:28, Mick wrote: |
4 |
> > > On Wednesday 28 May 2014 20:02:29 Samuli Suominen wrote: |
5 |
> > >> On 28/05/14 21:42, Mick wrote: |
6 |
> > >>> Hmm ... am I alone in this quest? |
7 |
> > >> |
8 |
> > >> See here, http://bugs.gentoo.org/show_bug.cgi?id=505362 |
9 |
> > > |
10 |
> > > Thanks! I missed this bug when I glanced earlier. However, it does |
11 |
> > > not mention rfcomm is now missing, or the fact that the gentoo rc |
12 |
> > > script fails to initialise bluethooth and complains about rfcomm |
13 |
> > > service not having started/exist, or that bluetoothctl now does not |
14 |
> > > work at all. Is all this down to a missing udev rule? |
15 |
> > |
16 |
> > No its the fact that bluez 5 has been redesigned to fit in more with the |
17 |
> > systemd world. |
18 |
> |
19 |
> I see. No systemd here, other than systemd's udev. |
20 |
> |
21 |
> > it works if: |
22 |
> > |
23 |
> > remove rfcomm using rc-update |
24 |
> |
25 |
> I didn't have to remove it because it wasn't there ... no rfcomm service |
26 |
> anymore, or any /etc/conf.d/rfcomm file. There is a /etc/conf.d/bluetooth |
27 |
> showing: |
28 |
> ============================================================ |
29 |
> # Bluetooth configuraton file |
30 |
> |
31 |
> # Bind rfcomm devices (allowed values are "true" and "false") |
32 |
> RFCOMM_ENABLE=true |
33 |
> |
34 |
> # Config file for rfcomm |
35 |
> RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf" |
36 |
> ============================================================ |
37 |
> |
38 |
> > /etc/init.d/bluetoothctl restart (get rid of any existing config) |
39 |
> |
40 |
> Ahh! I have no /etc/init.d/bluetoothctl service, only |
41 |
> /etc/init.d/bluetooth |
42 |
> |
43 |
> Am I missing some package for it? Interestingly the module bt_rfcomm was |
44 |
> not initialised by udev and I had to modprobe it manually ... |
45 |
> |
46 |
> # lsmod | grep bt |
47 |
> btusb 14115 0 |
48 |
> bluetooth 173578 5 btusb,rfcomm |
49 |
> |
50 |
> > bluetoothctl |
51 |
> > power on |
52 |
> > scan on |
53 |
> > agent on |
54 |
> > default-agent |
55 |
> > trust [MAC ADDRESS OF CLIENT] |
56 |
> > pair [MAC ADDRESS OF CLIENT] |
57 |
> > enter PIN when requested |
58 |
> > wait for "Connected: no" |
59 |
> > exit |
60 |
> |
61 |
> Unfortunately, none of the above works anymore for me: |
62 |
> |
63 |
> [bluetooth]# power on |
64 |
> No default controller available |
65 |
> [bluetooth]# scan on |
66 |
> No default controller available |
67 |
> [bluetooth]# agent on |
68 |
> Agent registration enabled |
69 |
> [bluetooth]# default-agent |
70 |
> No agent is registered |
71 |
> [bluetooth]# |
72 |
> |
73 |
> > After this you should have an rfcomm channel available to the client. I |
74 |
> > have the above in an expect script as bluetoothctl has no inate remote |
75 |
> > controllability capabilities. No separate pairing app or rfcomm init |
76 |
> > script needed. |
77 |
> |
78 |
> I do not get a /dev/rfcommX, unless I manually set it up like so: |
79 |
> |
80 |
> # rfcomm bind rfcomm0 hci0 |
81 |
> # ls -la /dev/rfcomm* |
82 |
> crw-rw---- 1 root uucp 216, 0 May 29 07:06 /dev/rfcomm0 |
83 |
> |
84 |
> and hci0 will not come up unless I start it with hciconfig. Despite all |
85 |
> this manual intervention bluetooth does not have access or use the rfcomm |
86 |
> device, although 'hcitool scan' and 'sdptool browse' return results from |
87 |
> my mobile phone. |
88 |
> |
89 |
> Please note I have not used the previous patch you have posted on the list. |
90 |
> |
91 |
> These are the BT modules in my 3.12.20-gentoo kernel: |
92 |
> |
93 |
> $ grep -i BT /usr/src/linux/.config |
94 |
> CONFIG_BT=m |
95 |
> CONFIG_BT_RFCOMM=m |
96 |
> CONFIG_BT_RFCOMM_TTY=y |
97 |
> CONFIG_BT_BNEP=m |
98 |
> CONFIG_BT_BNEP_MC_FILTER=y |
99 |
> CONFIG_BT_BNEP_PROTO_FILTER=y |
100 |
> CONFIG_BT_HIDP=m |
101 |
> CONFIG_BT_HCIBTUSB=m |
102 |
> CONFIG_BT_HCIBTSDIO=m |
103 |
> # CONFIG_BT_HCIUART is not set |
104 |
> CONFIG_BT_HCIBCM203X=m |
105 |
> # CONFIG_BT_HCIBPA10X is not set |
106 |
> # CONFIG_BT_HCIBFUSB is not set |
107 |
> # CONFIG_BT_HCIDTL1 is not set |
108 |
> # CONFIG_BT_HCIBT3C is not set |
109 |
> # CONFIG_BT_HCIBLUECARD is not set |
110 |
> # CONFIG_BT_HCIBTUART is not set |
111 |
> # CONFIG_BT_HCIVHCI is not set |
112 |
> # CONFIG_BT_MRVL is not set |
113 |
> # CONFIG_BT_ATH3K is not set |
114 |
> CONFIG_MAC_EMUMOUSEBTN=y |
115 |
> # CONFIG_INPUT_ATLAS_BTNS is not set |
116 |
> # CONFIG_VIDEO_USBTV is not set |
117 |
> # CONFIG_SND_BT87X is not set |
118 |
> # CONFIG_USB_BTMTK is not set |
119 |
> # CONFIG_TOSHIBA_BT_RFKILL is not set |
120 |
> # CONFIG_BTRFS_FS is not set |
121 |
> # CONFIG_RBTREE_TEST is not set |
122 |
> CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y |
123 |
> |
124 |
> and I don't recall changing any of them since the good ol' bluez-4 days. |
125 |
|
126 |
|
127 |
Hmm... also noticed that BT_HCIBCM203X is not loaded either. This is what |
128 |
dmesg shows: |
129 |
========================================================================= |
130 |
... |
131 |
[ 2.778306] usb 2-1.6: new full-speed USB device number 3 using ehci-pci |
132 |
[ 2.795308] hub 2-1:1.0: port 6 not reset yet, waiting 10ms |
133 |
[ 2.844701] psmouse serio1: synaptics: Touchpad model: 1, fw: 7.2, id: |
134 |
0x1c0b1, caps: 0xd04733/0xa40000/0xa0000, board id: 3655, fw id: 579772 |
135 |
[ 2.870246] usb 2-1.6: ep0 maxpacket = 8 |
136 |
[ 2.873102] usb 2-1.6: default language 0x0409 |
137 |
[ 2.873610] usb 2-1.6: udev 3, busnum 2, minor = 130 |
138 |
[ 2.873617] usb 2-1.6: New USB device found, idVendor=0a5c, idProduct=4500 |
139 |
[ 2.879698] usb 2-1.6: New USB device strings: Mfr=1, Product=2, |
140 |
SerialNumber=0 |
141 |
[ 2.884038] usb 2-1.6: Product: BCM2046B1 |
142 |
[ 2.888341] usb 2-1.6: Manufacturer: Broadcom |
143 |
[ 2.891237] usb 2-1.6: usb_probe_device |
144 |
[ 2.891244] usb 2-1.6: configuration #1 chosen from 1 choice |
145 |
[ 2.891354] usb 2-1.6: adding 2-1.6:1.0 (config #1, interface 0) |
146 |
[ 2.891398] hub 2-1.6:1.0: usb_probe_interface |
147 |
[ 2.891403] hub 2-1.6:1.0: usb_probe_interface - got id |
148 |
[ 2.891409] hub 2-1.6:1.0: USB hub found |
149 |
[ 2.894104] hub 2-1.6:1.0: 3 ports detected |
150 |
[ 2.896322] hub 2-1.6:1.0: compound device; port removable status: FFF |
151 |
[ 2.896325] hub 2-1.6:1.0: ganged power switching |
152 |
[ 2.896327] hub 2-1.6:1.0: global over-current protection |
153 |
[ 2.896329] hub 2-1.6:1.0: power on to power good time: 100ms |
154 |
[ 2.896606] hub 2-1.6:1.0: local power source is good |
155 |
[ 2.896611] hub 2-1.6:1.0: no over-current condition exists |
156 |
[ 2.896687] hub 2-1.6:1.0: enabling power on all ports |
157 |
[snip ...] |
158 |
|
159 |
|
160 |
[ 9.117034] Bluetooth: Core ver 2.16 |
161 |
[ 9.117051] NET: Registered protocol family 31 |
162 |
[ 9.117053] Bluetooth: HCI device and connection manager initialized |
163 |
[ 9.117058] Bluetooth: HCI socket layer initialized |
164 |
[ 9.117061] Bluetooth: L2CAP socket layer initialized |
165 |
[ 9.117067] Bluetooth: SCO socket layer initialized |
166 |
[ 9.189459] cfg80211: World regulatory domain updated: |
167 |
[ 9.189460] cfg80211: (start_freq - end_freq @ bandwidth), |
168 |
(max_antenna_gain, max_eirp) |
169 |
[ 9.189462] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, |
170 |
2000 mBm) |
171 |
[ 9.189463] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, |
172 |
2000 mBm) |
173 |
[ 9.189465] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, |
174 |
2000 mBm) |
175 |
[ 9.189466] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, |
176 |
2000 mBm) |
177 |
[ 9.189467] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, |
178 |
2000 mBm) |
179 |
[ 9.229696] btusb 2-1.6.3:1.0: usb_probe_interface |
180 |
[ 9.229699] btusb 2-1.6.3:1.0: usb_probe_interface - got id |
181 |
[ 9.230158] btusb 2-1.6.3:1.2: usb_probe_interface |
182 |
[ 9.230164] btusb 2-1.6.3:1.2: usb_probe_interface - got id |
183 |
[ 9.230178] btusb 2-1.6.3:1.3: usb_probe_interface |
184 |
[ 9.230182] btusb 2-1.6.3:1.3: usb_probe_interface - got id |
185 |
[ 9.230211] usbcore: registered new interface driver btusb |
186 |
[ 9.230410] usb 2-1.6.3: link qh1-3008/ffff8801325a7c00 start 0 [1/2 us] |
187 |
[ 9.346066] input: HDA Intel MID Headphone Surround as |
188 |
/devices/pci0000:00/0000:00:1b.0/sound/card0/input14 |
189 |
========================================================================= |
190 |
|
191 |
So it picks up and loads btusb, but not bcm203x, or rfcomm. Is my kernel |
192 |
config wrong? |
193 |
|
194 |
|
195 |
This is the device in question: |
196 |
============================== |
197 |
Bus 002 Device 006: ID 413c:8156 Dell Computer Corp. Wireless 370 Bluetooth |
198 |
Mini-card |
199 |
Device Descriptor: |
200 |
bLength 18 |
201 |
bDescriptorType 1 |
202 |
bcdUSB 2.00 |
203 |
bDeviceClass 224 Wireless |
204 |
bDeviceSubClass 1 Radio Frequency |
205 |
bDeviceProtocol 1 Bluetooth |
206 |
bMaxPacketSize0 64 |
207 |
idVendor 0x413c Dell Computer Corp. |
208 |
idProduct 0x8156 Wireless 370 Bluetooth Mini-card |
209 |
bcdDevice 4.56 |
210 |
iManufacturer 1 Dell Computer Corp |
211 |
iProduct 2 Dell Wireless 370 Bluetooth Mini-card |
212 |
iSerial 0 |
213 |
bNumConfigurations 1 |
214 |
Configuration Descriptor: |
215 |
bLength 9 |
216 |
bDescriptorType 2 |
217 |
wTotalLength 216 |
218 |
bNumInterfaces 4 |
219 |
bConfigurationValue 1 |
220 |
iConfiguration 0 |
221 |
bmAttributes 0xe0 |
222 |
Self Powered |
223 |
Remote Wakeup |
224 |
MaxPower 100mA |
225 |
Interface Descriptor: |
226 |
bLength 9 |
227 |
bDescriptorType 4 |
228 |
bInterfaceNumber 0 |
229 |
bAlternateSetting 0 |
230 |
bNumEndpoints 3 |
231 |
bInterfaceClass 224 Wireless |
232 |
bInterfaceSubClass 1 Radio Frequency |
233 |
bInterfaceProtocol 1 Bluetooth |
234 |
iInterface 0 |
235 |
Endpoint Descriptor: |
236 |
bLength 7 |
237 |
bDescriptorType 5 |
238 |
bEndpointAddress 0x81 EP 1 IN |
239 |
bmAttributes 3 |
240 |
Transfer Type Interrupt |
241 |
Synch Type None |
242 |
Usage Type Data |
243 |
wMaxPacketSize 0x0010 1x 16 bytes |
244 |
bInterval 1 |
245 |
Endpoint Descriptor: |
246 |
bLength 7 |
247 |
bDescriptorType 5 |
248 |
bEndpointAddress 0x82 EP 2 IN |
249 |
bmAttributes 2 |
250 |
Transfer Type Bulk |
251 |
Synch Type None |
252 |
Usage Type Data |
253 |
wMaxPacketSize 0x0040 1x 64 bytes |
254 |
bInterval 1 |
255 |
Endpoint Descriptor: |
256 |
bLength 7 |
257 |
bDescriptorType 5 |
258 |
bEndpointAddress 0x02 EP 2 OUT |
259 |
bmAttributes 2 |
260 |
Transfer Type Bulk |
261 |
Synch Type None |
262 |
Usage Type Data |
263 |
wMaxPacketSize 0x0040 1x 64 bytes |
264 |
bInterval 1 |
265 |
Interface Descriptor: |
266 |
bLength 9 |
267 |
bDescriptorType 4 |
268 |
bInterfaceNumber 1 |
269 |
bAlternateSetting 0 |
270 |
bNumEndpoints 2 |
271 |
bInterfaceClass 224 Wireless |
272 |
bInterfaceSubClass 1 Radio Frequency |
273 |
bInterfaceProtocol 1 Bluetooth |
274 |
iInterface 0 |
275 |
Endpoint Descriptor: |
276 |
bLength 7 |
277 |
bDescriptorType 5 |
278 |
bEndpointAddress 0x83 EP 3 IN |
279 |
bmAttributes 1 |
280 |
Transfer Type Isochronous |
281 |
Synch Type None |
282 |
Usage Type Data |
283 |
wMaxPacketSize 0x0000 1x 0 bytes |
284 |
bInterval 1 |
285 |
Endpoint Descriptor: |
286 |
bLength 7 |
287 |
bDescriptorType 5 |
288 |
bEndpointAddress 0x03 EP 3 OUT |
289 |
bmAttributes 1 |
290 |
Transfer Type Isochronous |
291 |
Synch Type None |
292 |
Usage Type Data |
293 |
wMaxPacketSize 0x0000 1x 0 bytes |
294 |
bInterval 1 |
295 |
Interface Descriptor: |
296 |
bLength 9 |
297 |
bDescriptorType 4 |
298 |
bInterfaceNumber 1 |
299 |
bAlternateSetting 1 |
300 |
bNumEndpoints 2 |
301 |
bInterfaceClass 224 Wireless |
302 |
bInterfaceSubClass 1 Radio Frequency |
303 |
bInterfaceProtocol 1 Bluetooth |
304 |
iInterface 0 |
305 |
Endpoint Descriptor: |
306 |
bLength 7 |
307 |
bDescriptorType 5 |
308 |
bEndpointAddress 0x83 EP 3 IN |
309 |
bmAttributes 1 |
310 |
Transfer Type Isochronous |
311 |
Synch Type None |
312 |
Usage Type Data |
313 |
wMaxPacketSize 0x0009 1x 9 bytes |
314 |
bInterval 1 |
315 |
Endpoint Descriptor: |
316 |
bLength 7 |
317 |
bDescriptorType 5 |
318 |
bEndpointAddress 0x03 EP 3 OUT |
319 |
bmAttributes 1 |
320 |
Transfer Type Isochronous |
321 |
Synch Type None |
322 |
Usage Type Data |
323 |
wMaxPacketSize 0x0009 1x 9 bytes |
324 |
bInterval 1 |
325 |
Interface Descriptor: |
326 |
bLength 9 |
327 |
bDescriptorType 4 |
328 |
bInterfaceNumber 1 |
329 |
bAlternateSetting 2 |
330 |
bNumEndpoints 2 |
331 |
bInterfaceClass 224 Wireless |
332 |
bInterfaceSubClass 1 Radio Frequency |
333 |
bInterfaceProtocol 1 Bluetooth |
334 |
iInterface 0 |
335 |
Endpoint Descriptor: |
336 |
bLength 7 |
337 |
bDescriptorType 5 |
338 |
bEndpointAddress 0x83 EP 3 IN |
339 |
bmAttributes 1 |
340 |
Transfer Type Isochronous |
341 |
Synch Type None |
342 |
Usage Type Data |
343 |
wMaxPacketSize 0x0011 1x 17 bytes |
344 |
bInterval 1 |
345 |
Endpoint Descriptor: |
346 |
bLength 7 |
347 |
bDescriptorType 5 |
348 |
bEndpointAddress 0x03 EP 3 OUT |
349 |
bmAttributes 1 |
350 |
Transfer Type Isochronous |
351 |
Synch Type None |
352 |
Usage Type Data |
353 |
wMaxPacketSize 0x0011 1x 17 bytes |
354 |
bInterval 1 |
355 |
Interface Descriptor: |
356 |
bLength 9 |
357 |
bDescriptorType 4 |
358 |
bInterfaceNumber 1 |
359 |
bAlternateSetting 3 |
360 |
bNumEndpoints 2 |
361 |
bInterfaceClass 224 Wireless |
362 |
bInterfaceSubClass 1 Radio Frequency |
363 |
bInterfaceProtocol 1 Bluetooth |
364 |
iInterface 0 |
365 |
Endpoint Descriptor: |
366 |
bLength 7 |
367 |
bDescriptorType 5 |
368 |
bEndpointAddress 0x83 EP 3 IN |
369 |
bmAttributes 1 |
370 |
Transfer Type Isochronous |
371 |
Synch Type None |
372 |
Usage Type Data |
373 |
wMaxPacketSize 0x0020 1x 32 bytes |
374 |
bInterval 1 |
375 |
Endpoint Descriptor: |
376 |
bLength 7 |
377 |
bDescriptorType 5 |
378 |
bEndpointAddress 0x03 EP 3 OUT |
379 |
bmAttributes 1 |
380 |
Transfer Type Isochronous |
381 |
Synch Type None |
382 |
Usage Type Data |
383 |
wMaxPacketSize 0x0020 1x 32 bytes |
384 |
bInterval 1 |
385 |
Interface Descriptor: |
386 |
bLength 9 |
387 |
bDescriptorType 4 |
388 |
bInterfaceNumber 1 |
389 |
bAlternateSetting 4 |
390 |
bNumEndpoints 2 |
391 |
bInterfaceClass 224 Wireless |
392 |
bInterfaceSubClass 1 Radio Frequency |
393 |
bInterfaceProtocol 1 Bluetooth |
394 |
iInterface 0 |
395 |
Endpoint Descriptor: |
396 |
bLength 7 |
397 |
bDescriptorType 5 |
398 |
bEndpointAddress 0x83 EP 3 IN |
399 |
bmAttributes 1 |
400 |
Transfer Type Isochronous |
401 |
Synch Type None |
402 |
Usage Type Data |
403 |
wMaxPacketSize 0x0040 1x 64 bytes |
404 |
bInterval 1 |
405 |
Endpoint Descriptor: |
406 |
bLength 7 |
407 |
bDescriptorType 5 |
408 |
bEndpointAddress 0x03 EP 3 OUT |
409 |
bmAttributes 1 |
410 |
Transfer Type Isochronous |
411 |
Synch Type None |
412 |
Usage Type Data |
413 |
wMaxPacketSize 0x0040 1x 64 bytes |
414 |
bInterval 1 |
415 |
Interface Descriptor: |
416 |
bLength 9 |
417 |
bDescriptorType 4 |
418 |
bInterfaceNumber 1 |
419 |
bAlternateSetting 5 |
420 |
bNumEndpoints 2 |
421 |
bInterfaceClass 224 Wireless |
422 |
bInterfaceSubClass 1 Radio Frequency |
423 |
bInterfaceProtocol 1 Bluetooth |
424 |
iInterface 0 |
425 |
Endpoint Descriptor: |
426 |
bLength 7 |
427 |
bDescriptorType 5 |
428 |
bEndpointAddress 0x83 EP 3 IN |
429 |
bmAttributes 1 |
430 |
Transfer Type Isochronous |
431 |
Synch Type None |
432 |
Usage Type Data |
433 |
wMaxPacketSize 0x0040 1x 64 bytes |
434 |
bInterval 1 |
435 |
Endpoint Descriptor: |
436 |
bLength 7 |
437 |
bDescriptorType 5 |
438 |
bEndpointAddress 0x03 EP 3 OUT |
439 |
bmAttributes 1 |
440 |
Transfer Type Isochronous |
441 |
Synch Type None |
442 |
Usage Type Data |
443 |
wMaxPacketSize 0x0040 1x 64 bytes |
444 |
bInterval 1 |
445 |
Interface Descriptor: |
446 |
bLength 9 |
447 |
bDescriptorType 4 |
448 |
bInterfaceNumber 2 |
449 |
bAlternateSetting 0 |
450 |
bNumEndpoints 2 |
451 |
bInterfaceClass 255 Vendor Specific Class |
452 |
bInterfaceSubClass 255 Vendor Specific Subclass |
453 |
bInterfaceProtocol 255 Vendor Specific Protocol |
454 |
iInterface 0 |
455 |
Endpoint Descriptor: |
456 |
bLength 7 |
457 |
bDescriptorType 5 |
458 |
bEndpointAddress 0x84 EP 4 IN |
459 |
bmAttributes 2 |
460 |
Transfer Type Bulk |
461 |
Synch Type None |
462 |
Usage Type Data |
463 |
wMaxPacketSize 0x0020 1x 32 bytes |
464 |
bInterval 1 |
465 |
Endpoint Descriptor: |
466 |
bLength 7 |
467 |
bDescriptorType 5 |
468 |
bEndpointAddress 0x04 EP 4 OUT |
469 |
bmAttributes 2 |
470 |
Transfer Type Bulk |
471 |
Synch Type None |
472 |
Usage Type Data |
473 |
wMaxPacketSize 0x0020 1x 32 bytes |
474 |
bInterval 1 |
475 |
Interface Descriptor: |
476 |
bLength 9 |
477 |
bDescriptorType 4 |
478 |
bInterfaceNumber 3 |
479 |
bAlternateSetting 0 |
480 |
bNumEndpoints 0 |
481 |
bInterfaceClass 254 Application Specific Interface |
482 |
bInterfaceSubClass 1 Device Firmware Update |
483 |
bInterfaceProtocol 0 |
484 |
iInterface 0 |
485 |
Device Firmware Upgrade Interface Descriptor: |
486 |
bLength 7 |
487 |
bDescriptorType 33 |
488 |
bmAttributes 7 |
489 |
Will Not Detach |
490 |
Manifestation Tolerant |
491 |
Upload Supported |
492 |
Download Supported |
493 |
wDetachTimeout 5000 milliseconds |
494 |
wTransferSize 64 bytes |
495 |
Device Status: 0x0001 |
496 |
Self Powered |
497 |
============================== |
498 |
|
499 |
-- |
500 |
Regards, |
501 |
Mick |