Skip to content
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

Bluetooth not work, please help #33

Open
renat2985 opened this issue Jul 4, 2016 · 8 comments
Open

Bluetooth not work, please help #33

renat2985 opened this issue Jul 4, 2016 · 8 comments

Comments

@renat2985
Copy link

Please, help. What is the problem:

lspci -nnk | grep -iA2 net; lsusb; rfkill list all; dmesg | egrep -i 'blue|firm'; uname -a
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
    Subsystem: Hewlett-Packard Company Device [103c:1944]
    Kernel driver in use: r8169
04:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
    Subsystem: Hewlett-Packard Company Device [103c:197c]
    Kernel driver in use: mt7630e
Bus 004 Device 002: ID 8087:8000 Intel Corp. 
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:8008 Intel Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 17e9:ff0d DisplayLink 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b3c8 Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse
Bus 001 Device 005: ID 0e8d:763f MediaTek Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
[    0.222262] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
[    3.162008] [Firmware Bug]: ACPI(DGFX) defines _DOD but not _DOS
[   20.270576] Bluetooth: Core ver 2.20
[   20.270588] Bluetooth: HCI device and connection manager initialized
[   20.270601] Bluetooth: HCI socket layer initialized
[   20.270603] Bluetooth: L2CAP socket layer initialized
[   20.270607] Bluetooth: SCO socket layer initialized
[   28.379274] Bluetooth: RFCOMM TTY layer initialized
[   28.379280] Bluetooth: RFCOMM socket layer initialized
[   28.379288] Bluetooth: RFCOMM ver 1.11
[   28.867474] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   28.867477] Bluetooth: BNEP filters: protocol multicast
[   28.867481] Bluetooth: BNEP socket layer initialized
[   34.144750] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'MT7650E234.bin'
[   34.222304] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 112.3
[   34.240651] rt2800_load_firmware: COM_REG0(0x730) = 0x1
Linux rHome 3.19.0-58-generic #64~14.04.1-Ubuntu SMP Fri Mar 18 19:05:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

After sudo ./instal WiFi WORK but Bluetooth not work.

sudo ./install 
make -C /lib/modules/`uname -r`/build M=/home/renat/git/MT7630E/rt2x00 modules
make[1]: Вход в каталог `/usr/src/linux-headers-3.19.0-58-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Выход из каталога `/usr/src/linux-headers-3.19.0-58-generic'
make -C /lib/modules/`uname -r`/build M=/home/renat/git/MT7630E/btloader modules
make[1]: Вход в каталог `/usr/src/linux-headers-3.19.0-58-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Выход из каталога `/usr/src/linux-headers-3.19.0-58-generic'
cp -v firmware/*/* /lib/firmware/
«firmware/BT/mt76x0.bin» -> «/lib/firmware/mt76x0.bin»
«firmware/Wi-FI/MT7650E234.bin» -> «/lib/firmware/MT7650E234.bin»
cp rt2x00/mt7630e.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
cp btloader/mt76xx.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
depmod

The driver has been successfully installed.
If you don't have wifi yet, try to reboot.
If bluetooth doesn't work, read the bluetooth
section in README.md file and follow through.

sudo ./bpatch Did not help

sudo ./bpatch

***

Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлена самая новая версия build-essential.
Уже установлена самая новая версия linux-headers-3.19.0-58-generic.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 20 пакетов не обновлено.
*** Downloading kernel source...
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Используется «linux-lts-vivid» в качестве исходного пакета вместо «linux-image-3.19.0-58-generic»
E: Невозможно найти пакет с исходным кодом для linux-lts-vivid
@tobiasBora
Copy link

Helle,

Are the source packages enabled ? Basically you should read a "deb-src …" line under each "deb …" line in /etc/apt/sources.list.

You can also use this documentation on ubuntu : http://askubuntu.com/questions/158871/how-do-i-enable-the-source-code-repositories

Le 4 juillet 2016 13:39:34 GMT+02:00, Renat [email protected] a écrit :

Please, help. What is the problem:

lspci -nnk | grep -iA2 net; lsusb; rfkill list all; dmesg | egrep -i
'blue|firm'; uname -a
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168]
(rev 0c)
  Subsystem: Hewlett-Packard Company Device [103c:1944]
  Kernel driver in use: r8169
04:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn
Wireless Network Adapter [14c3:7630]
  Subsystem: Hewlett-Packard Company Device [103c:197c]
  Kernel driver in use: mt7630e
Bus 004 Device 002: ID 8087:8000 Intel Corp. 
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:8008 Intel Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 17e9:ff0d DisplayLink 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b3c8 Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 1bcf:0005 Sunplus Innovation Technology Inc.
Optical Mouse
Bus 001 Device 005: ID 0e8d:763f MediaTek Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
1: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
[    0.222262] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
[    3.162008] [Firmware Bug]: ACPI(DGFX) defines _DOD but not _DOS
[   20.270576] Bluetooth: Core ver 2.20
[   20.270588] Bluetooth: HCI device and connection manager initialized
[   20.270601] Bluetooth: HCI socket layer initialized
[   20.270603] Bluetooth: L2CAP socket layer initialized
[   20.270607] Bluetooth: SCO socket layer initialized
[   28.379274] Bluetooth: RFCOMM TTY layer initialized
[   28.379280] Bluetooth: RFCOMM socket layer initialized
[   28.379288] Bluetooth: RFCOMM ver 1.11
[   28.867474] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   28.867477] Bluetooth: BNEP filters: protocol multicast
[   28.867481] Bluetooth: BNEP socket layer initialized
[   34.144750] ieee80211 phy0: rt2x00lib_request_firmware: Info -
Loading firmware file 'MT7650E234.bin'
[   34.222304] ieee80211 phy0: rt2x00lib_request_firmware: Info -
Firmware detected - version: 112.3
[   34.240651] rt2800_load_firmware: COM_REG0(0x730) = 0x1
Linux rHome 3.19.0-58-generic #64~14.04.1-Ubuntu SMP Fri Mar 18
19:05:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

After sudo ./instal WiFi WORK but Bluetooth not work.

sudo ./install 
make -C /lib/modules/`uname -r`/build M=/home/renat/git/MT7630E/rt2x00
modules
make[1]: Вход в каталог `/usr/src/linux-headers-3.19.0-58-generic'
 Building modules, stage 2.
 MODPOST 1 modules
make[1]: Выход из каталога `/usr/src/linux-headers-3.19.0-58-generic'
make -C /lib/modules/`uname -r`/build
M=/home/renat/git/MT7630E/btloader modules
make[1]: Вход в каталог `/usr/src/linux-headers-3.19.0-58-generic'
 Building modules, stage 2.
 MODPOST 1 modules
make[1]: Выход из каталога `/usr/src/linux-headers-3.19.0-58-generic'
cp -v firmware/*/* /lib/firmware/
«firmware/BT/mt76x0.bin» -> «/lib/firmware/mt76x0.bin»
«firmware/Wi-FI/MT7650E234.bin» -> «/lib/firmware/MT7650E234.bin»
cp rt2x00/mt7630e.ko /lib/modules/`uname
-r`/kernel/drivers/net/wireless/
cp btloader/mt76xx.ko /lib/modules/`uname
-r`/kernel/drivers/net/wireless/
depmod

The driver has been successfully installed.
If you don't have wifi yet, try to reboot.
If bluetooth doesn't work, read the bluetooth
section in README.md file and follow through.

sudo ./bpatch Did not help

sudo ./bpatch

***

Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлена самая новая версия build-essential.
Уже установлена самая новая версия linux-headers-3.19.0-58-generic.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0
пакетов, и 20 пакетов не обновлено.
*** Downloading kernel source...
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Используется «linux-lts-vivid» в качестве исходного пакета вместо
«linux-image-3.19.0-58-generic»
E: Невозможно найти пакет с исходным кодом для linux-lts-vivid

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#33

TobiasBora

@renat2985
Copy link
Author

Thanks. But in the end I got the error:

sudo ./bpatch
***
  CC [M]  drivers/bluetooth/bpa10x.o
  CC [M]  drivers/bluetooth/bfusb.o
  CC [M]  drivers/bluetooth/dtl1_cs.o
  CC [M]  drivers/bluetooth/bt3c_cs.o
  CC [M]  drivers/bluetooth/bluecard_cs.o
  CC [M]  drivers/bluetooth/btuart_cs.o
  CC [M]  drivers/bluetooth/btusb.o
drivers/bluetooth/btusb.c: In function ‘btusb_probe’:
drivers/bluetooth/btusb.c:2445:11: error: ‘HCI_QUIRK_BROKEN_LOCAL_COMMANDS’ undeclared (first use in this function)
   set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, &hdev->quirks);
           ^
drivers/bluetooth/btusb.c:2445:11: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [drivers/bluetooth/btusb.o] Ошибка 1
make: *** [_module_drivers/bluetooth] Ошибка 2

@neurobin
Copy link
Owner

neurobin commented Jul 4, 2016

@renat2985 please provide the drivers/bluetooth/btusb.c file (after being patched). And, can you upgrade your kernel?

@renat2985
Copy link
Author

Sorry, I do not understand you. This process bpatch: https://www.youtube.com/watch?v=DySI7YHBcyE

@tobiasBora
Copy link

In others words, could you run

sudo apt-get update && sudo apt full-upgrade

and give us the content of the file build/build__/linux_/driver/bluetooth/btusb.c ?
(The path is approximative, fill the stars to match your case).

Le 4 juillet 2016 17:10:13 GMT+02:00, Renat [email protected] a écrit :

Sorry, I do not understand you. This process bpatch:
https://www.youtube.com/watch?v=DySI7YHBcyE


You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#33 (comment)

TobiasBora

@renat2985
Copy link
Author

Ok, I'm done:

sudo apt-get update && sudo apt full-upgrade
***
sudo ./bpatch
***
  CC [M]  drivers/bluetooth/btusb.o
drivers/bluetooth/btusb.c: In function ‘btusb_probe’:
drivers/bluetooth/btusb.c:2445:11: error: ‘HCI_QUIRK_BROKEN_LOCAL_COMMANDS’ undeclared (first use in this function)
   set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, &hdev->quirks);
           ^
drivers/bluetooth/btusb.c:2445:11: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [drivers/bluetooth/btusb.o] Ошибка 1
make: *** [_module_drivers/bluetooth] Ошибка 2

And look btusb.c in /home/renat/git/MT7630E/build/build_3.19.0-58-generic/linux-lts-vivid-3.19.0/drivers/bluetooth/btusb.c

@neurobin
Copy link
Owner

neurobin commented Jul 5, 2016

@renat2985
Well, seems like the patch isn't applicable in kernel 3.19. Try kernel 4.4.0-24. It's easy to upgrade to this kernel in ubuntu. simply look for linux-image-4.4.0-24 and linux-headers-4.4.0-24 and install them with their associated packages. And do a sudo update-grub after you installed the kernel, then restart and boot the new kernel.. if kernel 4.4.0-28 is available, that will do too.

@renat2985
Copy link
Author

I can only use 3.19.*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants