Can't connect a Xbox one controller
Subsystems (2)
Hi,
I've recently bought a new xbox one controller as the 2016 version has bluetooth connectivity.
The controller is pairing and connecting well on a windows 10 computer and an android 4.4 tablet. But I can"t make it connect under linux (Debian unstable, kernel 4.6 and 4.7-rc7, bluez 5.40 from experimental). The pairing is ok but when I try to connect to controller, it stays connected for less than one second, then disconnects, then connects again and so one until the controller goes to sleep, because of the lack of a remote connection.
Any idea ?
# hcitool info C8:3F:26:0F:48:E2
Requesting information ...
BD Address: C8:3F:26:0F:48:E2
OUI Company: Microsoft Corporation (C8-3F-26)
Device Name: Xbox Wireless Controller
LMP Version: 4.2 (0x8) LMP Subversion: 0x0
Manufacturer: MediaTek, Inc. (70)
Features page 0: 0xbf 0x3e 0x8d 0xfe 0xdb 0xfd 0x7b 0x87
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <sniff mode> <RSSI>
<channel quality> <SCO link> <HV2 packets> <HV3 packets>
<CVSD> <power control> <transparent SCO> <broadcast encrypt>
<EDR ACL 2 Mbps> <EDR ACL 3 Mbps> <enhanced iscan>
<interlaced iscan> <interlaced pscan> <inquiry with RSSI>
<extended SCO> <EV4 packets> <EV5 packets> <AFH cap. slave>
<AFH class. slave> <LE support> <3-slot EDR ACL>
<5-slot EDR ACL> <pause encryption> <AFH cap. master>
<AFH class. master> <EDR eSCO 2 Mbps> <EDR eSCO 3 Mbps>
<3-slot EDR eSCO> <extended inquiry> <LE and BR/EDR>
<simple pairing> <encapsulated PDU> <err. data report>
<non-flush flag> <LSTO> <inquiry TX power> <EPC>
<extended features>
Features page 1: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Features page 2: 0x25 0x0b 0x00 0x00 0x00 0x00 0x00 0x00
Features page 3: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
# hcidump
HCI sniffer - Bluetooth packet analyzer ver 5.40
device: hci0 snap_len: 1500 filter: 0xffffffffffffffff
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 256 reason 0x13
Reason: Remote User Terminated ConnectionQuoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Disconn Complete (
0x05) plen 4
status 0x00 handle 256 reason 0x16
Reason: Connection Terminated by Local Host
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 2
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 2
status 0x00Quoted 3 lines
HCI Event: Vendor (
0xff) plen 2
HCI Event: Vendor (0xff) plen 2
HCI Event: Connect Request (0x04) plen 10
bdaddr C8:3F:26:0F:48:E2 class 0x000508 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr C8:3F:26:0F:48:E2 role 0x00
Role: MasterQuoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Role Change (
0x12) plen 8
status 0x00 bdaddr C8:3F:26:0F:48:E2 role 0x00
Role: MasterQuoted 2 lines
HCI Event: Vendor (
0xff) plen 4
HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 256 bdaddr C8:3F:26:0F:48:E2 type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 256Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 0
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 2
status 0x00Quoted 1 line
HCI Event: Max Slots Change (
0x1b) plen 3
handle 256 slots 5
Quoted 1 line
HCI Event: Read Remote Supported Features (
0x0b) plen 11
status 0x00 handle 256
Features: 0xbf 0x3e 0x8d 0xfe 0xdb 0xfd 0x7b 0x87< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 256 page 1
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Link Key Request (
0x17) plen 6
bdaddr C8:3F:26:0F:48:E2
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
bdaddr C8:3F:26:0F:48:E2 key DC6AD6B5BD80110AE5016E3FE834F2CAQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 10
Link Key Request Reply (0x01|0x000b) ncmd 1
status 0x00 bdaddr C8:3F:26:0F:48:E2Quoted 1 line
HCI Event: Read Remote Extended Features (
0x23) plen 13
status 0x00 handle 256 page 1 max 3
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr C8:3F:26:0F:48:E2 mode 2 clkoffset 0x0000< ACL data: handle 256 flags 0x00 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Encrypt Change (
0x08) plen 4
status 0x00 handle 256 encrypt 0x01
< HCI Command: Read Encryption Key Size (0x05|0x0008) plen 2
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7
Read Encryption Key Size (0x05|0x0008) ncmd 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 12
L2CAP(s): Connect req: psm 17 scid 0x0040
< ACL data: handle 256 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 256 flags 0x00 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0010
Streaming mode
Quoted 1 line
HCI Event: Remote Name Req Complete (
0x07) plen 255
status 0x00 bdaddr C8:3F:26:0F:48:E2 name 'Xbox Wireless Controller'
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0010
Streaming mode
< ACL data: handle 256 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 256 flags 0x00 dlen 23
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 11
RFC 0x00 (Basic) Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1480
< ACL data: handle 256 flags 0x00 dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
MTU 1480 Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 15
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 3 clen 1
Failure - unknown options
RFC
< ACL data: handle 256 flags 0x00 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 256 reason 0x13
Reason: Remote User Terminated Connection
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Disconn Complete (
0x05) plen 4
status 0x00 handle 256 reason 0x16
Reason: Connection Terminated by Local Host
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 2
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 2
status 0x00Quoted 3 lines
HCI Event: Vendor (
0xff) plen 2
HCI Event: Vendor (0xff) plen 2
HCI Event: Connect Request (0x04) plen 10
bdaddr C8:3F:26:0F:48:E2 class 0x000508 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr C8:3F:26:0F:48:E2 role 0x00
Role: MasterQuoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Role Change (
0x12) plen 8
status 0x00 bdaddr C8:3F:26:0F:48:E2 role 0x00
Role: MasterQuoted 2 lines
HCI Event: Vendor (
0xff) plen 4
HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 256 bdaddr C8:3F:26:0F:48:E2 type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 256Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 0
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 2
status 0x00Quoted 1 line
HCI Event: Max Slots Change (
0x1b) plen 3
handle 256 slots 5
Quoted 1 line
HCI Event: Read Remote Supported Features (
0x0b) plen 11
status 0x00 handle 256
Features: 0xbf 0x3e 0x8d 0xfe 0xdb 0xfd 0x7b 0x87< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 256 page 1
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Link Key Request (
0x17) plen 6
bdaddr C8:3F:26:0F:48:E2
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
bdaddr C8:3F:26:0F:48:E2 key DC6AD6B5BD80110AE5016E3FE834F2CAQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 10
Link Key Request Reply (0x01|0x000b) ncmd 1
status 0x00 bdaddr C8:3F:26:0F:48:E2Quoted 1 line
HCI Event: Read Remote Extended Features (
0x23) plen 13
status 0x00 handle 256 page 1 max 3
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr C8:3F:26:0F:48:E2 mode 2 clkoffset 0x0000< ACL data: handle 256 flags 0x00 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Encrypt Change (
0x08) plen 4
status 0x00 handle 256 encrypt 0x01
< HCI Command: Read Encryption Key Size (0x05|0x0008) plen 2
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7
Read Encryption Key Size (0x05|0x0008) ncmd 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 12
L2CAP(s): Connect req: psm 17 scid 0x0040
< ACL data: handle 256 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 256 flags 0x00 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0010
Streaming mode
Quoted 1 line
HCI Event: Remote Name Req Complete (
0x07) plen 255
status 0x00 bdaddr C8:3F:26:0F:48:E2 name 'Xbox Wireless Controller'
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0010
Streaming mode
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
< ACL data: handle 256 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 256 flags 0x00 dlen 23
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 11
RFC 0x00 (Basic) Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1480 Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
< ACL data: handle 256 flags 0x00 dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
MTU 1480 Quoted 1 line
ACL data: handle 256 flags
0x02dlen 15
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 3 clen 1
Failure - unknown options
RFC
< ACL data: handle 256 flags 0x00 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 256 packets 1
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040 # bluetoothd -d -n bluetoothd[3715]: Bluetooth daemon 5.40 bluetoothd[3715]: src/main.c:parse_config() parsing main.conf bluetoothd[3715]: src/main.c:parse_config() Key file does not have key 'DiscoverableTimeout' in group 'General' bluetoothd[3715]: src/main.c:parse_config() Key file does not have key 'PairableTimeout' in group 'General' bluetoothd[3715]: src/main.c:parse_config() Key file does not have key 'AutoConnectTimeout' in group 'General' bluetoothd[3715]: src/main.c:parse_config() Key file does not have key 'Name' in group 'General' bluetoothd[3715]: src/main.c:parse_config() Key file does not have key 'Class' in group 'General' bluetoothd[3715]: src/main.c:parse_config() Key file does not have key 'DeviceID' in group 'General' bluetoothd[3715]: src/main.c:parse_config() Key file does not have key 'ReverseServiceDiscovery' in group 'General' bluetoothd[3715]: src/adapter.c:adapter_init() sending read version command bluetoothd[3715]: Starting SDP server bluetoothd[3715]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0528 bluetoothd[3715]: src/plugin.c:plugin_init() Loading builtin plugins bluetoothd[3715]: src/plugin.c:add_plugin() Loading hostname plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading wiimote plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading autopair plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading policy plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading neard plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading sap plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading a2dp plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading avrcp plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading network plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading input plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading hog plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading health plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading gap plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading scanparam plugin bluetoothd[3715]: src/plugin.c:add_plugin() Loading deviceinfo plugin bluetoothd[3715]: src/plugin.c:plugin_init() Loading plugins /usr/lib/x86_64-linux-gnu/bluetooth/plugins bluetoothd[3715]: Version mismatch for sixaxis bluetoothd[3715]: profiles/health/hdp.c:hdp_manager_start() Starting Health manager bluetoothd[3715]: profiles/input/suspend-none.c:suspend_init() bluetoothd[3715]: profiles/network/manager.c:read_config() /etc/bluetooth/network.conf: Key file does not have key 'DisableSecurity' in group 'General' bluetoothd[3715]: profiles/network/manager.c:read_config() Config options: Security=true bluetoothd[3715]: plugins/neard.c:neard_init() Setup neard plugin bluetoothd[3715]: plugins/hostname.c:read_dmi_fallback() chassis: desktop bluetoothd[3715]: plugins/hostname.c:read_dmi_fallback() major: 0x01 minor: 0x01 bluetoothd[3715]: src/main.c:main() Entering main loop bluetoothd[3715]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 2 op 0 soft 0 hard 0 bluetoothd[3715]: Bluetooth management interface 1.12 initialized bluetoothd[3715]: src/adapter.c:read_version_complete() sending read supported commands command bluetoothd[3715]: src/adapter.c:read_version_complete() sending read index list command bluetoothd[3715]: src/adapter.c:read_commands_complete() Number of commands: 63 bluetoothd[3715]: src/adapter.c:read_commands_complete() Number of events: 34 bluetoothd[3715]: src/adapter.c:read_commands_complete() enabling kernel-side connection control bluetoothd[3715]: src/adapter.c:read_index_list_complete() Number of controllers: 1 bluetoothd[3715]: src/adapter.c:read_index_list_complete() Found index 0 bluetoothd[3715]: src/adapter.c:index_added() index 0 bluetoothd[3715]: src/adapter.c:btd_adapter_new() System name: BlueZ 5.40 bluetoothd[3715]: src/adapter.c:btd_adapter_new() Major class: 0 bluetoothd[3715]: src/adapter.c:btd_adapter_new() Minor class: 0 bluetoothd[3715]: src/adapter.c:btd_adapter_new() Modalias: usb:v1D6Bp0246d0528 bluetoothd[3715]: src/adapter.c:btd_adapter_new() Discoverable timeout: 180 seconds bluetoothd[3715]: src/adapter.c:btd_adapter_new() Pairable timeout: 0 seconds bluetoothd[3715]: src/adapter.c:index_added() sending read info command for index 0 bluetoothd[3715]: src/adapter.c:read_info_complete() index 0 status 0x00 bluetoothd[3715]: src/adapter.c:clear_uuids() sending clear uuids command for index 0 bluetoothd[3715]: src/adapter.c:clear_devices() sending clear devices command for index 0 bluetoothd[3715]: src/adapter.c:adapter_service_add() /org/bluez/hci0 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10001 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001800-0000-1000-8000-00805f9 bluetoothd[3715]: src/adapter.c:adapter_service_insert() /org/bluez/hci0 bluetoothd[3715]: src/adapter.c:add_uuid() sending add uuid command for index 0 bluetoothd[3715]: src/gatt-database.c:gatt_db_service_added() GATT Service added to local database bluetoothd[3715]: Failed to obtain handles for "Service Changed" characteristic bluetoothd[3715]: src/adapter.c:adapter_service_add() /org/bluez/hci0 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001801-0000-1000-8000-00805f9 bluetoothd[3715]: src/adapter.c:adapter_service_insert() /org/bluez/hci0 bluetoothd[3715]: src/adapter.c:add_uuid() sending add uuid command for index 0 bluetoothd[3715]: src/gatt-database.c:gatt_db_service_added() GATT Service added to local database bluetoothd[3715]: profiles/audio/a2dp.c:media_server_probe() path /org/bluez/hci0 bluetoothd[3715]: plugins/hostname.c:hostname_probe() bluetoothd[3715]: plugins/hostname.c:update_class() major: 0x01 minor: 0x01 bluetoothd[3715]: src/adapter.c:btd_adapter_set_class() class: major 1 minor 1 bluetoothd[3715]: src/adapter.c:set_dev_class() sending set device class command for index 0 bluetoothd[3715]: profiles/network/manager.c:panu_server_probe() path /org/bluez/hci0 bluetoothd[3715]: profiles/network/server.c:server_register() Registered interface org.bluez.NetworkServer1 on path /org/bluez/hci0 bluetoothd[3715]: profiles/network/manager.c:gn_server_probe() path /org/bluez/hci0 bluetoothd[3715]: profiles/network/manager.c:nap_server_probe() path /org/bluez/hci0 bluetoothd[3715]: profiles/audio/avrcp.c:avrcp_controller_server_probe() path /org/bluez/hci0 bluetoothd[3715]: src/adapter.c:adapter_service_add() /org/bluez/hci0 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10003 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110f-0000-1000-8000-00805f9 bluetoothd[3715]: src/adapter.c:adapter_service_insert() /org/bluez/hci0 bluetoothd[3715]: src/adapter.c:add_uuid() sending add uuid command for index 0 bluetoothd[3715]: profiles/audio/avrcp.c:avrcp_target_server_probe() path /org/bluez/hci0 bluetoothd[3715]: src/adapter.c:adapter_service_add() /org/bluez/hci0 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10004 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110c-0000-1000-8000-00805f9 bluetoothd[3715]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9 bluetoothd[3715]: src/adapter.c:adapter_service_insert() /org/bluez/hci0 bluetoothd[3715]: src/adapter.c:add_uuid() sending add uuid command for index 0 bluetoothd[3715]: profiles/audio/a2dp.c:a2dp_sink_server_probe() path /org/bluez/hci0 bluetoothd[3715]: profiles/audio/a2dp.c:a2dp_source_server_probe() path /org/bluez/hci0 bluetoothd[3715]: profiles/sap/manager.c:sap_server_probe() path /org/bluez/hci0 bluetoothd[3715]: Sap driver initialization failed. bluetoothd[3715]: sap-server: Operation not permitted (1) bluetoothd[3715]: src/adapter.c:btd_adapter_unblock_address() hci0 00:00:00:00:00:00 bluetoothd[3715]: src/adapter.c:get_ltk_info() C8:3F:26:0F:48:E2 bluetoothd[3715]: src/device.c:device_create_from_storage() address C8:3F:26:0F:48:E2 bluetoothd[3715]: src/device.c:device_new() address C8:3F:26:0F:48:E2 bluetoothd[3715]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_C8_3F_26_0F_48_E2 bluetoothd[3715]: src/device.c:btd_device_set_temporary() temporary 0 bluetoothd[3715]: src/device.c:device_set_bonded() bluetoothd[3715]: src/adapter.c:load_link_keys() hci0 keys 1 debug_keys 0 bluetoothd[3715]: src/adapter.c:load_ltks() hci0 keys 0 bluetoothd[3715]: src/adapter.c:load_irks() hci0 irks 0 bluetoothd[3715]: src/adapter.c:load_conn_params() hci0 conn params 0 bluetoothd[3715]: src/device.c:device_probe_profiles() Probing profiles for device C8:3F:26:0F:48:E2 bluetoothd[3715]: src/adapter.c:adapter_service_insert() /org/bluez/hci0 bluetoothd[3715]: src/adapter.c:add_uuid() sending add uuid command for index 0 bluetoothd[3715]: src/adapter.c:set_did() hci0 source 2 vendor 1d6b product 246 version 528 bluetoothd[3715]: src/adapter.c:adapter_register() Adapter /org/bluez/hci0 registered bluetoothd[3715]: src/adapter.c:set_dev_class() sending set device class command for index 0 bluetoothd[3715]: src/adapter.c:set_name() sending set local name command for index 0 bluetoothd[3715]: src/adapter.c:add_whitelist_complete() C8:3F:26:0F:48:E2 added to kernel whitelist bluetoothd[3715]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0 bluetoothd[3715]: src/adapter.c:load_ltks_complete() LTKs loaded for hci0 bluetoothd[3715]: src/adapter.c:load_irks_complete() IRKs loaded for hci0 bluetoothd[3715]: src/adapter.c:load_conn_params_complete() Connection Parameters loaded for hci0 bluetoothd[3715]: src/adapter.c:local_name_changed_callback() Name: BlueZ 5.40 bluetoothd[3715]: src/adapter.c:local_name_changed_callback() Short name: bluetoothd[3715]: src/adapter.c:local_name_changed_callback() Current alias: BlueZ 5.40 bluetoothd[3715]: plugins/hostname.c:property_changed() static hostname: april bluetoothd[3715]: plugins/hostname.c:property_changed() pretty hostname: bluetoothd[3715]: plugins/hostname.c:update_name() name: april bluetoothd[3715]: src/adapter.c:adapter_set_name() name: april bluetoothd[3715]: src/adapter.c:adapter_set_name() alias: april bluetoothd[3715]: src/adapter.c:set_name() sending set local name command for index 0 bluetoothd[3715]: plugins/hostname.c:property_changed() chassis: desktop bluetoothd[3715]: plugins/hostname.c:update_class() major: 0x01 minor: 0x01 bluetoothd[3715]: src/adapter.c:local_name_changed_callback() Name: april bluetoothd[3715]: src/adapter.c:local_name_changed_callback() Short name: bluetoothd[3715]: src/adapter.c:local_name_changed_callback() Current alias: april bluetoothd[3715]: src/adapter.c:property_set_mode() sending Set Powered command for index 0 bluetoothd[3715]: src/adapter.c:property_set_mode_complete() Success (0x00) bluetoothd[3715]: src/adapter.c:new_settings_callback() Settings: 0x00000ad1 bluetoothd[3715]: src/adapter.c:settings_changed() Changed settings: 0x00000001 bluetoothd[3715]: src/adapter.c:adapter_start() adapter /org/bluez/hci0 has been enabled bluetoothd[3715]: src/adapter.c:trigger_passive_scanning() bluetoothd[3715]: src/adapter.c:connected_callback() hci0 device C8:3F:26:0F:48:E2 connected eir_len 5 bluetoothd[3715]: src/adapter.c:dev_disconnected() Device C8:3F:26:0F:48:E2 disconnected, reason 2 bluetoothd[3715]: src/adapter.c:adapter_remove_connection() bluetoothd[3715]: plugins/policy.c:disconnect_cb() reason 2 bluetoothd[3715]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr C8:3F:26:0F:48:E2 type 0 status 0xe bluetoothd[3715]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e bluetoothd[3715]: src/device.c:device_bonding_failed() status 14 bluetoothd[3715]: src/adapter.c:resume_discovery() bluetoothd[3715]: src/adapter.c:connected_callback() hci0 device C8:3F:26:0F:48:E2 connected eir_len 5 bluetoothd[3715]: src/adapter.c:dev_disconnected() Device C8:3F:26:0F:48:E2 disconnected, reason 2 bluetoothd[3715]: src/adapter.c:adapter_remove_connection() bluetoothd[3715]: plugins/policy.c:disconnect_cb() reason 2 bluetoothd[3715]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr C8:3F:26:0F:48:E2 type 0 status 0xe bluetoothd[3715]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e bluetoothd[3715]: src/device.c:device_bonding_failed() status 14 bluetoothd[3715]: src/adapter.c:resume_discovery() bluetoothd[3715]: src/adapter.c:connected_callback() hci0 device C8:3F:26:0F:48:E2 connected eir_len 5 bluetoothd[3715]: src/adapter.c:dev_disconnected() Device C8:3F:26:0F:48:E2 disconnected, reason 2 bluetoothd[3715]: src/adapter.c:adapter_remove_connection() bluetoothd[3715]: plugins/policy.c:disconnect_cb() reason 2 bluetoothd[3715]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr C8:3F:26:0F:48:E2 type 0 status 0xe bluetoothd[3715]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e bluetoothd[3715]: src/device.c:device_bonding_failed() status 14 bluetoothd[3715]: src/adapter.c:resume_discovery() bluetoothd[3715]: src/adapter.c:connected_callback() hci0 device C8:3F:26:0F:48:E2 connected eir_len 5 bluetoothd[3715]: src/adapter.c:dev_disconnected() Device C8:3F:26:0F:48:E2 disconnected, reason 2 bluetoothd[3715]: src/adapter.c:adapter_remove_connection() bluetoothd[3715]: plugins/policy.c:disconnect_cb() reason 2 bluetoothd[3715]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr C8:3F:26:0F:48:E2 type 0 status 0xe bluetoothd[3715]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e bluetoothd[3715]: src/device.c:device_bonding_failed() status 14 bluetoothd[3715]: src/adapter.c:resume_discovery() bluetoothd[3715]: src/adapter.c:connected_callback() hci0 device C8:3F:26:0F:48:E2 connected eir_len 5 bluetoothd[3715]: src/adapter.c:dev_disconnected() Device C8:3F:26:0F:48:E2 disconnected, reason 2 bluetoothd[3715]: src/adapter.c:adapter_remove_connection() bluetoothd[3715]: plugins/policy.c:disconnect_cb() reason 2 bluetoothd[3715]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr C8:3F:26:0F:48:E2 type 0 status 0xe bluetoothd[3715]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e bluetoothd[3715]: src/device.c:device_bonding_failed() status 14 bluetoothd[3715]: src/adapter.c:resume_discovery()
Luiz Augusto von Dentz
maintainerHi Anthony,
Quoted 13 lines · Anthony Bourguignon
Hi,
I've recently bought a new xbox one controller as the 2016 version has bluetooth connectivity.
The controller is pairing and connecting well on a windows 10 computer and an android 4.4 tablet. But I can"t make it connect under linux (Debian unstable, kernel 4.6 and 4.7-rc7, bluez 5.40 from experimental). The pairing is ok but when I try to connect to controller, it stays connected for less than one second, then disconnects, then connects again and so one until the controller goes to sleep, because of the lack of a remote connection.
Quoted 1 line
Any idea ?
It seems there is some problem configuring the L2CAP connection (probably for SDP):
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 15
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 3 clen 1
Failure - unknown options
RFC
< ACL data: handle 256 flags 0x00 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
Signature · 1 line
Luiz Augusto von Dentz
Le jeudi 18 août 2016 à 16:56 +0300, Luiz Augusto von Dentz a écrit :
Quoted 27 lines
Hi Anthony,
Quoted 17 lines · Anthony Bourguignon
Hi,
I've recently bought a new xbox one controller as the 2016 version has
bluetooth connectivity.The controller is pairing and connecting well on a windows 10 computer
and an android 4.4 tablet. But I can"t make it connect under linux (Debian unstable, kernel 4.6 and 4.7-rc7, bluez 5.40 from experimental). The pairing is ok but when I try to connect to controller, it stays connected for less than one second, then disconnects, then connects again and so one until the controller goes
to sleep, because of the lack of a remote connection.Quoted 1 line
Any idea ?
It seems there is some problem configuring the L2CAP connection (probably for SDP):
Quoted 1 line
Quoted 6 lines
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 15L2CAP(s): Config rsp: scid
0x0040flags0x00result 3 clen 1 Failure - unknown options
RFC
< ACL data: handle 256 flags0x00dlen 12
L2CAP(s): Disconn req: dcid0x0040scid0x0040
So, is it a bug of bluez or of the controller firmware ? Why is it possible to make a connection with an android tablet ?
Is there something more I can do to help ?
Luiz Augusto von Dentz
maintainerHi Anthony,
On Thu, Aug 18, 2016 at 5:52 PM, Anthony Bourguignon <[email protected]> w= rote:
Quoted 1 line
Le jeudi 18 ao=C3=BBt 2016 =C3=A0 16:56 +0300, Luiz Augusto von Dentz a =
=C3=A9crit :
Quoted 34 lines
Quoted 27 lines
Hi Anthony,
Quoted 17 lines · Anthony Bourguignon
Hi,
I've recently bought a new xbox one controller as the 2016 version has
bluetooth connectivity.The controller is pairing and connecting well on a windows 10 computer
and an android 4.4 tablet. But I can"t make it connect under linux (Debian unstable, kernel 4.6 and 4.7-rc7, bluez 5.40 from experimental). The pairing is ok but when I try to connect to controller, it stays connected for less than one second, then disconnects, then connects again and so one until the controller goes
to sleep, because of the lack of a remote connection.Quoted 1 line
Any idea ?
It seems there is some problem configuring the L2CAP connection (probably for SDP):
Quoted 1 line
Quoted 6 lines
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 15L2CAP(s): Config rsp: scid
0x0040flags0x00result 3 clen 1
Failure - unknown options
RFC
< ACL data: handle 256 flags0x00dlen 12L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
Quoted 4 lines
So, is it a bug of bluez or of the controller firmware ? Why is it possible to make a connection with an android tablet ?
Is there something more I can do to help ?
Well perhaps we can compare to what other stacks are responding, but this seem quite weird given L2CAP_Config request is an essential part of setting up L2CAP connections so a response with unknown options sounds kind broken, but perhaps other stacks are ignoring it.
--=20
Luiz Augusto von Dentz
Le jeudi 18 août 2016 à 19:20 +0300, Luiz Augusto von Dentz a écrit :
Quoted 51 lines
Hi Anthony,
Quoted 47 lines · Anthony Bourguignon
Le jeudi 18 août 2016 à 16:56 +0300, Luiz Augusto von Dentz a écrit :
Quoted 34 lines
Hi Anthony,
Quoted 21 lines · Anthony Bourguignon
Hi,
I've recently bought a new xbox one controller as the 2016 version
has
bluetooth connectivity.The controller is pairing and connecting well on a windows 10 computer
and an android 4.4 tablet. But I can"t make it connect under linux
(Debian unstable, kernel 4.6 and 4.7-rc7, bluez 5.40 from experimental). The pairing is ok but when I try to connect to controller, it stays connected for less than one second, then disconnects, then connects again and so one until the controller
goes
to sleep, because of the lack of a remote connection.Quoted 1 line
Any idea ?
It seems there is some problem configuring the L2CAP connection (probably for SDP):
Quoted 2 lines
Quoted 6 lines
Quoted 1 line
ACL data: handle 256 flags
0x02dlen 15L2CAP(s): Config rsp: scid
0x0040flags0x00result 3 clen 1 Failure - unknown options
RFC
< ACL data: handle 256 flags0x00dlen 12
L2CAP(s): Disconn req: dcid0x0040scid0x0040So, is it a bug of bluez or of the controller firmware ? Why is it possible to make a connection with an android tablet ?
Quoted 6 lines
Quoted 1 line
Is there something more I can do to help ?
Well perhaps we can compare to what other stacks are responding, but this seem quite weird given
L2CAP_Configrequest is an essential part of setting up L2CAP connections so a response with unknown options sounds kind broken, but perhaps other stacks are ignoring it.
I've juste made a capture with my android tablet. Maybe it'll help. Association failed two times and succeded on the third one.
Thanks
btsnoop � �u) �}q ��� �� ��O ��� ���3��