Bluetooth is automatically enabled and disabled

New to both forume and linux . Please be gentel
Switched win10 for manjaro
Problem - Bluetooth is automatically enable and disabled .My bluetooth is only working for few seconds only (Hardly 10 seconds) and then without any alert gets disabled and after few seconds it shows all bluetooth devices available nearby but then again after few seconds gets disabled and repeat .
NOTE - When bluetooth is disconnected (itself) is show no bluetooth driver found.

Stats -

  Kernel: 5.10.42-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=04bc8513-3b5b-4400-93cf-584a7cdb25bb rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.21.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Portable System: Dell product: Inspiron 3521 v: A16 serial: <filter> 
  Chassis: type: 8 v: A16 serial: <filter> 
  Mobo: Dell model: 06RYX8 v: A02 serial: <filter> UEFI-[Legacy]: Dell v: A16 
  date: 05/24/2018 
Battery:
  ID-1: BAT1 charge: 41.1 Wh (100.0%) condition: 41.1/66.6 Wh (61.7%) 
  volts: 12.8 min: 11.1 model: Simplo DELL 4DMNG31N type: Unknown 
  serial: <filter> status: Full 
Memory:
  RAM: total: 3.73 GiB used: 3.22 GiB (86.4%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Dual Core model: Intel Core i3-3217U bits: 64 type: MT MCP 
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21 
  cache: L2: 3 MiB bogomips: 14368 
  Speed: 832 MHz min/max: 800/1800 MHz Core speeds (MHz): 1: 832 2: 926 3: 925 
  4: 815 
  Flags: acpi aperfmperf apic arat arch_perfmon avx bts clflush cmov 
  constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept 
  erms est f16c flexpriority flush_l1d fpu fsgsbase fxsr ht ibpb ibrs ida 
  lahf_lm lm mca mce md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pebs pge pln pni popcnt pse pse36 pti pts rdtscp 
  rep_good sep smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 
  tpr_shadow tsc tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt 
  xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Dell driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300 
  Device-2: Microdia Dell Laptop Integrated Webcam HD type: USB 
  driver: uvcvideo bus-ID: 1-1.4:5 chip-ID: 0c45:64ad class-ID: 0e02 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: intel unloaded: modesetting alternate: fbdev,vesa display-ID: :0 
  screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: LVDS1 res: 1366x768 hz: 60 dpi: 102 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) 
  v: 4.2 Mesa 21.1.2 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Dell 
  driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.42-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.30 running: yes 
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell 
  driver: r8169 v: kernel port: 2000 bus-ID: 01:00.0 chip-ID: 10ec:8136 
  class-ID: 0200 
  IF: enp1s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter 
  vendor: Dell driver: ath9k v: kernel port: 2000 bus-ID: 02:00.0 
  chip-ID: 168c:0036 class-ID: 0280 
  IF: wlp2s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Qualcomm Atheros AR9462 Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 1-1.1:12 chip-ID: 0cf3:0036 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 4 state: up address: see --recommends 
Logical:
  Permissions: Unable to run lvs. Root privileges required. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 465.76 GiB used: 14.46 GiB (3.1%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST500LT012-9WS142 
  size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: SDM1 scheme: MBR 
  Optical-1: /dev/sr0 vendor: TSSTcorp model: DVD+-RW SU-208CB rev: D200 
  dev-links: cdrom 
  Features: speed: 24 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / raw-size: 465.76 GiB size: 457.38 GiB (98.20%) 
  used: 14.46 GiB (3.2%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: 04bc8513-3b5b-4400-93cf-584a7cdb25bb 
Swap:
  Alert: No swap data was found. 
Unmounted:
  Message: No unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900 
  Device-1: 1-1.1:12 info: Qualcomm Atheros AR9462 Bluetooth type: Bluetooth 
  driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 100mA 
  chip-ID: 0cf3:0036 class-ID: e001 
  Device-2: 1-1.3:4 info: Realtek RTS5129 Card Reader Controller 
  type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:0129 
  class-ID: ff00 serial: <filter> 
  Device-3: 1-1.4:5 info: Microdia Dell Laptop Integrated Webcam HD 
  type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s 
  power: 500mA chip-ID: 0c45:64ad class-ID: 0e02 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900 
  Hub-5: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 2600 
Info:
  Processes: 250 Uptime: 6h 02m wakeups: 3 Init: systemd v: 248 
  tool: systemctl Compilers: gcc: N/A Packages: pacman: 1209 lib: 324 
  flatpak: 0 Shell: Bash v: 5.1.8 running-in: konsole inxi: 3.3.04

What should i do now ? Clear steps please .
Thank you so much.

Do you have linux-firmware and bluez installed?

You may have already paired the device with another operating system using the same bluetooth adapter (e.g. when dual-booting). Some devices cannot handle multiple pairings associated with the same MAC address (i.e. bluetooth adapters). Follow instructions on #Dual boot pairing for solving this issue.

In principle, this adapter is known to make problems sometimes, if the above didn’t help I would start considering to replace it for example with an Intel based device.

Reference:
https://wiki.archlinux.org/title/Bluetooth

1 Like

I thought (noob me) the firmware should already be installed when i installed manjaro but to make sure i run command on konsole
pamac install linux-firmware
and it gives output as

Nothing to do.
Transaction successfully finished. 

so i guess firmware is already installed ?
Reference - Package linux firmware

For confirmation of bluez installation i checked it manually and had 3 package installed

Do i need to install something else ?

And from my own stupid research i found a page - How to find out Bluez version from command line?

But i guess there is something wrong about the output of the commands
sudo systemctl status bluetooth
Output-

     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Fri 2021-07-09 16:41:07 IST; 21h ago
       Docs: man:bluetoothd(8)
   Main PID: 676 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4562)
     Memory: 2.3M
        CPU: 420ms
     CGroup: /system.slice/bluetooth.service
             └─676 /usr/lib/bluetooth/bluetoothd

Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Message N>
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Message A>
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Phone Boo>
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Synchroni>
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for File Tran>
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Object Pu>
Jul 10 13:16:00 Manjaro bluetoothd[676]: Endpoint registered: sender=:1.302 path=/MediaEndpoint/A2DPSink/sbc
lines 1-19...skipping...
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Fri 2021-07-09 16:41:07 IST; 21h ago
       Docs: man:bluetoothd(8)
   Main PID: 676 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4562)
     Memory: 2.3M
        CPU: 420ms
     CGroup: /system.slice/bluetooth.service
             └─676 /usr/lib/bluetooth/bluetoothd

Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Message Notification: rfcomm_bind: Address already in use (98)
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Message Access: rfcomm_bind: Address already in use (98)
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Phone Book Access: rfcomm_bind: Address already in use (98)
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Synchronization: rfcomm_bind: Address already in use (98)
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for File Transfer: rfcomm_bind: Address already in use (98)
Jul 10 13:16:00 Manjaro bluetoothd[676]: src/profile.c:ext_start_servers() RFCOMM server failed for Object Push: rfcomm_bind: Address already in use (98)
Jul 10 13:16:00 Manjaro bluetoothd[676]: Endpoint registered: sender=:1.302 path=/MediaEndpoint/A2DPSink/sbc
Jul 10 13:16:00 Manjaro bluetoothd[676]: Endpoint registered: sender=:1.302 path=/MediaEndpoint/A2DPSource/sbc
Jul 10 13:16:00 Manjaro bluetoothd[676]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSink/sbc
Jul 10 13:16:00 Manjaro bluetoothd[676]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSource/sbc
~
~
~
~
~
~
~
~
~
~
~
lines 1-22/22 (END)

SERIOUSLY SORRY IF I HAD DONE ANYTHING STUPID :no_mouth:

NOTE- Also i dont think my system is on dual boot .

https://askubuntu.com/questions/791584/bluetooth-not-working-in-ubuntu-16-04-with-0cf33004-atheros-adapter

Got a solution for Debian based distros, would like to tell the issue is with Qualcomm more than any other software, moderators please look into it, I dont understand much but the same thing happens to me too and then after few attempts the adapter is not available any more

Also have the same config as above mentioned, only model no. and cpu differs
I dont know who can I tag here
Thank you in advance :blush:

Please make this duly change and hope this might help

In /etc/pulse/default.pa

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

.ifexists module-bluez5-device.so
load-module module-bluez5-device
.endif

.ifexists module-bluez5-discover.so
load-module module-bluez5-discover
.endif

Also in the same hash out this line

### Automatically suspend sinks/sources that become idle for too long
###load-module module-suspend-on-idle

Next,

In /etc/bluetooth/main.conf
find and change accordingly

# How long to keep temporary devices around
# The value is in seconds. Default is 30.
# 0 = disable timer, i.e. never keep temporary devices
TemporaryTimeout = 530

This are great .conf files, I would recommend reading it for bluetooth errors, they are amazing and solves many issues if you read them

Hopefully if it solves your problem to an extent, please hit that like and mark as solved
My first time giving an anwser instead of asking one :blush:

2 Likes