You are not logged in.

#1 2018-10-03 11:42:44

momu
Member
Registered: 2017-10-14
Posts: 137

[SOLVED]Arch cannot detect nearby bluetooth devices

I'm using bluetoothctl to find and connect to nearby bluetooth devices but it seems that it doesn't work.

bluetooth.service is active

[nikola@leviathan ~]$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-10-03 13:22:45 CEST; 13min ago
     Docs: man:bluetoothd(8)
 Main PID: 591 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4572)
   Memory: 2.6M
   CGroup: /system.slice/bluetooth.service
           └─591 /usr/lib/bluetooth/bluetoothd

Oct 03 13:22:44 leviathan systemd[1]: Starting Bluetooth service...
Oct 03 13:22:44 leviathan bluetoothd[591]: Bluetooth daemon 5.50
Oct 03 13:22:45 leviathan systemd[1]: Started Bluetooth service.
Oct 03 13:22:45 leviathan bluetoothd[591]: Starting SDP server
Oct 03 13:22:45 leviathan bluetoothd[591]: Bluetooth management interface 1.14 initialized
Oct 03 13:23:11 leviathan bluetoothd[591]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource
Oct 03 13:23:11 leviathan bluetoothd[591]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSink

Drivers loaded

[nikola@leviathan ~]$ dmesg | grep -i blue
[    4.401214] usb 1-4: Product: Bluetooth Radio 
[   13.488848] Bluetooth: Core ver 2.22
[   13.488888] Bluetooth: HCI device and connection manager initialized
[   13.488894] Bluetooth: HCI socket layer initialized
[   13.488902] Bluetooth: L2CAP socket layer initialized
[   13.488916] Bluetooth: SCO socket layer initialized
[   14.109688] Bluetooth: HCI UART driver ver 2.3
[   14.109693] Bluetooth: HCI UART protocol H4 registered
[   14.109695] Bluetooth: HCI UART protocol BCSP registered
[   14.109748] Bluetooth: HCI UART protocol LL registered
[   14.109750] Bluetooth: HCI UART protocol ATH3K registered
[   14.109751] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   14.109811] Bluetooth: HCI UART protocol Intel registered
[   14.109887] Bluetooth: HCI UART protocol Broadcom registered
[   14.109920] Bluetooth: HCI UART protocol QCA registered
[   14.109922] Bluetooth: HCI UART protocol AG6XX registered
[   14.109924] Bluetooth: HCI UART protocol Marvell registered
[   15.483802] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[   15.483807] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin
[   15.568226] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[   15.589884] Bluetooth: hci0: rom_version status=0 version=1
[   15.589947] Bluetooth: hci0: cfg_sz 44, total size 22540
[   22.640915] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   22.640918] Bluetooth: BNEP filters: protocol multicast
[   22.640927] Bluetooth: BNEP socket layer initialized
[   48.528869] Bluetooth: RFCOMM TTY layer initialized
[   48.528892] Bluetooth: RFCOMM socket layer initialized
[   48.528913] Bluetooth: RFCOMM ver 1.11
[nikola@leviathan ~]$ lsmod | grep bluetooth
bluetooth             638976  33 btrtl,btqca,btintel,hci_uart,btbcm,bnep,btusb,rfcomm
ecdh_generic           24576  1 bluetooth
rfkill                 28672  6 rfkill_gpio,asus_wmi,bluetooth,cfg80211
crc16                  16384  2 bluetooth,ext4

It is not blocked

[nikola@leviathan ~]$ rfkill list
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

And this is how I tried to detect a device

[nikola@leviathan ~]$ bluetoothctl
Agent registered
[bluetooth]# power on
[CHG] Controller B8:86:87:6F:B0:8C Class: 0x000c010c
Changing power on succeeded
[CHG] Controller B8:86:87:6F:B0:8C Powered: yes
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller B8:86:87:6F:B0:8C Discoverable: yes
[bluetooth]# pairable on
Changing pairable on succeeded
[CHG] Controller B8:86:87:6F:B0:8C Pairable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:86:87:6F:B0:8C Discovering: yes
[bluetooth]# devices
[bluetooth]# devices
[bluetooth]# exit

By the way, the device I'm trying to detect detects this device without any problems. Also, the device I'm trying to detect is not BLE.

Last edited by momu (2018-10-03 12:24:41)

Offline

#2 2018-10-03 11:49:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,736

Re: [SOLVED]Arch cannot detect nearby bluetooth devices

Did you set up the "device you are trying to detect" to be detectable? Any reason you are so secretive? What do you actually want to do and what do you actually want to pair?

Offline

#3 2018-10-03 11:56:37

momu
Member
Registered: 2017-10-14
Posts: 137

Re: [SOLVED]Arch cannot detect nearby bluetooth devices

V1del wrote:

Did you set up the "device you are trying to detect" to be detectable? Any reason you are so secretive? What do you actually want to do and what do you actually want to pair?

Yes, it is detectable. I don't think it matters, but I want to connect two devices and exchange some files. Why? Just to see if everything works fine (well, now I know it doesn't). I want to connect a phone and a PC.

Offline

#4 2018-10-03 12:24:26

momu
Member
Registered: 2017-10-14
Posts: 137

Re: [SOLVED]Arch cannot detect nearby bluetooth devices

I shutdown all of the devices and powered them on after a few minutes and now everything works.

Offline

Board footer

Powered by FluxBB