Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: rtl8822be bluetooth issue

  1. #1
    Join Date
    Feb 2008
    Beans
    107

    rtl8822be bluetooth issue

    I've installed Kubuntu 17.10 on my Asus ROG STRIX Z370-E mobo system. This mobo has a wifi/bluetooth combo chip, which I believe to be a realtek rtl8822be. The bluetooth/usb device exists, I can start the bluetooth service, but when I try to set the bluetooth device "up", it fails, as follows:

    Code:
    $ sudo hciconfig hci0 
    hci0:   Type: Primary  Bus: USB
            RX bytes:1803 acl:0 sco:0 events:96 errors:0
            TX bytes:1125 acl:0 sco:0 commands:96 errors:0
    Code:
    $ sudo hciconfig hci0 up
    Can't init device hci0: Invalid request code (56)
    Also, blueman-applet does not find the device/adapter

    Other Data .....

    Code:
    $ ps -ef | grep blue
    root       761     1  0 12:28 ?        00:00:00 /usr/lib/bluetooth/bluetoothd
    rbroman   1179  1005  0 12:28 ?        00:00:00 /usr/bin/python3 /usr/bin/blueman-applet
    rbroman   1250     1  0 12:28 ?        00:00:00 /usr/lib/bluetooth/obexd
    Code:
    $ lsmod | grep rtl
    rtl8822be              73728  0
    halmac                135168  1 rtl8822be
    phydm_mod             401408  1 rtl8822be
    btcoexist             184320  1 rtl8822be
    rtl_pci                32768  1 rtl8822be
    rtlwifi               118784  5 phydm_mod,halmac,rtl_pci,btcoexist,rtl8822be
    mac80211              778240  2 rtl_pci,rtlwifi
    cfg80211              610304  2 mac80211,rtlwifi
    btrtl                  16384  1 btusb
    bluetooth             540672  14 btrtl,hci_uart,btintel,btqca,bnep,btbcm,btusb
    Code:
    $ lsusb -v
    
    bla, bla, bla, .....
    
    Bus 001 Device 002: ID 0b05:185c ASUSTek Computer, Inc. 
    Device Descriptor:Data ....
    
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass          224 Wireless
      bDeviceSubClass         1 Radio Frequency
      bDeviceProtocol         1 Bluetooth
      bMaxPacketSize0        64
      idVendor           0x0b05 ASUSTek Computer, Inc.
      idProduct          0x185c 
      bcdDevice            1.10
      iManufacturer           1 Realtek 
      iProduct                2 Bluetooth Radio 
      iSerial                 3 00e04c000001
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength          177
        bNumInterfaces          2
        bConfigurationValue     1.
    Bla, bla, bla ........
    Last edited by jeremy31; February 3rd, 2018 at 06:21 PM.

  2. #2
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,734
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: rtl8822be bluetooth issue

    https://ubuntuforums.org/showthread....4#post13721914

    Maybe this helps with kernel 4.14?!

  3. #3
    Join Date
    Feb 2008
    Beans
    107

    Re: rtl8822be bluetooth issue

    Per praseodym's suggestion, I followed the link above, installed kernel 4.15.0-041500-generic, and put rtl8822befw.bin in /lib/firmware/rtfwifi. Still no joy. The relevant lines from syslog during boot are below, followed by last part of btmon output when executing "sudo hciconfig hci0 up". Relevant output of btmon seems to be "invalid packet size". How to fix ?????

    Code:
    Feb  3 08:50:25 Jboat17 kernel: [    2.759393] r8822be: module is from the staging directory, the quality is unknown, you have been warned.
    Feb  3 08:50:25 Jboat17 kernel: [    2.760312] r8822be 0000:03:00.0: enabling device (0000 -> 0003)
    Feb  3 08:50:25 Jboat17 kernel: [    2.772600] r8822be: Using firmware rtlwifi/rtl8822befw.bin
    Feb  3 08:50:25 Jboat17 kernel: [    2.779180] r8822be: rtlwifi: wireless switch is on
    Feb  3 08:50:25 Jboat17 kernel: [    2.780382] r8822be 0000:03:00.0 wlp3s0: renamed from wlan0
    Feb  3 08:50:25 Jboat17 NetworkManager[773]: <info>  [1517676625.8989] rfkill1: found WiFi radio killswitch (at invalid packet size/sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/ieee80211/phy0/rfkill1) (driver r8822be)invalid packet size
    Code:
    $ sudo hciconfig hci0 up
    
    .
    .
    .       Status: Success (0x00)
            TX power: 0 dBm
    < HCI Command: LE Read White List Size (0x08|0x000f) plen 0                          #55 [hci0] 90.813520
    > HCI Event: Command Complete (0x0e) plen 5                                          #56 [hci0] 90.814482
          LE Read White List Size (0x08|0x000f) ncmd 2
            Status: Success (0x00)
            Size: 32
    < HCI Command: LE Clear White List (0x08|0x0010) plen 0                              #57 [hci0] 90.814517
    > HCI Event: Command Complete (0x0e) plen 4                                          #58 [hci0] 90.815482
          LE Clear White List (0x08|0x0010) ncmd 2
            Status: Success (0x00)
    < HCI Command: Read Local Extended Features (0x04|0x0004) plen 1                     #59 [hci0] 90.815514
            Page: 2
    > HCI Event: Command Complete (0x0e) plen 14                                         #60 [hci0] 90.816489
          Read Local Extended Features (0x04|0x0004) ncmd 2
            Status: Success (0x00)
            Page: 2/2
            Features: 0x5f 0x03 0x00 0x00 0x00 0x00 0x00 0x00
              Connectionless Slave Broadcast - Master
              Connectionless Slave Broadcast - Slave
              Synchronization Train
              Synchronization Scan
              Inquiry Response Notification Event
              Coarse Clock Adjustment
              Secure Connections (Controller Support)
              Ping
    < HCI Command: Delete Stored Link Key (0x03|0x0012) plen 7                           #61 [hci0] 90.816526
            Address: 00:00:00:00:00:00 (OUI 00-00-00)
            Delete all: 0x01
    > HCI Event: Command Complete (0x0e) plen 6                                          #62 [hci0] 90.818483
          Delete Stored Link Key (0x03|0x0012) ncmd 2
            Status: Success (0x00)
            Num keys: 0
    < HCI Command: Read Synchronization Train Parameters (0x03|0x0077) plen 0            #63 [hci0] 90.818517
    > HCI Event: Command Complete (0x0e) plen 9                                          #64 [hci0] 90.819485
          Read Synchronization Train Parameters (0x03|0x0077) ncmd 2
            invalid packet size
            01 08 69 11 80 01                                ..i...          
    = Close Index: 64:6E:69:8F:25:A4                                                         [hci0] 90.819519
    @ RAW Close: hciconfig
    Last edited by slickymaster; April 19th, 2018 at 03:30 PM. Reason: code tags

  4. #4
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,734
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: rtl8822be bluetooth issue

    What about 4.14 as suggested? Thats the stable one

  5. #5
    Join Date
    Feb 2008
    Beans
    107

    Re: rtl8822be bluetooth issue

    Quote Originally Posted by praseodym View Post
    What about 4.14 as suggested? Thats the stable one
    I'm on kernel 4.14.15, problem continues:

    Wifi works, and in my dmesg output I see ....

    Code:
    $ dmesg | egrep -i '8822'
    .....................
    [    3.870314] r8822be: Using firmware rtlwifi/rtl8822befw.bin
    [    3.876041] r8822be: rtlwifi: wireless switch is on
    [    3.877704] Modules linked in: rtlwifi(OE+) ...............
    What I do *not* see in dmesg is something like this - taken from another post ....

    Code:
    38.862067] usb 1-5: Product: Bluetooth Radio 
    [   39.028085] Bluetooth: hci0: rtl: examining hci_ver=07 hci_rev=000b lmp_ver=07 lmp_subver=8822
    [   39.028087] Bluetooth: hci0: rtl: loading rtl_bt/rtl8822b_config.bin
    [   39.028144] Bluetooth: hci0: rtl: loading rtl_bt/rtl8822b_fw.bin
    [   39.029844] Bluetooth: hci0: rom_version status=0 version=2
    The rtl8822 chip provides both wifii and bluetooth support, and I think that linux support for the bluetooth side happened or is happening after the linux support for the wifi side. The bluetooth firmware files rtl_bt/rtl8822b_config.bin and rtl_bt/rtl8822b_fw.bin are installed on my system. But I don't think they're loading.

    At this point I'm in over my head. Modules btusb and btrtl are loaded on my system, and I suspect that one of them is supposed to cause the two firmware bin files above to load, but I'm not sure. If so, kernel 4.14.15 may not have a version of those modules which supports the rtl8822be bluetooth side. I'd appreciate it if someone can confirm or deny my theory, and/or provide recommendations to fix things.
    Last edited by slickymaster; April 19th, 2018 at 03:32 PM. Reason: code tags

  6. #6
    Join Date
    Feb 2008
    Beans
    107

    Re: rtl8822be bluetooth issue

    I finally got Bluetooth working for my rtl8822be wifi/bluetooth chip. As others have noted, the chip is supported in kernel 4.14 and beyond, but so far only for the wifi function of the chip. For the bluetooth function there's a patch for the btusb module, to add support for the chip, see:

    https://gist.github.com/hwchong/8738...2cac2894c29d65

    You have to download the kernel 4.14 source, apply the patch to /drivers/bluetooth/btusb.c in that source, recompile that module to generate btusb.ko, and replace that module in /lib/modules/....your kernel ID...../kernel/drivers/bluetooth/. There's instructions elsewhere as to how to compile and replace a single module in the kernel.

    In addition, I had to add the line "Enable=Source,Sink,Media,Socket" under [General] in /etc/bluetooth/main.conf to get my kubuntu box to play audio through my bluetooth speakers.

  7. #7
    Join Date
    May 2014
    Location
    /home
    Beans
    8,195
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: rtl8822be bluetooth issue

    Actually you could do the same in 4.4, for the wireless
    Code:
    sudo apt-get install git dkms
    git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
    sudo dkms add ./rtlwifi_new
    sudo dkms install rtlwifi-new/0.6
    Then for bluetooth you can clone the patched 4.4 bluetooth source code
    Code:
    git clone https://github.com/jeremyb31/bluetooth-4.4.git
    sudo dkms add ./bluetooth-4.4
    sudo dkms install bluetooth-4.4/0.1
    Reboot

  8. #8
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,734
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: rtl8822be bluetooth issue

    Jeremy: Do you know if this bluetooth manual works for rtl8723de chipsets, too? Mostly, this error occurs:

    Code:
    [ 1182.222843] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2
    The file is missing anywhere

  9. #9
    Join Date
    May 2014
    Location
    /home
    Beans
    8,195
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: rtl8822be bluetooth issue

    Hi, that file doesn't exist for all Realtek bluetooth chipsets, for now all we have is at https://git.kernel.org/pub/scm/linux...it/tree/rtl_bt
    That bluetooth should work without the file but if it doesn't, it might be worth filing a bug report about

  10. #10
    Join Date
    Jan 2005
    Location
    Lyon, France
    Beans
    46
    Distro
    Ubuntu

    Re: rtl8822be bluetooth issue

    hello, ok for the files, but do we put them so it works ?
    http://blog.ttoine.net - http://ubuntustudio.org - Ubuntu Studio Team Member
    Laptop: Thinkpad T61P + Echo Audiofire 2
    Workstation: AMD A6 based, custom made, with RME HDSP 9652

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •