Author Topic: Bluetooth not working - RTL8723BE - linux 41, 44 & 45  (Read 2166 times)

0 Members and 1 Guest are viewing this topic.

Offline tomahna

  • Neuling
  • *
  • Posts: 7
  • I'm new. Be nice!
  • Skill: Novice
I've recently acquired a BRIX GB-BXBT-2807 from Gigabyte and can't get the bluetooth to work properly. If i'm using kernel 4.1.x no devices are detected and if i switch to linux 4.4.x i can't even power on bluetooth.

Bluetooth card : (wifi is not configured at the moment)
Code: [Select]
$ lspci | grep Network
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter

System info:
I installed manjaro-net 15.12 (64 bit) and ran an update on packages.
Code: [Select]
$ mhwd-kernel -li
Currently running: 4.1.15-1-MANJARO (linux41)
The following kernels are installed in your system:
   * linux41

Running bluetoothctl :
Code: [Select]
# bluetoothctl
[NEW] Controller 80:A5:89:C8:2E:A0 loki [default]
[bluetooth]# power on
[CHG] Controller 80:A5:89:C8:2E:A0 Class: 0x00010c
Changing power on succeeded
[CHG] Controller 80:A5:89:C8:2E:A0 Powered: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 80:A5:89:C8:2E:A0 Discovering: yes
[bluetooth]# agent on
Agent registered
[bluetooth]# devices
[bluetooth]#

During this test i had my phone and a wiimote both in visible mode on top of the BRIX. (Actually the phone could see the wiimote)

dmesg :
Code: [Select]
[   12.615280] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   12.615870] enp3s0: 0xffffc9000063c000, 40:8d:5c:d4:e5:53, IRQ 92
[   12.682038] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   12.705992] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   13.325629] Non-volatile memory driver v1.3
[   13.448671] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   13.705404] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   14.703878] r8168: enp3s0: link up
[   14.704405] IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
[  613.391222] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  613.400725] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  613.411036] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  613.420397] FAT-fs (sda1): invalid media value (0xe2)
[  613.423208] FAT-fs (sda1): Can't find a valid FAT filesystem
[  629.656828] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  629.666241] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  629.675492] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  629.684801] FAT-fs (sda1): invalid media value (0xe2)
[  629.687629] FAT-fs (sda1): Can't find a valid FAT filesystem
[ 1078.820651] Bluetooth: Unable to create ECB crypto context

Code: [Select]
$ hciconfig -a
hci0: Type: BR/EDR  Bus: USB
BD Address: 80:A5:89:C8:2E:A0  ACL MTU: 820:8  SCO MTU: 255:16
UP RUNNING
RX bytes:2168 acl:0 sco:0 events:218 errors:0
TX bytes:24307 acl:0 sco:0 commands:209 errors:0
Features: 0xff 0xff 0xff 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'loki'
Class: 0x00010c
Service Classes: Unspecified
Device Class: Computer, Laptop
HCI Version: 4.0 (0x6)  Revision: 0xb
LMP Version: 4.0 (0x6)  Subversion: 0x8723
Manufacturer: Realtek Semiconductor Corporation (93)

Code: [Select]
[   12.615280] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   12.615870] enp3s0: 0xffffc9000063c000, 40:8d:5c:d4:e5:53, IRQ 92
[   12.682038] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   12.705992] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   13.325629] Non-volatile memory driver v1.3
[   13.448671] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   13.705404] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   14.703878] r8168: enp3s0: link up
[   14.704405] IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
[  613.391222] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  613.400725] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  613.411036] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  613.420397] FAT-fs (sda1): invalid media value (0xe2)
[  613.423208] FAT-fs (sda1): Can't find a valid FAT filesystem
[  629.656828] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  629.666241] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  629.675492] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  629.684801] FAT-fs (sda1): invalid media value (0xe2)
[  629.687629] FAT-fs (sda1): Can't find a valid FAT filesystem
[ 1078.820651] Bluetooth: Unable to create ECB crypto context
« Last Edit: 04. May 2016, 08:11:43 by tomahna »

Offline Lawliet

  • Neuling
  • *
  • Posts: 27
  • Join to the dark side, we have linux
  • Branch: stable
  • Desktop: Xfce
  • GPU Card: AMD Radeon HD 6470M
  • GPU driver: free
  • Kernel: linux41-x64
  • Skill: Novice
Re: Bluetooth not working
« Reply #1 on: 04. May 2016, 04:55:57 »
Hello tomahna.try the following

Code: [Select]
rfkill list
this should display all your wireless devices and check for the Bluetooth, if it's blocked do
Code: [Select]
sudo rfkill unblock [ID]

Offline tomahna

  • Neuling
  • *
  • Posts: 7
  • I'm new. Be nice!
  • Skill: Novice
Re: Bluetooth not working
« Reply #2 on: 04. May 2016, 07:55:38 »
Does not seem to be a rfkill problem.

Code: [Select]
$ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no




Offline tomahna

  • Neuling
  • *
  • Posts: 7
  • I'm new. Be nice!
  • Skill: Novice
Re: Bluetooth not working
« Reply #3 on: 04. May 2016, 08:10:58 »
I've tried a few things already in the last few days. I've reinstalled manjaro net edition and updated my kernel to 4.4.8. Now i can't start bluetooth.

With bluetoothctl :
Code: [Select]
$ bluetoothctl
[NEW] Controller 80:A5:89:C8:2E:A0 loki [default]
[bluetooth]# power on
Failed to set power on: org.bluez.Error.Failed

With hciconfig :
Code: [Select]
$ hciconfig
hci0: Type: BR/EDR  Bus: USB
BD Address: 80:A5:89:C8:2E:A0  ACL MTU: 820:8  SCO MTU: 255:16
DOWN
RX bytes:1225 acl:0 sco:0 events:122 errors:0
TX bytes:23230 acl:0 sco:0 commands:125 errors:0
$ hciconfig hci0 up
Can't init device hci0: Connection timed out (110)

bluetooth service status :
Code: [Select]
$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: active (running) since mer. 2016-05-04 07:59:36 CEST; 10min ago
     Docs: man:bluetoothd(8)
 Main PID: 361 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/bluetooth.service
           └─361 /usr/lib/bluetooth/bluetoothd

mai 04 07:59:35 loki systemd[1]: Starting Bluetooth service...
mai 04 07:59:36 loki bluetoothd[361]: Bluetooth daemon 5.39
mai 04 07:59:36 loki bluetoothd[361]: Starting SDP server
mai 04 07:59:36 loki systemd[1]: Started Bluetooth service.
mai 04 07:59:36 loki bluetoothd[361]: Bluetooth management interface 1.10 initialized
mai 04 07:59:36 loki bluetoothd[361]: Failed to obtain handles for "Service Changed" characteristic
mai 04 07:59:36 loki bluetoothd[361]: Sap driver initialization failed.
mai 04 07:59:36 loki bluetoothd[361]: sap-server: Operation not permitted (1)
mai 04 08:00:09 loki bluetoothd[361]: Failed to set mode: Failed (0x03)

I can remove the Sap error by adding --no-plugin sap in /usr/lib/systemd/system/bluetooth.service like specified in this post https://forums.archlinux.fr/viewtopic.php?t=15611. But it has no impact on my problem.

dmesg | greb bluetooth return nothing

I've found this post http://askubuntu.com/questions/607339/rtl8723be-bluetooth-does-not-work so i installed rtlwifi_new and https://github.com/lwfinger/rtl8723au_bt.git (the kernel branch not the troy branch). Compilation and install seemed to work but with no impact (even after a reboot).




Offline curiouseag

  • Sr. Mitglied
  • ****
  • Posts: 267
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: undicieded
  • GPU Card: Intel Core i3-5010U
  • GPU driver: Intel
  • Kernel: grsec self build
  • Skill: Advanced
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #4 on: 04. May 2016, 13:06:32 »
have the same problem, here is how to fix it:


install from aur: rtlwifi_new-dkms but edit the pkgbuild, change the source to "git+https://github.com/lwfinger/rtlwifi_new.git#branch=rock.new_btcoex"


I get awesome wifi now. Bluetooth is okayish. You need to reboot before try.


and I do not need rtl8723au_bt. It is a 2 in 1 Chip.
« Last Edit: 04. May 2016, 13:10:58 by curiouseag »

Offline tomahna

  • Neuling
  • *
  • Posts: 7
  • I'm new. Be nice!
  • Skill: Novice
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #5 on: 04. May 2016, 19:38:11 »
Using kernel 4.4.8 it still don't work. Install succeed but hciconfig hci0 up still fail with a timeout :
Code: [Select]
$ dmesg | grep Bluetooth
[    9.200910] Bluetooth: Core ver 2.21
[    9.200944] Bluetooth: HCI device and connection manager initialized
[    9.200951] Bluetooth: HCI socket layer initialized
[    9.200957] Bluetooth: L2CAP socket layer initialized
[    9.200968] Bluetooth: SCO socket layer initialized
[    9.734551] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[    9.734558] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[    9.825674] Bluetooth: hci0: rom_version status=0 version=1
[   13.939229] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.939235] Bluetooth: BNEP filters: protocol multicast
[   13.939243] Bluetooth: BNEP socket layer initialized
[   33.608155] Bluetooth: hci0 urb ffff8800afa75300 failed to resubmit (113)

I'll check if it work in 4.1

Offline curiouseag

  • Sr. Mitglied
  • ****
  • Posts: 267
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: undicieded
  • GPU Card: Intel Core i3-5010U
  • GPU driver: Intel
  • Kernel: grsec self build
  • Skill: Advanced
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #6 on: 04. May 2016, 19:55:03 »
sudo echo "options rtl8723be ant_sel=2" > /etc/modprobe.d/50-rtl8723be.conf


^try this

Offline tomahna

  • Neuling
  • *
  • Posts: 7
  • I'm new. Be nice!
  • Skill: Novice
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #7 on: 04. May 2016, 20:44:51 »
I tried both your solution and the one suggested in comments for branch rock.new_btcoex ( options rtl8723be swlps=0 fwlps=0 ips=0 msi=1) without any change.

Offline curiouseag

  • Sr. Mitglied
  • ****
  • Posts: 267
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: undicieded
  • GPU Card: Intel Core i3-5010U
  • GPU driver: Intel
  • Kernel: grsec self build
  • Skill: Advanced
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #8 on: 04. May 2016, 22:30:29 »
okay, try only with ant_sel=1


I am out of ideas. Looks like my chip is different after all. Create a bugreport on github. Your best option is to ask the rtlwifi maintainer for help.
And include the information from tis thread.

Offline AdityaPatil

  • Neuling
  • *
  • Posts: 26
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: kde
  • GPU Card: Skylake integrated and AMD HD GPU
  • GPU driver: free
  • Kernel: 4.4
  • Skill: Intermediate
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #9 on: 05. May 2016, 07:13:20 »
I have same chip.

Using the lwfinger rtlwifi solution, wifi works better now, but bluetooth doesn't work :(

Worth noting that bluetooth worked great in Kali when I tried it's rolling version with kernel 4.3.x . Seems like some problem with Arch/Manjaro configs. So basically if you/me/someone could find out what Kali(maybe Ubuntu/Debian) does right or what Manjaro(or Arch) does wrong, we can make it work.

For starters, I suspect Kali either uses either some configs or a different branch of driver than one Manjaro uses. Good Luck finding out :P :P
« Last Edit: 05. May 2016, 07:46:16 by AdityaPatil »

Offline tomahna

  • Neuling
  • *
  • Posts: 7
  • I'm new. Be nice!
  • Skill: Novice
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #10 on: 05. May 2016, 09:36:55 »
In any case, many thanks for your help.

I tried ant_sel without success. I've opened an issue on github https://github.com/lwfinger/rtlwifi_new/issues/116.

Debian works fine but i think the default kernel is 3.14 and from what i've read trouble with this chip starts to arise around 3.17 or 4+. Haven't tested other distros than these two.
« Last Edit: 05. May 2016, 09:55:32 by tomahna »

Offline curiouseag

  • Sr. Mitglied
  • ****
  • Posts: 267
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: undicieded
  • GPU Card: Intel Core i3-5010U
  • GPU driver: Intel
  • Kernel: grsec self build
  • Skill: Advanced
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #11 on: 05. May 2016, 13:11:04 »
I have same chip.

Using the lwfinger rtlwifi solution, wifi works better now, but bluetooth doesn't work :(

Worth noting that bluetooth worked great in Kali when I tried it's rolling version with kernel 4.3.x . Seems like some problem with Arch/Manjaro configs. So basically if you/me/someone could find out what Kali(maybe Ubuntu/Debian) does right or what Manjaro(or Arch) does wrong, we can make it work.

For starters, I suspect Kali either uses either some configs or a different branch of driver than one Manjaro uses. Good Luck finding out :P :P


any chance you could find the kali kernel configs for me?

Offline AdityaPatil

  • Neuling
  • *
  • Posts: 26
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: kde
  • GPU Card: Skylake integrated and AMD HD GPU
  • GPU driver: free
  • Kernel: 4.4
  • Skill: Intermediate
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #12 on: 06. May 2016, 12:02:11 »

any chance you could find the kali kernel configs for me?

I can of course. I currently have holidays for whole may and june, so I have lot of free time as well.

The only problem is.......

I don't know what to look for  :P

Someone needs to help me with that ::) ::)

Offline jbMacAZ

  • Neuling
  • *
  • Posts: 34
  • Branch: testing
  • Desktop: Cinnamon 3.0
  • GPU Card: Intel Atom SoC - ValleyView gen7 or Z36/7xxx
  • GPU driver: free
  • Kernel: 4.3.6-custom-x64, 4.6-rcx-custom-x64, etc.
  • Skill: Intermediate
Re: Bluetooth not working - RTL8723BE - linux 41, 44 & 45
« Reply #13 on: 07. May 2016, 06:21:09 »
I also have issues with bluetooth.  kernel 4.3.5 works well, but it is EOL.  In 4.4 and 4.5 bluetooth regressed.  4.4+ wouldn't start without a device search and the devices would disconnect quickly (idle timeout problem).  4.6-rc almost works as well as 4.3.5.

Some hardware has a combo wifi/bluetooth chip where bluetooth transceiver (antenna) is off when wifi is off.

Another problem has to do with how bluetooth is initialized.  Someone tried to explain to me that the old kernels used hciattach and 4.4 and newer require btattach.  I'm not sure what that means but last time I checked, the wiki's still discuss hciattach.  Sorry I can't help more.
« Last Edit: 07. May 2016, 06:40:03 by jbMacAZ »