-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wifi is working after installing the driver, but bluetooth is not #6
Comments
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. |
The bluetooth problem is confirmed and needs to be looked into thoroughly. |
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:
When trying to bring it up, I get this error:
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:
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
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 :
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 |
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 |
Update: it may not be related in fact, it happens mostly after suspend and wake.
Last 2 lines repeat indefinitely, file transfer between devices is fine. |
Hi guys |
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 [email protected] a écrit :
TobiasBora |
For me didn't work
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 |
Why don't you just copy the generated file as explained above ? Le 8 avril 2016 16:44:23 GMT+02:00, Juan Cuzmar [email protected] a écrit :
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 [email protected] a écrit :
TobiasBora |
Confirmed. 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) EDIT: working now after a few reboots. |
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
|
@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 |
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 During handling of the above exception, another exception occurred: Traceback (most recent call last): many thanks |
Hello guys! Please look into issue https://github.com/neurobin/MT7630E/issues/50. |
Hello. Is it possible that we also have to sign the kernel module? See report below. Thanks. EDIT: Rebuilt when noticed that with System info
Devince infoBus 003 Device 003: ID 0e8d:763f MediaTek Inc. General info:
Bluetooth stats:
What didn't work?
What did you try?
Error code:^^^ |
Hello, but now that I have upgraded to the latest kernel I would like to make Bluetooth work. Here is what I have: ASUS TP500L 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 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 |
Hi @jtcraigjr ,
So 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" |
I can't see any |
it is in the very first line of the code 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 (4.1.4 seems the current version of this |
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 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: So, you commands are: Now go on from here. PS:
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 |
I always do the copy/paste because often times, there are hidden characters, or I can't make out something important.
On Wednesday, February 28, 2018, 6:17:39 AM CST, Giacomo Baso <[email protected]> wrote:
@jtcraigjr did you type the commands by hand? Please copy/paste them as they are provided.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I have given up on Bluetooth, nothing has made it work for me... |
Hi, I am on linux mint 19, and I tried running the |
@rachelntp on issue #50 says that there might be a possibility to fix this?
Should we move this conversation there?
…On Tue, May 14, 2019 at 2:05 PM Giacomo Baso ***@***.***> wrote:
That script downloads the kernel source code, which should include the
drivers/bluetooth folder and the btusb.c file. The 4.15 kernel has a
different file structure and is unsupported. You need an older kernel.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6?email_source=notifications&email_token=AHQ7UPTCYWR6VKVW3V4MGYTPVJ2TXA5CNFSM4BJHEB2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVKX5WQ#issuecomment-492142298>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHQ7UPT752I4KZX57YUALMTPVJ2TXANCNFSM4BJHEB2A>
.
|
but the bluetooth is still not working... although now i can see the bluetooth logo ( i am using Gnome ubuntu 15.04)
The text was updated successfully, but these errors were encountered: