wifi is working after installing the driver, but bluetooth is not
Tanzin opened this issue · comments
but the bluetooth is still not working... although now i can see the bluetooth logo ( i am using Gnome ubuntu 15.04)
Your kernel version?
3.19.0-21-generic
I have the same problem this driver solved my wifi, but the bluetooth is still not functioning.
3.19.0-28-generic
The bluetooth problem is confirmed and needs to be looked into thoroughly.
I don't have a testing device and I am not getting enough time to install new kernel in my machine, it's pretty tough to guess what the problem is. I will look into it though, when I get the time.
Same problem on my machine running Ubuntu 15.10 with kernel 4.2.0-17-generic, wifi is ok but bluetooth is not working. Don't know if this may help, but in my configuration the problem seems to be the HCI device initialization. The device is identified as hci0:
$ hciconfig hci0 -a
hci0: Type: BR/EDR Bus: USB
BD Address: 54:35:30:56:92:56 ACL MTU: 1021:4 SCO MTU: 128:2
DOWN
RX bytes:8120 acl:0 sco:0 events:434 errors:0
TX bytes:5194 acl:0 sco:0 commands:434 errors:0
Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
When trying to bring it up, I get this error:
$ sudo hciconfig hci0 up
Can't init device hci0: Invalid request code (56)
Using btmon to trace HCI commands, it seems that the error is caused by an unsupported HCI command (Read Local Supported Codecs to which the device responds with Unknown HCI Command). Here's the output of btmon:
$ sudo btmon
Bluetooth monitor ver 5.35
= New Index: 54:35:30:56:92:56 (BR/EDR,USB,hci0) [hci0] 0.847727
< HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 8.768316
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.951028
Reset (0x03|0x0003) ncmd 1
Status: Success (0x00)
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0 [hci0] 8.951083
> HCI Event: Command Complete (0x0e) plen 12 [hci0] 8.951371
Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Paging parameter negotiation
Power control
Transparent synchronous data
Broadcast Encryption
Enhanced Data Rate ACL 2 Mbps mode
Enhanced Data Rate ACL 3 Mbps mode
Enhanced inquiry scan
Interlaced inquiry scan
Interlaced page scan
RSSI with inquiry results
Extended SCO link (EV3 packets)
EV4 packets
EV5 packets
AFH capable slave
AFH classification slave
LE Supported (Controller)
3-slot Enhanced Data Rate ACL packets
5-slot Enhanced Data Rate ACL packets
Sniff subrating
Pause encryption
AFH capable master
AFH classification master
Enhanced Data Rate eSCO 2 Mbps mode
Enhanced Data Rate eSCO 3 Mbps mode
3-slot Enhanced Data Rate eSCO packets
Extended Inquiry Response
Simultaneous LE and BR/EDR (Controller)
Secure Simple Pairing
Encapsulated PDU
Non-flushable Packet Boundary Flag
Link Supervision Timeout Changed Event
Inquiry TX Power Level
Enhanced Power Control
Extended features
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0 [hci0] 8.951439
> HCI Event: Command Complete (0x0e) plen 12 [hci0] 8.951710
Read Local Version Information (0x04|0x0001) ncmd 1
Status: Success (0x00)
HCI version: Bluetooth 4.0 (0x06) - Revision 6 (0x0006)
LMP version: Bluetooth 4.0 (0x06) - Subversion 6 (0x0006)
Manufacturer: MediaTek, Inc. (70)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 8.951736
> HCI Event: Command Complete (0x0e) plen 10 [hci0] 8.952120
Read BD ADDR (0x04|0x0009) ncmd 1
Status: Success (0x00)
Address: 54:35:30:56:92:56 (Hon Hai Precision Ind. Co.,Ltd.)
< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 8.952252
> HCI Event: Command Complete (0x0e) plen 11 [hci0] 8.952620
Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 1021 ACL max packet: 4
SCO MTU: 128 SCO max packet: 2
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 8.952684
> HCI Event: Command Complete (0x0e) plen 7 [hci0] 8.952995
Read Class of Device (0x03|0x0023) ncmd 1
Status: Success (0x00)
Class: 0x000000
Major class: Miscellaneous
Minor class: 0x00
< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 8.953018
> HCI Event: Command Complete (0x0e) plen 252 [hci0] 8.955331
Read Local Name (0x03|0x0014) ncmd 1
Status: Success (0x00)
Name: Ralink Bluetooth Test Device V2.0.0
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 8.955368
> HCI Event: Command Complete (0x0e) plen 6 [hci0] 8.955581
Read Voice Setting (0x03|0x0025) ncmd 1
Status: Success (0x00)
Setting: 0x0060
Input Coding: Linear
Input Data Format: 2's complement
Input Sample Size: 16-bit
# of bits padding at MSB: 0
Air Coding Format: CVSD
< HCI Command: Read Number of Supported IAC (0x03|0x0038) plen 0 [hci0] 8.955593
> HCI Event: Command Complete (0x0e) plen 5 [hci0] 8.955830
Read Number of Supported IAC (0x03|0x0038) ncmd 1
Status: Success (0x00)
Number of IAC: 2
< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 [hci0] 8.955840
> HCI Event: Command Complete (0x0e) plen 8 [hci0] 8.956214
Read Current IAC LAP (0x03|0x0039) ncmd 1
Status: Success (0x00)
Number of IAC: 1
Access code: 0x9e8b33 (General Inquiry)
< HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 8.956238
Type: Clear All Filters (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.956580
Set Event Filter (0x03|0x0005) ncmd 1
Status: Success (0x00)
< HCI Command: Write Connection Accept Timeout (0x03|0x0016) plen 2 [hci0] 8.956590
Timeout: 20000.000 msec (0x7d00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.956830
Write Connection Accept Timeout (0x03|0x0016) ncmd 1
Status: Success (0x00)
< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0 [hci0] 8.956840
> HCI Event: Command Complete (0x0e) plen 7 [hci0] 8.957219
LE Read Buffer Size (0x08|0x0002) ncmd 1
Status: Success (0x00)
Data packet length: 27
Num data packets: 8
< HCI Command: LE Read Local Supported Features (0x08|0x0003) plen 0 [hci0] 8.957229
> HCI Event: Command Complete (0x0e) plen 12 [hci0] 8.957581
LE Read Local Supported Features (0x08|0x0003) ncmd 1
Status: Success (0x00)
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
LE Encryption
< HCI Command: LE Read Supported States (0x08|0x001c) plen 0 [hci0] 8.957592
> HCI Event: Command Complete (0x0e) plen 12 [hci0] 8.957830
LE Read Supported States (0x08|0x001c) ncmd 1
Status: Success (0x00)
States: 0x000000001fffffff
Non-connectable Advertising State
Scannable Advertising State
Connectable Advertising State
High Duty Cycle Directed Advertising State
Passive Scanning State
Active Scanning State
Initiating State
and Connection State (Master Role)
Connection State (Slave Role)
Non-connectable Advertising State
and Passive Scanning State
Scannable Advertising State
and Passive Scanning State
Connectable Advertising State
and Passive Scanning State
High Duty Cycle Directed Advertising State
and Passive Scanning State
Non-connectable Advertising State
and Active Scanning State
Scannable Advertising State
and Active Scanning State
Connectable Advertising State
and Active Scanning State
High Duty Cycle Directed Advertising State
and Active Scanning State
Non-connectable Advertising State
and Initiating State
Scannable Advertising State
and Initiating State
Non-connectable Advertising State
and Connection State (Master Role)
Scannable Advertising State
and Connection State (Master Role)
Non-connectable Advertising State
and Connection State (Slave Role)
Scannable Advertising State
and Connection State (Slave Role)
Passive Scanning State
and Initiating State
Active Scanning State
and Initiating State
Passive Scanning State
and Connection State (Master Role)
Active Scanning State
and Connection State (Master Role)
Passive Scanning State
and Connection State (Slave Role)
Active Scanning State
and Connection State (Slave Role)
Initiating State
and Connection State (Master Role)
and Master Role & Master Role
< HCI Command: LE Read White List Size (0x08|0x000f) plen 0 [hci0] 8.957840
> HCI Event: Command Complete (0x0e) plen 5 [hci0] 8.958080
LE Read White List Size (0x08|0x000f) ncmd 1
Status: Success (0x00)
Size: 25
< HCI Command: LE Clear White List (0x08|0x0010) plen 0 [hci0] 8.958089
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.958330
LE Clear White List (0x08|0x0010) ncmd 1
Status: Success (0x00)
< HCI Command: Read Local Supported Commands (0x04|0x0002) plen 0 [hci0] 8.958340
> HCI Event: Command Complete (0x0e) plen 68 [hci0] 8.959205
Read Local Supported Commands (0x04|0x0002) ncmd 1
Status: Success (0x00)
Commands: 175 entries
Inquiry (Octet 0 - Bit 0)
Inquiry Cancel (Octet 0 - Bit 1)
Periodic Inquiry Mode (Octet 0 - Bit 2)
Exit Periodic Inquiry Mode (Octet 0 - Bit 3)
Create Connection (Octet 0 - Bit 4)
Disconnect (Octet 0 - Bit 5)
Add SCO Connection (Octet 0 - Bit 6)
Create Connection Cancel (Octet 0 - Bit 7)
Accept Connection Request (Octet 1 - Bit 0)
Reject Connection Request (Octet 1 - Bit 1)
Link Key Request Reply (Octet 1 - Bit 2)
Link Key Request Negative Reply (Octet 1 - Bit 3)
PIN Code Request Reply (Octet 1 - Bit 4)
PIN Code Request Negative Reply (Octet 1 - Bit 5)
Change Connection Packet Type (Octet 1 - Bit 6)
Authentication Requested (Octet 1 - Bit 7)
Set Connection Encryption (Octet 2 - Bit 0)
Change Connection Link Key (Octet 2 - Bit 1)
Master Link Key (Octet 2 - Bit 2)
Remote Name Request (Octet 2 - Bit 3)
Remote Name Request Cancel (Octet 2 - Bit 4)
Read Remote Supported Features (Octet 2 - Bit 5)
Read Remote Extended Features (Octet 2 - Bit 6)
Read Remote Version Information (Octet 2 - Bit 7)
Read Clock Offset (Octet 3 - Bit 0)
Read LMP Handle (Octet 3 - Bit 1)
Hold Mode (Octet 4 - Bit 1)
Sniff Mode (Octet 4 - Bit 2)
Exit Sniff Mode (Octet 4 - Bit 3)
Park State (Octet 4 - Bit 4)
Exit Park State (Octet 4 - Bit 5)
QoS Setup (Octet 4 - Bit 6)
Role Discovery (Octet 4 - Bit 7)
Switch Role (Octet 5 - Bit 0)
Read Link Policy Settings (Octet 5 - Bit 1)
Write Link Policy Settings (Octet 5 - Bit 2)
Read Default Link Policy Settings (Octet 5 - Bit 3)
Write Default Link Policy Settings (Octet 5 - Bit 4)
Flow Specification (Octet 5 - Bit 5)
Set Event Mask (Octet 5 - Bit 6)
Reset (Octet 5 - Bit 7)
Set Event Filter (Octet 6 - Bit 0)
Flush (Octet 6 - Bit 1)
Read PIN Type (Octet 6 - Bit 2)
Write PIN Type (Octet 6 - Bit 3)
Create New Unit Key (Octet 6 - Bit 4)
Read Stored Link Key (Octet 6 - Bit 5)
Write Stored Link Key (Octet 6 - Bit 6)
Delete Stored Link Key (Octet 6 - Bit 7)
Write Local Name (Octet 7 - Bit 0)
Read Local Name (Octet 7 - Bit 1)
Read Connection Accept Timeout (Octet 7 - Bit 2)
Write Connection Accept Timeout (Octet 7 - Bit 3)
Read Page Timeout (Octet 7 - Bit 4)
Write Page Timeout (Octet 7 - Bit 5)
Read Scan Enable (Octet 7 - Bit 6)
Write Scan Enable (Octet 7 - Bit 7)
Read Page Scan Activity (Octet 8 - Bit 0)
Write Page Scan Activity (Octet 8 - Bit 1)
Read Inquiry Scan Activity (Octet 8 - Bit 2)
Write Inquiry Scan Activity (Octet 8 - Bit 3)
Read Authentication Enable (Octet 8 - Bit 4)
Write Authentication Enable (Octet 8 - Bit 5)
Read Encryption Mode (Octet 8 - Bit 6)
Write Encryption Mode (Octet 8 - Bit 7)
Read Class of Device (Octet 9 - Bit 0)
Write Class of Device (Octet 9 - Bit 1)
Read Voice Setting (Octet 9 - Bit 2)
Write Voice Setting (Octet 9 - Bit 3)
Read Automatic Flush Timeout (Octet 9 - Bit 4)
Write Automatic Flush Timeout (Octet 9 - Bit 5)
Read Num Broadcast Retransmissions (Octet 9 - Bit 6)
Write Num Broadcast Retransmissions (Octet 9 - Bit 7)
Read Hold Mode Activity (Octet 10 - Bit 0)
Write Hold Mode Activity (Octet 10 - Bit 1)
Read Transmit Power Level (Octet 10 - Bit 2)
Read Sync Flow Control Enable (Octet 10 - Bit 3)
Write Sync Flow Control Enable (Octet 10 - Bit 4)
Set Controller To Host Flow Control (Octet 10 - Bit 5)
Host Buffer Size (Octet 10 - Bit 6)
Host Number of Completed Packets (Octet 10 - Bit 7)
Read Link Supervision Timeout (Octet 11 - Bit 0)
Write Link Supervision Timeout (Octet 11 - Bit 1)
Read Number of Supported IAC (Octet 11 - Bit 2)
Read Current IAC LAP (Octet 11 - Bit 3)
Write Current IAC LAP (Octet 11 - Bit 4)
Read Page Scan Period Mode (Octet 11 - Bit 5)
Write Page Scan Period Mode (Octet 11 - Bit 6)
Read Page Scan Mode (Octet 11 - Bit 7)
Write Page Scan Mode (Octet 12 - Bit 0)
Set AFH Host Channel Classification (Octet 12 - Bit 1)
Read Inquiry Scan Type (Octet 12 - Bit 4)
Write Inquiry Scan Type (Octet 12 - Bit 5)
Read Inquiry Mode (Octet 12 - Bit 6)
Write Inquiry Mode (Octet 12 - Bit 7)
Read Page Scan Type (Octet 13 - Bit 0)
Write Page Scan Type (Octet 13 - Bit 1)
Read AFH Channel Assessment Mode (Octet 13 - Bit 2)
Write AFH Channel Assessment Mode (Octet 13 - Bit 3)
Read Local Version Information (Octet 14 - Bit 3)
Read Local Supported Features (Octet 14 - Bit 5)
Read Local Extended Features (Octet 14 - Bit 6)
Read Buffer Size (Octet 14 - Bit 7)
Read Country Code (Octet 15 - Bit 0)
Read BD ADDR (Octet 15 - Bit 1)
Read Failed Contact Counter (Octet 15 - Bit 2)
Reset Failed Contact Counter (Octet 15 - Bit 3)
Read Link Quality (Octet 15 - Bit 4)
Read RSSI (Octet 15 - Bit 5)
Read AFH Channel Map (Octet 15 - Bit 6)
Read Clock (Octet 15 - Bit 7)
Read Loopback Mode (Octet 16 - Bit 0)
Write Loopback Mode (Octet 16 - Bit 1)
Enable Device Under Test Mode (Octet 16 - Bit 2)
Setup Synchronous Connection (Octet 16 - Bit 3)
Accept Synchronous Connection Request (Octet 16 - Bit 4)
Reject Synchronous Connection Request (Octet 16 - Bit 5)
Read Extended Inquiry Response (Octet 17 - Bit 0)
Write Extended Inquiry Response (Octet 17 - Bit 1)
Refresh Encryption Key (Octet 17 - Bit 2)
Sniff Subrating (Octet 17 - Bit 4)
Read Simple Pairing Mode (Octet 17 - Bit 5)
Write Simple Pairing Mode (Octet 17 - Bit 6)
Read Local OOB Data (Octet 17 - Bit 7)
Read Inquiry Response TX Power Level (Octet 18 - Bit 0)
Write Inquiry Transmit Power Level (Octet 18 - Bit 1)
Read Default Erroneous Data Reporting (Octet 18 - Bit 2)
Write Default Erroneous Data Reporting (Octet 18 - Bit 3)
IO Capability Request Reply (Octet 18 - Bit 7)
User Confirmation Request Reply (Octet 19 - Bit 0)
User Confirmation Request Neg Reply (Octet 19 - Bit 1)
User Passkey Request Reply (Octet 19 - Bit 2)
User Passkey Request Negative Reply (Octet 19 - Bit 3)
Remote OOB Data Request Reply (Octet 19 - Bit 4)
Write Simple Pairing Debug Mode (Octet 19 - Bit 5)
Enhanced Flush (Octet 19 - Bit 6)
Remote OOB Data Request Neg Reply (Octet 19 - Bit 7)
Send Keypress Notification (Octet 20 - Bit 2)
IO Capability Request Negative Reply (Octet 20 - Bit 3)
Read Enhanced Transmit Power Level (Octet 24 - Bit 0)
Read LE Host Supported (Octet 24 - Bit 5)
Write LE Host Supported (Octet 24 - Bit 6)
LE Set Event Mask (Octet 25 - Bit 0)
LE Read Buffer Size (Octet 25 - Bit 1)
LE Read Local Supported Features (Octet 25 - Bit 2)
LE Set Random Address (Octet 25 - Bit 4)
LE Set Advertising Parameters (Octet 25 - Bit 5)
LE Read Advertising Channel TX Power (Octet 25 - Bit 6)
LE Set Advertising Data (Octet 25 - Bit 7)
LE Set Scan Response Data (Octet 26 - Bit 0)
LE Set Advertise Enable (Octet 26 - Bit 1)
LE Set Scan Parameters (Octet 26 - Bit 2)
LE Set Scan Enable (Octet 26 - Bit 3)
LE Create Connection (Octet 26 - Bit 4)
LE Create Connection Cancel (Octet 26 - Bit 5)
LE Read White List Size (Octet 26 - Bit 6)
LE Clear White List (Octet 26 - Bit 7)
LE Add Device To White List (Octet 27 - Bit 0)
LE Remove Device From White List (Octet 27 - Bit 1)
LE Connection Update (Octet 27 - Bit 2)
LE Set Host Channel Classification (Octet 27 - Bit 3)
LE Read Channel Map (Octet 27 - Bit 4)
LE Read Remote Used Features (Octet 27 - Bit 5)
LE Encrypt (Octet 27 - Bit 6)
LE Rand (Octet 27 - Bit 7)
LE Start Encryption (Octet 28 - Bit 0)
LE Long Term Key Request Reply (Octet 28 - Bit 1)
LE Long Term Key Request Neg Reply (Octet 28 - Bit 2)
LE Read Supported States (Octet 28 - Bit 3)
LE Receiver Test (Octet 28 - Bit 4)
LE Transmitter Test (Octet 28 - Bit 5)
LE Test End (Octet 28 - Bit 6)
Enhanced Setup Synchronous Connection (Octet 29 - Bit 3)
Enhanced Accept Synchronous Connection Request (Octet 29 - Bit 4)
Read Local Supported Codecs (Octet 29 - Bit 5)
< HCI Command: Write Extended Inquiry Response (0x03|0x0052) plen 241 [hci0] 8.959216
FEC: Not required (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.961095
Write Extended Inquiry Response (0x03|0x0052) ncmd 1
Status: Success (0x00)
< HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1 [hci0] 8.961104
Mode: Inquiry Result with RSSI or Extended Inquiry Result (0x02)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.961330
Write Inquiry Mode (0x03|0x0045) ncmd 1
Status: Success (0x00)
< HCI Command: Read Inquiry Response TX Power Level (0x03|0x0058) plen 0 [hci0] 8.961340
> HCI Event: Command Complete (0x0e) plen 5 [hci0] 8.961580
Read Inquiry Response TX Power Level (0x03|0x0058) ncmd 1
Status: Success (0x00)
TX power: 6 dBm
< HCI Command: Read Local Extended Features (0x04|0x0004) plen 1 [hci0] 8.961591
Page: 1
> HCI Event: Command Complete (0x0e) plen 14 [hci0] 8.961830
Read Local Extended Features (0x04|0x0004) ncmd 1
Status: Success (0x00)
Page: 1/1
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 8.961853
Mask: 0x3dbff807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Master Link Key Complete
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete
Synchronous Connection Complete
Synchronous Connection Changed
Sniff Subrating
Extended Inquiry Result
Encryption Key Refresh Complete
IO Capability Request
IO Capability Request Reply
User Confirmation Request
User Passkey Request
Remote OOB Data Request
Simple Pairing Complete
Link Supervision Timeout Changed
Enhanced Flush Complete
User Passkey Notification
Keypress Notification
Remote Host Supported Features Notification
LE Meta
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.962081
Set Event Mask (0x03|0x0001) ncmd 1
Status: Success (0x00)
< HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 [hci0] 8.962091
Address: 00:00:00:00:00:00 (OUI 00-00-00)
Read all: 0x01
> HCI Event: Command Complete (0x0e) plen 8 [hci0] 8.962455
Read Stored Link Key (0x03|0x000d) ncmd 1
Status: Success (0x00)
Max num keys: 0
Num keys: 0
< HCI Command: Write Default Link Policy Settings (0x02|0x000f) plen 2 [hci0] 8.962465
Link policy: 0x000f
Enable Role Switch
Enable Hold Mode
Enable Sniff Mode
Enable Park State
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.962705
Write Default Link Policy Settings (0x02|0x000f) ncmd 1
Status: Success (0x00)
< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 8.962714
> HCI Event: Command Complete (0x0e) plen 8 [hci0] 8.962955
Read Page Scan Activity (0x03|0x001b) ncmd 1
Status: Success (0x00)
Interval: 1280.000 msec (0x0800)
Window: 11.250 msec (0x0012)
< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 8.962964
> HCI Event: Command Complete (0x0e) plen 5 [hci0] 8.963205
Read Page Scan Type (0x03|0x0046) ncmd 1
Status: Success (0x00)
Type: Standard Scan (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8 [hci0] 8.963214
Mask: 0x000000000000001f
LE Connection Complete
LE Advertising Report
LE Connection Update Complete
LE Read Remote Used Features Complete
LE Long Term Key Request
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 8.963580
LE Set Event Mask (0x08|0x0001) ncmd 1
Status: Success (0x00)
< HCI Command: LE Read Advertising Channel TX Power (0x08|0x0007) plen 0 [hci0] 8.963589
> HCI Event: Command Complete (0x0e) plen 5 [hci0] 8.963831
LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
Status: Success (0x00)
TX power: 5 dBm
< HCI Command: Delete Stored Link Key (0x03|0x0012) plen 7 [hci0] 8.963870
Address: 00:00:00:00:00:00 (OUI 00-00-00)
Delete all: 0x01
> HCI Event: Command Complete (0x0e) plen 6 [hci0] 8.964085
Delete Stored Link Key (0x03|0x0012) ncmd 1
Status: Success (0x00)
Num keys: 0
< HCI Command: Read Local Supported Codecs (0x04|0x000b) plen 0 [hci0] 8.964102
> HCI Event: Command Status (0x0f) plen 4 [hci0] 8.964333
Read Local Supported Codecs (0x04|0x000b) ncmd 1
Status: Unknown HCI Command (0x01)
Hope it helps to identify the problem.
Hello,
I also have the same problem. However I noticed a strange thing : the same behaviour is obtained when I uninstall the bluetooth driver ! I wonder if the problem doesn't come from a bad bluetooth module that has a priority greater than our module...
Do you thing it's possible ?
Priority, huh..? I think I will give it a thought and check if that's the case...
Ok thank you. And I don't know if it can help, but I was really surprised to see that in Debian 8.2 (old kernel) the bluetooth worked without a need to manually install the MT7630e driver... So maybe the same module still loads in new kernels but is buggy and disturb the manually compiled driver...
And also, another idea: lsusb gives me the output
$ lsusb | grep Media
Bus 001 Device 005: ID 0e8d:763f MediaTek Inc.
and in the C file, I often read 0e8d:763e instead of 0e8d:763f (I tried to change them, but it didn't work...). Anyone with an old kernel and working bluetooth could give me the output of lsusb ?
If it can help, here is some output of my lsmod, you can see two drivers mt7630e and mt76xx :
$ lsmod | grep mt76
mt7630e 176128 0
mt76xx 20480 0
eeprom_93cx6 16384 1 mt7630e
mac80211 630784 1 mt7630e
cfg80211 532480 2 mac80211,mt7630e
crc_ccitt 16384 1 mt7630e
usbcore 233472 8 btusb,uvcvideo,rtsx_usb,ehci_hcd,ehci_pci,mt76xx,xhci_hcd,xhci_pci
and here is my whole lsmod: http://paste.debian.net/343313/
Hello, I tried to patch btusb.c to enable HCI_QUIRK_BROKEN_LOCAL_COMMANDS on the device, so far it's working.
--- drivers/bluetooth/btusb.c 2015-08-30 20:34:09.000000000 +0200
+++ ../linux-4.2.0/drivers/bluetooth/btusb.c 2016-03-13 21:06:23.393727580 +0100
@@ -60,6 +60,7 @@
#define BTUSB_QCA_ROME 0x8000
#define BTUSB_BCM_APPLE 0x10000
#define BTUSB_REALTEK 0x20000
+#define BTUSB_MEDIATEK 0x40000
static const struct usb_device_id btusb_table[] = {
/* Generic Bluetooth USB device */
@@ -73,7 +74,7 @@
.driver_info = BTUSB_BCM_APPLE },
/* MediaTek MT76x0E */
- { USB_DEVICE(0x0e8d, 0x763f) },
+ { USB_DEVICE(0x0e8d, 0x763f), .driver_info = BTUSB_MEDIATEK },
/* Broadcom SoftSailing reporting vendor specific */
{ USB_DEVICE(0x0a5c, 0x21e1) },
@@ -2796,6 +2803,10 @@
set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, &hdev->quirks);
}
+ if (id->driver_info & BTUSB_MEDIATEK) {
+ set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, &hdev->quirks);
+ }
+
if (id->driver_info & BTUSB_INTEL_BOOT)
set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
Thank you for this tips ! But to try this patch I doesn't have any other options to follow these instructions : http://blog.tkassembled.com/301/patching-btusb-to-enable-compatibility-with-the-bcm20702a0-chip/ ?
That way would work but here's the straight line method, you may have to adapt it for your linux flavor :
sudo service bluetooth stop
sudo apt-get install build-essential linux-headers-$(uname -r)
cd to your prefered build dir
apt-get source linux-image-$(uname -r)
sudo apt-get build-dep linux-image-$(uname -r)
cd to the created source dir
cp "/boot/config-$(uname -r)" .config
cp "/usr/src/linux-headers-$(uname -r)/Module.symvers" .
edit drivers/bluetooth/btusb.c and apply the patch manually
make prepare
make modules_prepare
make M=scripts/mod
make M=drivers/bluetooth/ modules
sudo cp drivers/bluetooth/btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth
sudo service bluetooth start
Edit : added "make modules_prepare" and build-dep
And it seems restarting bluetooth service is not enough, I'm not sure what is the correct way to do that beside reboot, considering reloading mt76* modules might panic the kernel if <= 4.2 as far as I have noticed.
I can confirm that this solves the bug ! Really thank you so much, I'm looking for that solution for months... Do you know if it's supposed to be added in linux kernel soon ?
Only a minor thing to say : I need to run
make modules_prepare
before make M=drivers/bluetooth/ modules
Update: it may not be related in fact, it happens mostly after suspend and wake.
When I connect a phone and then disconnect, or when the phone refuse the connection attempt the syslog shows this:
[13921.201348] ieee80211 phy0: rt2x00lib_rxdone: Error - Wrong frame size 0 max 3840
[13922.051608] ieee80211 phy0: rt2800pci_txdone: Warning - Got TX status for an unavailable queue 9, dropping
[13922.672400] ieee80211 phy0: rt2800pci_txdone: Warning - Got TX status for an unavailable queue 10, dropping
Last 2 lines repeat indefinitely, file transfer between devices is fine.
Hi guys
This solution is apply for every kernel upgrade?
Personnally I manually do these update by hand at each kernel upgrade, but it may be possible to automatize it within this repo so that only one command line is needed. After maybe something like DKMS would automize the installation, but I dont know how to use it.
Le 5 avril 2016 17:27:32 GMT+02:00, Juan Cuzmar notifications@github.com a écrit :
Hi guys
This solution is apply for every kernel upgrade?
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#6 (comment)
TobiasBora
For me didn't work
I found this way to apply my patch https://forum.manjaro.org/index.php?topic=2777.msg22663#msg22663
but without success.
this is my patch:
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index b4cf8d9..d2baf44 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -60,6 +60,7 @@ static struct usb_driver btusb_driver;
#define BTUSB_QCA_ROME 0x8000
#define BTUSB_BCM_APPLE 0x10000
#define BTUSB_REALTEK 0x20000
+#define BTUSB_MEDIATEK 0x40000
static const struct usb_device_id btusb_table[] = {
/* Generic Bluetooth USB device */
@@ -73,7 +74,7 @@ static const struct usb_device_id btusb_table[] = {
.driver_info = BTUSB_BCM_APPLE },
/* MediaTek MT76x0E */
- { USB_DEVICE(0x0e8d, 0x763f) },
+ { USB_DEVICE(0x0e8d, 0x763f), .driver_info = BTUSB_MEDIATEK },
/* Broadcom SoftSailing reporting vendor specific */
{ USB_DEVICE(0x0a5c, 0x21e1) },
@@ -2796,6 +2797,10 @@ static int btusb_probe(struct usb_interface *intf,
set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, &hdev->quirks);
}
+ if (id->driver_info & BTUSB_MEDIATEK) {
+ set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, &hdev->quirks);
+ }
+
if (id->driver_info & BTUSB_INTEL_BOOT)
set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
Somebody has relation with manjaro or archlinux?
What "didn't work" ? Did you manage to compile ? Did you try to manually apply the patch ? On newer kernel the structure of the file has changed a little bit.
Yes I managed compile and everything works fine in fact I seen the patch changes into btusb.c
When it was complete I installed the new kernel but the bluetooth still not working.
I think I will try linux mint and I will test xlehmann's answer
Why don't you just copy the generated file as explained above ?
Le 8 avril 2016 16:44:23 GMT+02:00, Juan Cuzmar notifications@github.com a écrit :
Yes I managed compile and everything works fine in fact I seen the
patch changes into btusb.c
When it was complete I installed the new kernel but the bluetooth still
not working.
I think I will try linux mint and I will test xlehmann's answer
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#6 (comment)
TobiasBora
When I compile the kernel gave me an error so I had to find a new way to compile it
Can you give us the error and enclose your patched file ?
Le 8 avril 2016 17:14:48 GMT+02:00, Juan Cuzmar notifications@github.com a écrit :
When I compile the kernel gave me an error so I had to find a new way
to compile it
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#6 (comment)
TobiasBora
Confirmed.
The above patch solves the bug here in Ubuntu 16.04 LTS. (kernel 4.4.0*)
Just created a wiki page Get bluetooth working in Linux kernel with mt7630e
suggestions and amendments are welcome 👍
Not working for me on Linux Mint 17.3 (kernel 4.4.0-22-generic)
Followed instructions (patched manually) but bluetooth still doesn't turn on.
EDIT: working now after a few reboots.
tna@tna-HP-ProBook-450-G1:~$ uname -r
4.2.0-41-generic
tna@tna-HP-ProBook-450-G1:~$ apt-get source linux-image-4.2.0-41-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'linux-lts-wily' as source package instead of 'linux-image-4.2.0-41-generic'
E: Unable to find a source package for linux-lts-wily
Hi, i am newbie, i follow your guide but i cant "# Get the kernel source code", what can i do
@tranngocanh01071995 do you have source repository enabled?
@neurobin I'm new to Linux, can you please provide the instruction on how to add the source reposudo
Is this right ?
add-apt-repository ppa:canonical-kernel-team/ppa
sudo apt-get update
@tranngocanh01071995 That's a question for ubuntu forums, see this askubuntu post: http://askubuntu.com/questions/158871/how-do-i-enable-the-source-code-repositories
Basically, there needs to be a deb-src
entry for each deb
entry in /etc/apt/sources.list
(open it with text editor)
Thank you so much, bluetooth finally works 💯
hi, I have followed this thread very interested since I have the same issue, but unfortunately I cannot implement the patch because my programming abilities are none. So I wonder if someone has done a kind of executable to run the patch since last year when this thread was alive. A couple of details about my setup and errors:
02:00.0 Network controller: Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe
Resource Not Ready
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/blueman/bluez/errors.py", line 146, in warp
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/blueman/bluez/Adapter.py", line 135, in start_discovery
self.get_interface().StartDiscovery()
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.NotReady: Resource Not Ready
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/blueman-manager", line 210, in inquiry
self.List.DiscoverDevices()
File "/usr/lib/python3/dist-packages/blueman/gui/DeviceList.py", line 401, in DiscoverDevices
self.Adapter.start_discovery()
File "/usr/lib/python3/dist-packages/blueman/bluez/errors.py", line 148, in warp
raise parse_dbus_error(exception)
blueman.bluez.errors.DBusNotReadyError: Resource Not Ready
many thanks
Hello guys! Please look into issue https://github.com/neurobin/MT7630E/issues/50.
Am I the only one such a problem? If not, than we could make an issue in the mainline linux kernel and solve mane BT related problems forever!
Hello.
I have the driver properly installed, both for wi-fi and bluetooth (I followed instructions to manually apply the patch and I also tried with the bpatch script). Wi-Fi works, but bluetooth not.
Is it possible that we also have to sign the kernel module? See report below.
Thanks.
EDIT: Rebuilt when noticed that with modinfo btusb
I had a wrong vermagic
... I don't know how I did.
Now I have the module loaded, but I have another error.
System info
Entry | Details |
---|---|
OS | Linux Mint 18.3 |
Kernel version | 4.13.0-32-generic |
New install | no |
DKMS | no |
Compiler | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) |
Devince info
Bus 003 Device 003: ID 0e8d:763f MediaTek Inc.
General info:
#block starts
03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter
Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 18
Region 0: Memory at f7900000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [70] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <1us, L1 unlimited
ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
pcilib: sysfs_read_vpd: read failed: Input/output error
pcilib: sysfs_read_vpd: read failed: Input/output error
#block ends
Bluetooth stats:
#block starts
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
#block ends
What didn't work?
$ sudo hciconfig hci0 up
Can't init device hci0: Invalid request code (56)
What did you try?
$ hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: 9C:D2:1E:0D:2E:AE ACL MTU: 1021:4 SCO MTU: 128:2
DOWN
RX bytes:1160 acl:0 sco:0 events:62 errors:0
TX bytes:742 acl:0 sco:0 commands:62 errors:0
Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Error code:
^^^
Hello,
I had this WiFi driver working on kernel 4.13.0-24 but the Bluetooth did not work, I never tried to make it work....
but now that I have upgraded to the latest kernel I would like to make Bluetooth work. Here is what I have:
ASUS TP500L
Host: john-TP500LA Kernel: 4.13.0-36-generic x86_64 (64 bit)
Desktop: Cinnamon 3.6.7 Distro: Linux Mint 18.3 Sylvia
The WiFi is working again, but the Bluetooth is not... So I tried following along with the script at https://github.com/neurobin/MT7630E/wiki/Get-bluetooth-working-in-Linux-kernel--with-mt7630e
and it came to a halt with this message in Terminal:
apt-get source linux-image-$ 4.13.0-36-generic
Reading package lists... Done
E: Unable to find a source package for linux-image-$
I am a newbie to Linux, but am not afraid to learn. Have not compiled code since I quit doing machine code on a Motorola 6800 cpu back in 1991.... Life got in the way :(
Appreciate any help
John
Hi @jtcraigjr ,
the problem seems that your previous command it's malformed.
uname -r
will give the kernel release.
$(uname -r)
it's to set a variable from this command, and should return something like:
linux-image-4.13.0-32-generic
.
So sudo apt-get source linux-image-$(uname -r)
will be executed as
sudo apt-get source linux-image-4.13.0-32-generic
or whatever release you're on.
Hope this helps.
I think I may have left a step out previously, the "cl" command. I discovered that 'cl' was not a command for my Linux Mint 18.3 Cinnamon, so I did the instructed command to install it.
Here is what showed up today:
in that list of code, I noted that it refers to "4.1.4"
is that supposed to be the kernel number, or it is something else?
if it is the kernel number, then it retrieved the wrong info for my kernel which is 4.13.0-36-generic
I can't see any cl
command ...
it is in the very first line of the code
john@john-TP500LA ~/Desktop/Build $ cl
The program 'cl' is currently not installed. You can install it by typing:
sudo apt install cl-launch
after which I did that, and then saw the "4.1.4" reference and wondered if that is supposed to be my kernel number? which is isn't.
I mean in the wiki page. No cl
command.
(4.1.4 seems the current version of this cl
binary you installed)
Hmmmm, I reviewed the Wiki page, and 'cl' is not referenced. Just going to forget it, don't know where I saw that now.
But the original question is still in effect, I get an error when I process the code:
I went back thru the code again as shown here:
john@john-TP500LA ~ $ cd Desktop/Build
john@john-TP500LA ~/Desktop/Build $ sudo service bluetooth stop #Stop the bluetooth
[sudo] password for john:
john@john-TP500LA ~/Desktop/Build $ sudo apt-get install build-essential linux-headers-$ 4.13.0-36-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-cloud-tools-4.13.0-36-generic' for regex '4.13.0-36-generic'
Note, selecting 'linux-signed-image-4.13.0-36-generic' for regex '4.13.0-36-generic'
Note, selecting 'linux-image-extra-4.13.0-36-generic' for regex '4.13.0-36-generic'
Note, selecting 'linux-tools-4.13.0-36-generic' for regex '4.13.0-36-generic'
Note, selecting 'linux-headers-4.13.0-36-generic' for regex '4.13.0-36-generic'
Note, selecting 'linux-image-4.13.0-36-generic' for regex '4.13.0-36-generic'
E: Unable to locate package linux-headers-$
E: Couldn't find any package by regex 'linux-headers-$'
john@john-TP500LA ~/Desktop/Build $ apt-get source linux-image-$ 4.13.0-36-generic
Reading package lists... Done
E: Unable to find a source package for linux-image-$
john@john-TP500LA ~/Desktop/Build $
so, if I can't progress any further than this, I will have to forget about Bluetooth.
John, the names of your headers and source packages that you have to install are:
linux-headers-4.13.0-36-generic
and linux-image-4.13.0-36-generic
...
Please forget that apt-get source linux-image-$ 4.13.0-36-generic
, where the space is interpreted as such, so it splits the requested package to install... apt-get says it doesn't find any linux-image-$
, but then it's smart enough to select anyway the linux-headers-4.13.0-36-generic
and linux-image-4.13.0-36-generic
packages from the "string" 4.13.0-36-generic
.
So, you commands are:
sudo apt-get install build-essential linux-headers-4.13.0-36-generic
and
apt-get source linux-image-4.13.0-36-generic
Now go on from here.
PS:
so, if I can't progress any further than this, I will have to forget about Bluetooth.
I did.
@jtcraigjr did you type the commands by hand? Please copy/paste them as they are provided.
EDIT: also there's a script available in the repo that does everything automatically. Just run sudo ./bpatch
from inside the repo folder.
I have given up on Bluetooth,
thanks to everyone who tried to help.
nothing has made it work for me...
Hi, I am on linux mint 19, and I tried running the bpatch
script. I was getting an error on line 164 of the script, saying that drivers/bluetooth
directory is not found. I modified the script to create this directory before execution, but now on the next line, I am getting the following error...
cp: cannot stat 'btusb.c': No such file or directory
I checked the directory and this file indeed is missing, can anyone explain how this can be fixed? The kernal I got was linux-signed-4.15.0
and I think this is corrupted somehow.