Problem connect bluetooth sound device

I have a Bluetooth speaker, when I connect the first time with my computer (Manjaro gnome) It works perfectly, but sometimes I need to change my audio device to a headphone and it disconects and I try to reconnect it stop to do it, the only way I can do is by removing the device, restarting the speaker and restarting my computer (not even systemclt restart bluetooth.service is working).
Those are my inxi fazy data:

System:
  Kernel: 6.1.23-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.1-x86_64
    root=UUID=82643114-845a-4bb3-865e-908ebdb9dd39 rw rootflags=subvol=@ quiet
    splash apparmor=1 security=apparmor udev.log_priority=3
  Desktop: GNOME v: 43.4 tk: GTK v: 3.24.37 wm: gnome-shell dm: GDM v: 43.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Dell product: Inspiron 5402 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0FJYHK v: A00 serial: <superuser required> UEFI: Dell
    v: 1.8.0 date: 10/01/2021
Battery:
  ID-1: BAT0 charge: 47.4 Wh (100.0%) condition: 47.4/53.0 Wh (89.5%)
    volts: 16.5 min: 15.0 model: BYD DELL TXD0316 type: Unknown serial: <filter>
    status: full
  Device-1: hid-dc:2c:26:07:76:d1-battery model: Keychron K1 serial: N/A
    charge: N/A status: discharging
  Device-2: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: 11th Gen Intel Core i7-1165G7 bits: 64 type: MT MCP
    arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
    process: Intel 10nm family: 6 model-id: 0x8C (140) stepping: 1
    microcode: 0xA6
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 5 MiB desc: 4x1.2 MiB L3: 12 MiB
    desc: 1x12 MiB
  Speed (MHz): avg: 860 high: 1700 min/max: 400/4700 scaling:
    driver: intel_pstate governor: powersave cores: 1: 821 2: 400 3: 531 4: 868
    5: 1062 6: 430 7: 1700 8: 1071 bogomips: 27040
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Dell driver: i915
    v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports:
    active: HDMI-A-1,eDP-1 empty: DP-1 bus-ID: 0000:00:02.0 chip-ID: 8086:9a49
    class-ID: 0300
  Device-2: NVIDIA GP108M [GeForce MX330] vendor: Dell driver: nouveau
    v: kernel non-free: 530.xx+ status: current (as of 2023-03) arch: Pascal
    code: GP10x process: TSMC 16nm built: 2016-21 bus-ID: 0000:2b:00.0
    chip-ID: 10de:1d16 class-ID: 0302
  Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 3-6:4 chip-ID: 0bda:5538 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: iris,nouveau gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-size: <missing: xdpyinfo>
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: right model: AOC 27G2G5
    serial: <filter> built: 2021 res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2
    size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: eDP-1 pos: primary,left model: BOE Display 0x082e built: 2018
    res: 1920x1080 hz: 60 dpi: 158 gamma: 1.2 size: 309x174mm (12.17x6.85")
    diag: 355mm (14") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: Mesa Intel Xe Graphics (TGL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Dell
    driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 0000:00:1f.3
    chip-ID: 8086:a0c8 class-ID: 0401
  API: ALSA v: k6.1.23-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: JACK v: 1.9.22 status: off tools: N/A
  Server-3: PipeWire v: 0.3.68 status: off with: wireplumber status: off
    tools: pw-cli,wpctl
  Server-4: PulseAudio v: 16.1 status: active tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel bus-ID: 0000:00:14.3
    chip-ID: 8086:a0f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: ASIX AX88179 Gigabit Ethernet type: USB driver: cdc_ncm
    bus-ID: 2-1:3 chip-ID: 0b95:1790 class-ID: 0a00 serial: <filter>
  IF: enp0s13f0u1c2 state: up speed: 1000 Mbps duplex: half mac: <filter>
  IF-ID-1: br-02877dc784b1 state: down mac: <filter>
  IF-ID-2: br-88f022fe5141 state: down mac: <filter>
  IF-ID-3: docker0 state: down mac: <filter>
  IF-ID-4: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 3-10:5 chip-ID: 8087:0aaa class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b rev: class-ID: 0104
Drives:
  Local Storage: total: 476.94 GiB used: 213.86 GiB (44.8%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data
    model: IM2P33F3A NVMe 512GB size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 92103061 temp: 45.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 120 GiB size: 120 GiB (100.00%) used: 41.54 GiB (34.6%)
    fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:4
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 608 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 348.44 GiB size: 348.44 GiB (100.00%)
    used: 172.32 GiB (49.5%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:3
  ID-4: /var/log raw-size: 120 GiB size: 120 GiB (100.00%)
    used: 41.54 GiB (34.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:4
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8 GiB used: 512 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
  System Temperatures: cpu: 56.0 C mobo: 52.0 C gpu: nouveau temp: 52.0 C
  Fan Speeds (RPM): cpu: 2922
Info:
  Processes: 386 Uptime: 3h 35m wakeups: 10 Memory: 15.36 GiB
  used: 8.19 GiB (53.3%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: 1549
  pm: pacman pkgs: 1542 libs: 336 tools: gnome-software,pamac pm: flatpak
  pkgs: 7 Shell: Zsh v: 5.9 running-in: terminator inxi: 3.3.26

And this is my systemctl status bluetooth.service:

● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
     Active: active (running) since Tue 2023-04-18 17:53:52 -03; 15min ago
       Docs: man:bluetoothd(8)
   Main PID: 21671 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18836)
     Memory: 2.3M
        CPU: 96ms
     CGroup: /system.slice/bluetooth.service
             └─21671 /usr/lib/bluetooth/bluetoothd

abr 18 17:53:52 anderson-inspiron5402 bluetoothd[21671]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSource/sbc_xq_512
abr 18 17:53:52 anderson-inspiron5402 bluetoothd[21671]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSink/sbc_xq_552
abr 18 17:53:52 anderson-inspiron5402 bluetoothd[21671]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSource/sbc_xq_552
abr 18 17:54:07 anderson-inspiron5402 bluetoothd[21671]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 98:52:3D:1D:88:50: Permission denied (13)
abr 18 17:54:12 anderson-inspiron5402 bluetoothd[21671]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 98:52:3D:1D:88:50: Permission denied (13)
abr 18 17:54:20 anderson-inspiron5402 bluetoothd[21671]: Wrong size of start discovery return parameters
abr 18 17:55:24 anderson-inspiron5402 bluetoothd[21671]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 98:52:3D:1D:88:50: Permission denied (13)
abr 18 17:55:28 anderson-inspiron5402 bluetoothd[21671]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 98:52:3D:1D:88:50: Permission denied (13)
abr 18 18:06:03 anderson-inspiron5402 bluetoothd[21671]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 98:52:3D:1D:88:50: Permission denied (13)
abr 18 18:06:07 anderson-inspiron5402 bluetoothd[21671]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 98:52:3D:1D:88:50: Permission denied (13)

Looks like this permission I tried to navigate in the archwiki to debug but I could not advance more to fix this issue. Other Bluetooth sources keep working perfectly (keyboard)

Could someone help me?

Do you happen to be using any power management things like TLP?

systemctl status tlp

This might benefit from some settings. Namely you can try disabling ‘bluetooth coexistence’.

/etc/modprobe.d/iwlwifi.conf
options iwlwifi bt_coex_active=0

Intel also splits the power management into a different module;

/etc/modprobe.d/iwlmvm.conf
options iwlmvm power_scheme=1

PS. I use a few more options in my iwlwifi.conf
I’ll add them here, along with the bt_coex=0, in case they are helpful;

/etc/modprobe.d/iwlwifi.conf
options iwlwifi 11n_disable=8 swcrypto=1 bt_coex_active=0

Hi, No I am not using tlp

systemctl status tlp                          ✔  09:56:47  ▓▒░
Unit tlp.service could not be found.

I set those configs, but my computer still connecting to the speaker and very quickly it disconnects.

I think one of the last updates solved my problem, I did nothing (but update the system), but It stopped happening.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.