1 |
On Thursday 29 May 2014 00:05:16 William Kenworthy wrote: |
2 |
> On 29/05/14 06:28, Mick wrote: |
3 |
> > On Wednesday 28 May 2014 20:02:29 Samuli Suominen wrote: |
4 |
> >> On 28/05/14 21:42, Mick wrote: |
5 |
> >>> Hmm ... am I alone in this quest? |
6 |
> >> |
7 |
> >> See here, http://bugs.gentoo.org/show_bug.cgi?id=505362 |
8 |
> > |
9 |
> > Thanks! I missed this bug when I glanced earlier. However, it does not |
10 |
> > mention rfcomm is now missing, or the fact that the gentoo rc script |
11 |
> > fails to initialise bluethooth and complains about rfcomm service not |
12 |
> > having started/exist, or that bluetoothctl now does not work at all. Is |
13 |
> > all this down to a missing udev rule? |
14 |
> |
15 |
> No its the fact that bluez 5 has been redesigned to fit in more with the |
16 |
> systemd world. |
17 |
|
18 |
I see. No systemd here, other than systemd's udev. |
19 |
|
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 |
|
39 |
> /etc/init.d/bluetoothctl restart (get rid of any existing config) |
40 |
|
41 |
Ahh! I have no /etc/init.d/bluetoothctl service, only /etc/init.d/bluetooth |
42 |
|
43 |
Am I missing some package for it? Interestingly the module bt_rfcomm was not |
44 |
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 |
|
74 |
> After this you should have an rfcomm channel available to the client. I |
75 |
> have the above in an expect script as bluetoothctl has no inate remote |
76 |
> controllability capabilities. No separate pairing app or rfcomm init |
77 |
> script needed. |
78 |
|
79 |
I do not get a /dev/rfcommX, unless I manually set it up like so: |
80 |
|
81 |
# rfcomm bind rfcomm0 hci0 |
82 |
# ls -la /dev/rfcomm* |
83 |
crw-rw---- 1 root uucp 216, 0 May 29 07:06 /dev/rfcomm0 |
84 |
|
85 |
and hci0 will not come up unless I start it with hciconfig. Despite all this |
86 |
manual intervention bluetooth does not have access or use the rfcomm device, |
87 |
although 'hcitool scan' and 'sdptool browse' return results from my mobile |
88 |
phone. |
89 |
|
90 |
Please note I have not used the previous patch you have posted on the list. |
91 |
|
92 |
These are the BT modules in my 3.12.20-gentoo kernel: |
93 |
|
94 |
$ grep -i BT /usr/src/linux/.config |
95 |
CONFIG_BT=m |
96 |
CONFIG_BT_RFCOMM=m |
97 |
CONFIG_BT_RFCOMM_TTY=y |
98 |
CONFIG_BT_BNEP=m |
99 |
CONFIG_BT_BNEP_MC_FILTER=y |
100 |
CONFIG_BT_BNEP_PROTO_FILTER=y |
101 |
CONFIG_BT_HIDP=m |
102 |
CONFIG_BT_HCIBTUSB=m |
103 |
CONFIG_BT_HCIBTSDIO=m |
104 |
# CONFIG_BT_HCIUART is not set |
105 |
CONFIG_BT_HCIBCM203X=m |
106 |
# CONFIG_BT_HCIBPA10X is not set |
107 |
# CONFIG_BT_HCIBFUSB is not set |
108 |
# CONFIG_BT_HCIDTL1 is not set |
109 |
# CONFIG_BT_HCIBT3C is not set |
110 |
# CONFIG_BT_HCIBLUECARD is not set |
111 |
# CONFIG_BT_HCIBTUART is not set |
112 |
# CONFIG_BT_HCIVHCI is not set |
113 |
# CONFIG_BT_MRVL is not set |
114 |
# CONFIG_BT_ATH3K is not set |
115 |
CONFIG_MAC_EMUMOUSEBTN=y |
116 |
# CONFIG_INPUT_ATLAS_BTNS is not set |
117 |
# CONFIG_VIDEO_USBTV is not set |
118 |
# CONFIG_SND_BT87X is not set |
119 |
# CONFIG_USB_BTMTK is not set |
120 |
# CONFIG_TOSHIBA_BT_RFKILL is not set |
121 |
# CONFIG_BTRFS_FS is not set |
122 |
# CONFIG_RBTREE_TEST is not set |
123 |
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y |
124 |
|
125 |
and I don't recall changing any of them since the good ol' bluez-4 days. |
126 |
-- |
127 |
Regards, |
128 |
Mick |