lwfinger / rtl8723bu

Driver for RTL8723BU
283 stars 143 forks source link

Dongle usb bluetooth + wifi 0bda:b720 realtek : no bluetooth ? #76

Open Coeur-Noir opened 6 years ago

Coeur-Noir commented 6 years ago

Hi,

first sorry for my poor english, and my low skills about drivers.

The whole story is here https://forum.ubuntu-fr.org/viewtopic.php?id=2013553 and there https://forum.ubuntu-fr.org/viewtopic.php?id=2013991 , in french.

To sum it up :

What informations may I provide to help diagnose ? ( you may find dmesg, hcidump, iwconfig, and so on along the threads linked above )

Best regards.

lwfinger commented 6 years ago

I do not read French, thus I was only able to read the computer output in your links. From those, I have the following comments:

  1. The iwconfig commands are not implemented. You need to supply the equivalent commands using iw.

  2. The driver in this repo is provided "as is". If you have a problem building it, or if it crashes with a kernel oops, I will try to fix it. If it does not work the way you want, then you will need to fix that. However, if I build this driver and load it with no other driver loaded, it works for my device with ID obda:b720.

  3. The device also works with rtl8xxxu, but not as well as with 8273bu. Note that rtl8xxxu is being actively worked on. If you have complaints about it, send those to the maintainer shown in the MAINTAINERS file in your source tree.

  4. The version of udev in Ubuntu is really bad! Why should you rename a wireless device from wlan0 to wlx0013efd002c3? I know that it needs to be renamed, but my openSUSE Leap 42.2 system renames it to wlan24. The only reason it gets a number as large as 24 is that I have a large number of wifi cards that get tested.

Coeur-Noir commented 6 years ago

Hello and thank you for explanations.

No problem for building, no kernel oops. Only no bluetooth ( but wifi ok ) on 0bda:b720 if used with 8723bu. And no wifi ( but bluetooth ok ) on a vanilla ubuntu.

The interface name seemed also very strange to me. And I expected something like you describe, or close to wlp1s0 ( this might be of interest https://askubuntu.com/questions/767786/changing-network-interfaces-name-ubuntu-16-04 )

Last question : can you confirm your 0bda:b720 device has bluetooth+wifi working together ok ?


edit : to add some information about interface naming in systemd ( thanks to xubu ) https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ where policy 4 seems to apply here although it's not a default behaviour.

Coeur-Noir commented 6 years ago

Ok ! I've cleaned my system of previous driver installations or compilations. And then have re-compiled rtl8723bu. And wifi + bluetoooth work both as expected !

Well, almost : it seems a wifi connection is needed in order for bluetooth to work ???

In demsg : [ 2.574786] Bluetooth: Core ver 2.22 [ 2.574796] NET: Registered protocol family 31 [ 2.574796] Bluetooth: HCI device and connection manager initialized [ 2.574798] Bluetooth: HCI socket layer initialized [ 2.574800] Bluetooth: L2CAP socket layer initialized [ 2.574803] Bluetooth: SCO socket layer initialized [ 2.586104] usbcore: registered new interface driver btusb [ 2.588562] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723 [ 2.588564] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin [ 2.593591] AVX2 version of gcm_enc/dec engaged. [ 2.593592] AES CTR mode by8 optimization enabled [ 2.596420] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2 [ 2.596423] Bluetooth: hci0: Failed to load rtl_bt/rtl8723b_config.bin [ 2.596426] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin [ 2.599408] Bluetooth: hci0: rom_version status=0 version=1 [ 2.599412] Bluetooth: cfg_sz 0, total size 22496

what does this mean : [ 2.596420] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2

and later in dmesg : [ 16.416050] RTL871X: RTW_ADAPTIVITYEN [ 16.416053] AUTO, chplan:0x20, Regulation:0,0 [ 16.416053] RTL871X: RTW_ADAPTIVITYMODE [ 16.416053] NORMAL [ 17.061517] RTL871X: nolinked power save leave [ 19.236780] RTL871X: rtw_set_802_11_connect(wlx0013efd002c3) fw_state=0x00000008 [ 19.312407] RTL871X: start auth [ 19.315646] RTL871X: auth success, start assoc [ 19.318278] RTL871X: rtw_cfg80211_indicate_connect(wlx0013efd002c3) BSS not found !! [ 19.318281] RTL871X: assoc success [ 19.318301] IPv6: ADDRCONF(NETDEV_CHANGE): wlx0013efd002c3: link becomes ready [ 19.330618] RTL871X: send eapol packet [ 19.345205] RTL871X: send eapol packet [ 19.543272] RTL871X: set pairwise key camid:4, addr:00:1f:9f:ae:de:31, kid:0, type:AES [ 19.546264] RTL871X: set group key camid:5, addr:00:1f:9f:ae:de:31, kid:1, type:AES [ 49.165351] input: 00:15:01:00:C2:3A as /devices/virtual/input/input17 [ 1747.648100] RTL871X: sta recv deauth reason code(7) sta:00:1f:9f:ae:de:31, ignore = 0 [ 1750.160838] RTL871X: nolinked power save enter [ 1751.676493] RTL871X: RTW_ADAPTIVITYEN [ 1751.676495] AUTO, chplan:0x20, Regulation:0,0 [ 1751.676495] RTL871X: RTW_ADAPTIVITYMODE [ 1751.676495] NORMAL [ 1752.273467] RTL871X: nolinked power save leave [ 1754.960571] RTL871X: nolinked power save enter [ 1774.682663] RTL871X: RTW_ADAPTIVITYEN [ 1774.682665] AUTO, chplan:0x20, Regulation:0,0 [ 1774.682665] RTL871X: RTW_ADAPTIVITYMODE [ 1774.682666] NORMAL [ 1775.359633] RTL871X: nolinked power save leave [ 1778.246477] RTL871X: nolinked power save enter [ 1807.678944] RTL871X: RTW_ADAPTIVITYEN [ 1807.678946] AUTO, chplan:0x20, Regulation:0,0 [ 1807.678946] RTL871X: RTW_ADAPTIVITYMODE [ 1807.678947] NORMAL [ 1808.271924] RTL871X: nolinked power save leave [ 1810.435544] RTL871X: nolinked power save enter [ 1822.749272] RTL871X: RTW_ADAPTIVITYEN [ 1822.749274] AUTO, chplan:0x20, Regulation:0,0 [ 1822.749275] RTL871X: RTW_ADAPTIVITYMODE [ 1822.749275] NORMAL [ 1823.562232] RTL871X: nolinked power save leave [ 1825.721494] RTL871X: rtw_set_802_11_connect(wlx0013efd002c3) fw_state=0x00000008 [ 1825.787760] RTL871X: start auth [ 1825.791501] RTL871X: auth success, start assoc [ 1825.794886] RTL871X: rtw_cfg80211_indicate_connect(wlx0013efd002c3) BSS not found !! [ 1825.794894] RTL871X: assoc success [ 1825.807520] RTL871X: send eapol packet [ 1825.835067] RTL871X: send eapol packet [ 1826.019877] RTL871X: set pairwise key camid:4, addr:00:1f:9f:ae:de:31, kid:0, type:AES [ 1826.022848] RTL871X: set group key camid:5, addr:00:1f:9f:ae:de:31, kid:1, type:AES [ 1850.548914] input: 00:15:01:00:C2:3A as /devices/virtual/input/input18 [ 1964.968599] RTL871X: linked_status_chk(wlx0013efd002c3) disconnect or roaming [ 1970.363671] RTL871X: nolinked power save enter [ 1971.655217] RTL871X: RTW_ADAPTIVITYEN [ 1971.655218] AUTO, chplan:0x20, Regulation:0,0 [ 1971.655218] RTL871X: RTW_ADAPTIVITYMODE [ 1971.655219] NORMAL [ 1972.360309] RTL871X: nolinked power save leave [ 1975.035300] RTL871X: nolinked power save enter [ 1985.602236] RTL871X: RTW_ADAPTIVITYEN [ 1985.602237] AUTO, chplan:0x20, Regulation:0,0 [ 1985.602238] RTL871X: RTW_ADAPTIVITYMODE [ 1985.602238] NORMAL [ 1986.099220] RTL871X: nolinked power save leave [ 1988.682199] RTL871X: nolinked power save enter [ 1994.409410] RTL871X: RTW_ADAPTIVITYEN [ 1994.409411] AUTO, chplan:0x20, Regulation:0,0 [ 1994.409412] RTL871X: RTW_ADAPTIVITYMODE [ 1994.409412] NORMAL [ 1994.794514] RTL871X: nolinked power save leave [ 1997.473492] RTL871X: nolinked power save enter [ 2003.196689] RTL871X: RTW_ADAPTIVITYEN [ 2003.196690] AUTO, chplan:0x20, Regulation:0,0 [ 2003.196690] RTL871X: RTW_ADAPTIVITYMODE [ 2003.196691] NORMAL [ 2003.685822] RTL871X: nolinked power save leave [ 2006.177809] RTL871X: rtw_set_802_11_connect(wlx0013efd002c3) fw_state=0x00000008 [ 2008.155951] RTL871X: start auth [ 2008.159555] RTL871X: auth success, start assoc [ 2008.162452] RTL871X: rtw_cfg80211_indicate_connect(wlx0013efd002c3) BSS not found !!

What does this mean : [ 1825.794886] RTL871X: rtw_cfg80211_indicate_connect(wlx0013efd002c3) BSS not found !!

xieyanlin commented 6 years ago

Hi,Can your RTL8723BU BT be connected to other devices and communicate with the data?

Coeur-Noir commented 5 years ago

I succesfully transfered some photos fromo phone Lenovo K6 note to computer,

and some music files from computer to phone…

…so yes it seems to work for me.