Kubuntu 18.04 Asus Rog Strix z370-I jogos Bluetooth não funciona

0

Estou tendo problemas com o Bluetooth na instalação do Fresh Kubuntu 18.04 na placa-mãe de jogos Z370-I que tem integrado sem fio. Lembre-se de que a conexão sem fio funcionou enquanto o Bluetooth parece não encontrar o adaptador.

systemctl status bluetooth

bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-05-25 10:08:40 CEST; 2h 23min ago
     Docs: man:bluetoothd(8)
 Main PID: 852 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─852 /usr/lib/bluetooth/bluetoothd

lspci

00:00.0 Host bridge: Intel Corporation Device 3ec2 (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Device 3e92
00:14.0 USB controller: Intel Corporation 200 Series PCH USB 3.0 xHCI Controller
00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
00:1b.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #17 (rev f0)
00:1b.3 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #20 (rev f0)
00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0)
00:1c.4 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a2c9
00:1f.2 Memory controller: Intel Corporation 200 Series PCH PMC
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
00:1f.4 SMBus: Intel Corporation 200 Series PCH SMBus Controller
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b822
04:00.0 USB controller: ASMedia Technology Inc. Device 2142

lsusb

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 413c:2113 Dell Computer Corp. 
Bus 001 Device 002: ID 2516:002b  
Bus 001 Device 005: ID 0b05:185c ASUSTek Computer, Inc. 
Bus 001 Device 004: ID 0b05:1872 ASUSTek Computer, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Quando tento iniciar manualmente via bluetoothctl , obtenho o seguinte:

Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]# 

Além disso, a saída de rfkill é:

ID TYPE      DEVICE      SOFT      HARD
 0 wlan      phy0   unblocked unblocked
 1 bluetooth hci0   unblocked unblocked

Qualquer ajuda seria muito bem vinda.

    
por ukaric 25.05.2018 / 12:44

2 respostas

1

Tive o mesmo problema com o novo Kubuntu 18.04 instalado e com o Asus Rog Strix Z370-E. Descobriu-se que o kernel 4.15 em estoque biônico tem todos os drivers e firmware necessários enviados, mas ainda não reconhece o dispositivo (0b05: 185c) como adaptador bluetooth r8822be (kernel 4.17). Resultando nos arquivos de firmware necessários não sendo carregados.

O que eu fiz para resolver isso:

  • Fazer o download da origem do kernel

     apt-get source linux-source-4.15.0
    
  • Copie o conteúdo de "linux-4.15.0 / drivers / bluetooth /" para "~ / btusb-custom /" (eu queria manter o código original para referência no caso de ter feito algo errado).

  • edite ~ / btusb-custom / btusb.c e adicione os IDs de hardware rtl8822be na linha 376. Altere de:

        /* Additional Realtek 8821AE Bluetooth devices */
        { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3414), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3458), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3461), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3462), .driver_info = BTUSB_REALTEK },
    
        /* Silicon Wave based devices */
        { USB_DEVICE(0x0c10, 0x0000), .driver_info = BTUSB_SWAVE },
    
        { } /* Terminating entry */
    

    para:

        /* Additional Realtek 8821AE Bluetooth devices */
        { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3414), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3458), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3461), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3462), .driver_info = BTUSB_REALTEK },
    
        /* Additional Realtek 8822BE Bluetooth devices */
        { USB_DEVICE(0x13d3, 0x3526), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x0b05, 0x185c), .driver_info = BTUSB_REALTEK },
    
        /* Silicon Wave based devices */
        { USB_DEVICE(0x0c10, 0x0000), .driver_info = BTUSB_SWAVE },
    
        { } /* Terminating entry */
    

(código retirado do link )

  • Também em btusb.c altere a linha 41 de:

    #define VERSION "0.8"
    

    para:

    #define VERSION "0.8-custom"
    

    (Caso contrário, você teria que forçar a instalação do dkms.)

  • Crie "~ / btusb-custom / dkms.conf", com o seguinte conteúdo:

        PACKAGE_NAME="btusb-custom"
        PACKAGE_VERSION=0.1
        CLEAN="make clean"
        BUILT_MODULE_NAME[0]="btusb"
        DEST_MODULE_NAME[0]="btusb"
        DEST_MODULE_LOCATION[0]="/updates"
        REMAKE_INITRD=yes
        AUTOINSTALL=yes
    
  • Depois disso, instalei meu módulo personalizado com o DKMS:

    sudo dkms add ~/btusb_custom
    sudo dkms install btusb-custom/0.1
    
  • e testado com

    sudo modprobe -r btusb
    sudo modprobe btusb
    

Viola! O ícone da bandeja do bluetooth no KDE apareceu instantaneamente.

    dmesg | grep 8822

resulta em

    ...
    [    3.629464] Bluetooth: hci0: rtl: examining hci_ver=07 hci_rev=000b lmp_ver=07 lmp_subver=8822
    [    3.629465] Bluetooth: hci0: rtl: loading rtl_bt/rtl8822b_config.bin
    [    3.630645] Bluetooth: hci0: rtl: loading rtl_bt/rtl8822b_fw.bin
    ...

Não se esqueça de remover esse módulo assim que você obtiver um upgrade do kernel > = 4.17, você não precisará dele a partir daí.

NOTA: Meu conhecimento de desenvolvimento de kernel é aproximadamente zero, todo o código acima é copiar e colar de vários resultados de pesquisa combinados com algum senso comum - se algo que eu escrevi é um mau conselho, por favor me corrija!

    
por furioSys 16.07.2018 / 12:40
1

Como uma atualização (porque eu me deparei com essa questão também), você pode baixar os pacotes pré-construídos 4.17 da Canonicals PPA aqui . Faça o download das variantes generic dos módulos, imagem e cabeçalhos, depois dpkg -i dos três e reinicialize. Isso corrigiu meus problemas de BT:)

    
por geudrik 10.08.2018 / 17:19