Ubuntu 15.10 - USB Bluetooth não funciona

2

Já examinei algumas outras respostas, nenhuma delas parecia aplicável ou consertou qualquer coisa.

Eu tenho USB Bluetooth em 15.10. Costumava funcionar bem. Fui para emparelhar meus fones de ouvido hoje e percebi que não conseguia ligar o Bluetooth.

Status do serviço

$ sudo systemctl status bluetooth -l

bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2016-03-20 23:09:56 EDT; 3min 8s ago
     Docs: man:bluetoothd(8)
  Process: 1847 ExecStart=/usr/lib/bluetooth/bluetoothd (code=exited, status=203/EXEC)
 Main PID: 1847 (code=exited, status=203/EXEC)

Mar 20 23:09:56 brian-htpc systemd[1]: Starting Bluetooth service...
Mar 20 23:09:56 brian-htpc systemd[1]: bluetooth.service: Main process exited, code=exited, status=203/EXEC
Mar 20 23:09:56 brian-htpc systemd[1]: Failed to start Bluetooth service.
Mar 20 23:09:56 brian-htpc systemd[1]: bluetooth.service: Unit entered failed state.
Mar 20 23:09:56 brian-htpc systemd[1]: bluetooth.service: Failed with result 'exit-code'.

lsusb

$ lsusb 
Bus 002 Device 003: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0

rfkill

$ rfkill list
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

dmesg

$ sudo dmesg | grep -i bluetooth
[    3.200940] Bluetooth: Core ver 2.20
[    3.200957] Bluetooth: HCI device and connection manager initialized
[    3.200963] Bluetooth: HCI socket layer initialized
[    3.200966] Bluetooth: L2CAP socket layer initialized
[    3.200973] Bluetooth: SCO socket layer initialized
[    3.220752] Bluetooth: hci0: BCM: chip id 63
[    3.223753] Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000
[    3.369865] bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0a5c-21e8.hcd failed with error -2
[    3.369875] Bluetooth: hci0: BCM: Patch brcm/BCM20702A1-0a5c-21e8.hcd not found

Parece que o driver ou firmware está faltando por algum motivo. Como faço para reinstalar? Existe um pacote apt que cuida disso?

Eu tentei find / locate on BCM20702A1-0a5c-21e8.hcd e variações de curingas para ver se ele estava no lugar errado, e esse não parece ser o caso - acredito que ele foi excluído em algum momento de alguma forma.

ATUALIZAÇÕES

Como por P.H. Lin e Jeremy31 Comentários:

  • Instalar o firmware do outro thread não corrigiu meu problema e lsusb não detectou mais uma unidade BT. hciconfig -a não retornou nenhuma saída.
  • Eu removi o arquivo de firmware ( *.hcd ) reinicializado e minha unidade BT apareceu novamente em lbusb , com o resultado de sudo hciconfig -a sendo:

$ sudo hciconfig -a

hci0:   Type: BR/EDR  Bus: USB
    BD Address: 5C:F3:70:77:02:F7  ACL MTU: 1021:8  SCO MTU: 64:1
    UP RUNNING 
    RX bytes:616 acl:0 sco:0 events:34 errors:0
    TX bytes:380 acl:0 sco:0 commands:34 errors:0
    Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH SNIFF 
    Link mode: SLAVE ACCEPT 
    Name: 'BCM20702A'
    Class: 0x000000
    Service Classes: Unspecified
    Device Class: Miscellaneous, 
    HCI Version: 4.0 (0x6)  Revision: 0x1000
    LMP Version: 4.0 (0x6)  Subversion: 0x220e
    Manufacturer: Broadcom Corporation (15)

No entanto, a unidade ainda não "funciona", então estou de volta onde comecei.

    
por Brian Morton 21.03.2016 / 04:23

2 respostas

1

Eu consertei meu próprio problema simplesmente reinstalando a pilha BT (bluez) via apt.

sudo apt-get install --reinstall bluez

Então você tem isso - se o seu dispositivo BT for detectado e parecer estar funcionando corretamente, mas não estiver aparecendo, tente reinstalar a pilha do bluetooth.

    
por Brian Morton 21.03.2016 / 16:32
2

Se alguém se depara com isso, tive / tenho um problema semelhante. Por qualquer motivo, no meu sistema

/usr/lib/bluetooth/bluetoothd

não é executável e, obviamente, falha ao iniciar.

Então,

sudo chmod a+x /usr/lib/bluetooth/bluetoothd

corrige o problema, pelo menos até a próxima reinicialização. Reinstalar o bluex também corrige - embora ainda não tenha sido reinicializado, não sei se ele sobreviverá à reinicialização.

    
por fwyzard 26.06.2016 / 14:13