RT3290 Bluetooth non funziona

Ho un sistema HP Envy H8-1437c e il mio bluetooth non funziona. Sto usando Ubuntu 13.04 con kubuntu-desktop installato. Questo è un sistema UEFI, ma l’avvio legacy è attivo.

Possiedo una scheda wireless e bluetooth Ralink RT3290 e il wireless funziona correttamente. Quando vado alle impostazioni bluetooth in KDE, mi viene detto che non sono stati trovati adattatori bluetooth.

Ecco una parte dell’output di lspci -v :

03: 00.1 Bluetooth: Ralink corp. Sottosistema Bluetooth RT3290: dispositivo Hewlett-Packard Company 18ec Flag: fast devsel, memoria IRQ 11 a f7200000 (32-bit, non prefetchable) [disabilitato] [size = 64K] Funzionalità:

E rfkill list :

0: phy0: LAN wireless

  Soft blocked: no Hard blocked: no 

Come puoi vedere, il bluetooth semplicemente non appare. So che il mio computer è in grado di utilizzare bluetooth; ha funzionato prima che pulissi Windows ed è chiaramente pubblicizzato sulla scatola che è arrivato il computer.

Ho provato a scaricare il driver per la scheda bluetooth da http://downloads.zotac.com/mediadrivers/mb/download/NB087_Ubuntu.zip . Quando seguo le istruzioni da qui , rimango bloccato al primo passaggio. Ecco l’output del comando make quando mi trovo in ~/Downloads/rtbth_v3.9.3/rtbth_v3.9.3 :

make -C /lib/modules/3.8.0-19-generic/build M = / home / ashwin / Downloads / rtbth_v3.9.3 / rtbth_v3.9.3 modules make (1): Inserimento directory /usr/src/linux-headers-3.8.0-19-generic' CC [M] /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:38:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__devinitdata' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'rtbt_pci_suspend': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:60:43: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'rtbt_pci_resume': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:87:46: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: At top level: /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:101:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtbt_pci_probe' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:228:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtbt_pci_remove' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:288:14: error: 'rtbt_pci_ids' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:290:11: error: 'rtbt_pci_probe' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:292:2: error: implicit declaration of function '__devexit_p' [-Werror=implicit-function-declaration] /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:292:24: error: 'rtbt_pci_remove' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'BthIsr': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:346:40: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: At top level: /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:42:1: error: '__mod_pci_device_table' aliased to undefined symbol 'rtbt_pci_ids' cc1: some warnings being treated as errors make[2]: *** [/home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o] Error 1 make[1]: *** [_module_/home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3] Error 2 make[1]: Leaving directory /usr/src/linux-headers-3.8.0-19-generic' CC [M] /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:38:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__devinitdata' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'rtbt_pci_suspend': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:60:43: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'rtbt_pci_resume': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:87:46: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: At top level: /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:101:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtbt_pci_probe' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:228:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtbt_pci_remove' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:288:14: error: 'rtbt_pci_ids' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:290:11: error: 'rtbt_pci_probe' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:292:2: error: implicit declaration of function '__devexit_p' [-Werror=implicit-function-declaration] /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:292:24: error: 'rtbt_pci_remove' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'BthIsr': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:346:40: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: At top level: /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:42:1: error: '__mod_pci_device_table' aliased to undefined symbol 'rtbt_pci_ids' cc1: some warnings being treated as errors make[2]: *** [/home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o] Error 1 make[1]: *** [_module_/home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3] Error 2 make[1]: Leaving directory /usr/src/linux-headers-3.8.0-19-generic' CC [M] /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:38:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__devinitdata' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'rtbt_pci_suspend': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:60:43: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'rtbt_pci_resume': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:87:46: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: At top level: /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:101:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtbt_pci_probe' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:228:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtbt_pci_remove' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:288:14: error: 'rtbt_pci_ids' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:290:11: error: 'rtbt_pci_probe' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:292:2: error: implicit declaration of function '__devexit_p' [-Werror=implicit-function-declaration] /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:292:24: error: 'rtbt_pci_remove' undeclared here (not in a function) /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function 'BthIsr': /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:346:40: error: 'struct hci_dev' has no member named 'driver_data' /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: At top level: /home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:42:1: error: '__mod_pci_device_table' aliased to undefined symbol 'rtbt_pci_ids' cc1: some warnings being treated as errors make[2]: *** [/home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o] Error 1 make[1]: *** [_module_/home/ashwin/Downloads/rtbth_v3.9.3/rtbth_v3.9.3] Error 2 make[1]: Leaving directory /usr/src/linux-headers-3.8.0- 19-generico ‘make: *** [all] Errore 2

Non so perché non riesco a build il pacchetto. In base ai rapporti di altre persone, il driver funziona una volta creato. Ho bisogno del file rtbth.ko da inserire in /etc/Wireless/RT3290 . Per favore aiutami a far funzionare il mio bluetooth … Grazie!

Edit: Ho appena letto un altro post su AskUbuntu a riguardo, con lo stesso problema di me. Si prega di vedere qui . Mi chiedo se posso in qualche modo scaricare il file rtbth.ko da qualche parte, dal momento che è tutto ciò di cui ho bisogno per far funzionare il bluetooth … Apprezzo qualsiasi aiuto su questo argomento. So che potrei tornare a Ubuntu 12.04 LTS, ma davvero non posso perché c’è un software su Ubuntu 13.04 che mi serve per il lavoro … Grazie ancora!

C’è una soluzione a questo problema che spiegherò qui ( fonte )

modificare rtbth_core_bluez.c riga 406 e commentare questa riga.

 //hdev->ioctl = rtbt_hci_dev_ioctl; 

quindi cambia rtbth_core_bluez.c riga # 216 e commenta la riga originale, sostituendola con:

 //status = hci_recv_frame(skb); status = hci_recv_frame(hdev, skb); 

successivamente, è necessario modificare rtbth_core_bluez.c nella riga 86 e apportare queste modifiche (è chiaro?)

 //int rtbt_hci_dev_send(struct sk_buff *skb) int rtbt_hci_dev_send(struct hci_dev *hdev, struct sk_buff *skb) { //struct hci_dev *hdev = (struct hci_dev *)skb->dev; 

dopo aver apportato queste modifiche dovresti essere in grado di compilare e aggiungere i tuoi dispositivi BT, anche se non sono mai riuscito a aggiungere un dispositivo da solo.

a proposito, la patch fornita all’interno del link non funziona e devi farlo da solo.