Skip to content

Bluetooth only works sometimes, bluetooth.service is inactive (dead), bluetoothctl reports "No default controller available"

For some reason, Bluetooth seems to only work every dozen boots or so when I boot Arch. There's no rhyme or reason as to when it seems to work, but more often than not it doesn't work.

Bluetooth is on the same card as my Wi-Fi. The Wi-Fi is integrated into my motherboard, which is a ASRock B450 Gaming ITX/AC. I don't have a Windows install to see if it works there, but the BIOS reports that networking is enabled and it does work every once in a while in Arch.

Here's the output of various diagnostics I've tried:

$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: inactive (dead)
       Docs: man:bluetoothd(8)

$ rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

$ bluetoothctl
Waiting to connect to bluetoothd...

$ sudo modprobe btusb
$ sudo systemctl start bluetooth
$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2020-02-08 10:14:21 UTC; 9s ago
       Docs: man:bluetoothd(8)
   Main PID: 1161 (bluetoothd)
      Tasks: 1 (limit: 19111)
     Memory: 2.2M
     CGroup: /system.slice/bluetooth.service
             └─1161 /usr/lib/bluetooth/bluetoothd
Feb 08 10:14:21 Linux systemd[1]: Starting Bluetooth service...
Feb 08 10:14:21 Linux bluetoothd[1161]: Bluetooth daemon 5.52
Feb 08 10:14:21 Linux bluetoothd[1161]: Unknown key AlwaysPairable for group General in /etc/bluetooth/main.conf 
Feb 08 10:14:21 Linux systemd[1]: Started Bluetooth service.
Feb 08 10:14:21 Linux bluetoothd[1161]: Starting SDP server
Feb 08 10:14:21 Linux bluetoothd[1161]: Bluetooth management interface 1.14 initialized
$ bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available

$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 7
01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
02:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller (rev 01)
02:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01)
02:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01)
03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
03:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
03:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
03:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
03:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
03:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
08:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak] (rev 10)
09:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev ef)
0a:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
0b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function   0c:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
0c:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP     0c:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
0c:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
0d:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
0e:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)

$ lspci -k -s 08:00.0
08:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak] (rev 10)
        Subsystem: Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak]
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

$ lsmod | grep blue
bluetooth             671744  11 btrtl,btintel,btbcm,bnep,btusb
ecdh_generic           16384  1 bluetooth
rfkill                 28672  6 bluetooth,cfg80211
crc16                  16384  2 bluetooth,ext4

$ lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 3: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 3: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 3: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=uas, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M

$ dmesg | grep -i wl
[    3.056264] iwlwifi 0000:08:00.0: enabling device (0000 -> 0002)
[    3.058159] iwlwifi 0000:08:00.0: loaded firmware version 29.163394017.0 op_mode iwlmvm
[    3.195943] iwlwifi 0000:08:00.0: Detected Intel(R) Dual Band Wireless AC 3168, REV=0x220
[    3.213925] iwlwifi 0000:08:00.0: base HW address: 08:71:90:50:39:9e
[    3.242975] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    3.244474] iwlwifi 0000:08:00.0 wlp8s0: renamed from wlan0
[    7.126234] wlp8s0: authenticate with d2:f5:47:25:0d:f2
[    7.130248] wlp8s0: send auth to d2:f5:47:25:0d:f2 (try 1/3)
[    7.132979] wlp8s0: authenticated
[    7.133352] wlp8s0: associate with d2:f5:47:25:0d:f2 (try 1/3)
[    7.137063] wlp8s0: RX AssocResp from d2:f5:47:25:0d:f2 (capab=0x1011 status=0 aid=5)
[    7.139552] wlp8s0: associated
[    7.167215] IPv6: ADDRCONF(NETDEV_CHANGE): wlp8s0: link becomes ready
[    7.182719] wlp8s0: Limiting TX power to 30 (30 - 0) dBm as advertised by d2:f5:47:25:0d:f2

$ sudo /usr/lib/bluetooth/bluetoothd -n -d
bluetoothd[1230]: Bluetooth daemon 5.52
bluetoothd[1230]: Unknown key AlwaysPairable for group General in /etc/bluetooth/main.conf
bluetoothd[1230]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “DiscoverableTimeout” in group “General”
bluetoothd[1230]: src/main.c:parse_config() pairable=false
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “PairableTimeout” in group “General”
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “Privacy” in group “General”
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “Name” in group “General”
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “Class” in group “General”
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “DeviceID” in group “General”
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “ReverseServiceDiscovery” in group “General”
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “Cache” in group “GATT”
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “KeySize” in group “GATT”
bluetoothd[1230]: src/main.c:parse_config() Key file does not have key “ExchangeMTU” in group “GATT”
bluetoothd[1230]: src/adapter.c:adapter_init() sending read version command
bluetoothd[1230]: Starting SDP server
bluetoothd[1230]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0534
bluetoothd[1230]: src/plugin.c:plugin_init() Loading builtin plugins
bluetoothd[1230]: src/plugin.c:add_plugin() Loading hostname plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading wiimote plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading autopair plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading policy plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading a2dp plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading avrcp plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading network plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading input plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading hog plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading gap plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading scanparam plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading deviceinfo plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading midi plugin
bluetoothd[1230]: src/plugin.c:add_plugin() Loading battery plugin
bluetoothd[1230]: src/plugin.c:plugin_init() Loading plugins /usr/lib/bluetooth/plugins
bluetoothd[1230]: profiles/input/suspend-none.c:suspend_init()
bluetoothd[1230]: profiles/network/manager.c:read_config() Config options: Security=true
bluetoothd[1230]: plugins/hostname.c:read_dmi_fallback() chassis: desktop
bluetoothd[1230]: plugins/hostname.c:read_dmi_fallback() major: 0x01 minor: 0x01
bluetoothd[1230]: src/main.c:main() Entering main loop
bluetoothd[1230]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 1 op 0 soft 0 hard 0
bluetoothd[1230]: Bluetooth management interface 1.14 initialized
bluetoothd[1230]: src/adapter.c:read_version_complete() sending read supported commands command
bluetoothd[1230]: src/adapter.c:read_version_complete() sending read index list command
bluetoothd[1230]: src/adapter.c:read_commands_complete() Number of commands: 65
bluetoothd[1230]: src/adapter.c:read_commands_complete() Number of events: 35
bluetoothd[1230]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
bluetoothd[1230]: src/adapter.c:read_index_list_complete() Number of controllers: 0
bluetoothd[1230]: plugins/hostname.c:property_changed() static hostname: Linux
bluetoothd[1230]: plugins/hostname.c:property_changed() pretty hostname:
bluetoothd[1230]: plugins/hostname.c:property_changed() chassis: desktop
bluetoothd[1230]: src/agent.c:add_default_agent() Default agent set to :1.60 /org/bluez/agent
bluetoothd[1230]: src/agent.c:agent_ref() 0x5584321193f0: ref=1
bluetoothd[1230]: src/agent.c:register_agent() agent :1.60
bluetoothd[1230]: src/agent.c:agent_disconnect() Agent :1.60 disconnected
bluetoothd[1230]: src/agent.c:remove_default_agent() Default agent cleared
bluetoothd[1230]: src/agent.c:agent_destroy() agent :1.60
bluetoothd[1230]: src/agent.c:agent_unref() 0x5584321193f0: ref=0

bluetoothctl still reporting 0 controllers available, Ctrl+C bluetoothd

^Cbluetoothd[1230]: Terminating
bluetoothd[1230]: src/adapter.c:adapter_shutdown()
bluetoothd[1230]: src/plugin.c:plugin_cleanup() Cleanup plugins
bluetoothd[1230]: profiles/input/suspend-none.c:suspend_exit()
bluetoothd[1230]: Stopping SDP server
bluetoothd[1230]: Exit

I'm at a loss here as to why it seems to report 0 controllers available, especially since sometimes it works. I've tried going into the BIOS and messing with settings (disabling/enabling the network adapter, etc.), but I'm not sure what's going on or how to fix it.

Edited 8 Feb 2020. We only hold this version.

16 points8 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
16 · 100% up
Kind
Text
ID
f0piph

Author

18
posts
79
comments
4
media
View profile

8 comments

I have the same issue. I find that only a cold boot will resolve the issue. So shutting down the system and removing the power source.

I've tried going through the logs and have searched for various errors on the web, but so far I can't find the root cause. I've also been through the Bluetooth pages of the Arch Wiki.

The behaviour seems to suggest that the Bluetooth part of the Wi-Fi network controller (forgive me if this isn't on point technically) goes into a state of permanent hibernation. Wi-Fi itself is fine.

I haven't given up on this one yet!

3 points

nly a cold boot will resolve the issue. So shutting down the system and removing the power so

A friend stumbled onto this comment and pointed it to me. Connecting to a bluetooth device on Windows 10 killed my adapter on Linux and a cold boot brought it back. Thank you so much.

1 points

Looking at iwlwifi module parameters, there are quite a few of potential interest:

$ modinfo iwlwifi
parm:  11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
parm:  fw_restart:restart firmware in case of error (default true) (bool)
parm:  bt_coex_active:enable wifi/bt co-exist (default: enable) (bool)
parm:  power_save:enable WiFi power management (default: disable) (bool)
parm:  power_level:default power save level (range from 1 - 5, default: 1) (int)
parm:  fw_monitor:firmware monitor - to debug FW (default: false - needs lots of memory) (bool)

I would try

  • Unload the module # modprobe -r iwlwifi || rmmod -f iwlwifi (could cause kernel panic),
  • Load it with # modprobe iwlwifi bt_coex_active=0 power_save=0 power_level=5 11n_disable=2 fw_restart=0 fw_monitor=1
  • Check dmesg for additional information
  • Unload again and load with bt_coex_active=1 power_save=0 fw_restart=1
  • Load alternative firmware

The 3168 seems to be a problematic one, I came across a few kernel bugs searching for it. There are apparently also quite a few firmware versions, maybe loading an older one would work.

2 points

Did you two try 'power on' in bluetoothctl?

1 points

Yes. And when issuing 'devices' in bluetoothctl it reports 'No default controller available', so nothing there to power on. Like I say it's like it's going into a very deep sleep as powering down the system completely brings it back again.

1 points

Somewhat off topic, but do you mind putting the logs in a pastebin or equivalent?

1 points

Check dmesg output for relevant messages.

No guarantee it's related but I've previously had issues where firmware wasn't getting successfully loaded on boot (or something similar), but for me a workaround was to unload ( modprobe -r ) the two main Bluetooth modules and then reload them, whereupon for me Bluetooth would start working normally.

1 points

Probably unrelated but on the off-chance it might help you: I had a similar issue on my Dell XPS 13 recently I was able to fix related to /lib/firmware/brcm, I think the linux-firmware package caused the problem. I have some notes on how I fixed it (basically made a few symlinks from files with longer names/newer versions to old files listed in a firmware repository)

Fix bluetooth firmware XPS-13 qualcom broadcom
		ls /sys/class/bluetooth -> should have hci0
		modprobe btusb
		rfkill list / unblock bluetooth
		lsusb / lspci
		sudo /usr/lib/bluetooth/bluetoothd -n -d # verbose
		sudo btmon
		hcitool dev # in hci package

		# What fixed:
		# Link to older version/verbose name?
		cd /lib/firmware/brcm
		sudo ln -s ./BCM20702A1-0b05-17cb.hcd BCM20702A0-0b05-17cb.hcd
		sudo ln -s ./BCM20702A1-0b05-17cf.hcd BCM20702A0-0b05-17cf.hcd
		sudo ln -s ./BCM-0bb4-0306.hcd BCM20703A1-0bb4-0306.hcd
			pamac list -f linux-firmware | grep BCM -> /usr/lib/firmware/brcm/BCM-0bb4-0306.hcd

Links that helped:

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.