[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-09 Thread TJ
I've now tested the device on two other systems with older releases; the results seem to point to a regression somewhere between v3.2 and v3.8: FAILS: linux 3.8.0-35-generic, bluez 4.101-0ubuntu8b1 (same failure mode as Linux v4.2) WORKS: linux 3.2.0-30-generic-pae, bluez 4.98-2ubu

[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-09 Thread TJ
Another log, this time capturing the module, function, line-number and message. Sep 10 00:52:44 hephaestion kernel: [23623.022036] bluetooth:hci_cmd_work:4358: hci1 cmd_cnt 1 cmd queued 4 Sep 10 00:52:44 hephaestion kernel: [23623.022044] bluetooth:hci_send_frame:3494: hci1 type 1 len 3 Sep 10 0

[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-09 Thread TJ
Extract from the kern.log: Sep 10 00:17:36 hephaestion kernel: [21515.251265] hci1 end: err -110 -110 == -ETIMEDOUT There are 2 functions that print the message "end: err %d": net/bluetooth/hci_core.c::__hci_cmd_sync_ev() net/bluetooth/hci_core.c::__hci_req_sync() -- You received this bug not

[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-09 Thread TJ
I believe I've identified the root-cause: $ hciconfig hci1 features hci1: Type: BR/EDR Bus: USB BD Address: 00:10:7A:4D:15:33 ACL MTU: 672:8 SCO MTU: 255:255 Features: 0xff 0xfb 0x01 0x00 0x00 0x00 0x00 0x00 <3-slot packets> <5-slot packets>

[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-09 Thread TJ
This looks to be a kernel issue in net/bluetooth/mgmt.c::read_index_list(). rp->num_controllers, etc., is set as hci_dev_list is iterated over. Some devices are not added due to test flags or quirk bits. I'll check how 'hcitool dev' gathers its list of adapters. ** Changed in: bluez (Ubuntu)

[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-09 Thread TJ
I've been working on this some more. I noticed that even when both adapters are connected before bluetoothd starts, it does not find the 2nd adapter. The problem appears to be in the read_index_list_complete() call-back, which sees only 1 controller despite the RFkill events reporting 3 devices, 2

[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-09 Thread TJ
** Changed in: bluez (Ubuntu) Status: Incomplete => Triaged -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bluez in Ubuntu. https://bugs.launchpad.net/bugs/1491988 Title: 15.10: Multiple Bluetooth controllers not fo

[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-04 Thread TJ
$ cat /etc/systemd/system/bluetooth.service .include /lib/systemd/service/bluetooth.service [Service] ExecStart=/usr/lib/bluetooth/bluetoothd -d $ journalctl -fu bluetooth | tee /tmp/bluetooth-multiple-adapters.log ... Stop/Start bluetooth service ... Insert 2nd USB adapter Sep 04 23:46

[Touch-packages] [Bug 1491988] Re: 15.10: Multiple Bluetooth controllers not found

2015-09-03 Thread Simon Fels
Can you please do the following to generate a more verbose output: $ sudo systemctl stop bluetooth $ MGMT_DEBUG=1 sudo bluetoothd -n -d &> bluetoothd-multiple-adapters.log In another terminal: $ bluetoothctl [bluetooth]# list Please add all output here and attach the file bluetoothd-multiple-