Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] bluetooth cannot be enabled  (Read 2466 times)

Offline jyp

  • User
  • Posts: 118
[EN] bluetooth cannot be enabled
« on: 2022/10/09, 21:46:58 »
Cannot enable bluetooth. The enable button in _system-settings_ does not work.
The system as per _inxi -F_
Code: [Select]
  Host: kappa Kernel: 5.19.14-1-siduction-amd64 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.25.5 Distro: siduction 21.2.0 Farewell - kde -
    (202109171658)
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX X570-E GAMING v: Rev X.0x
    serial: 210686050900556 UEFI: American Megatrends v: 3604 date: 04/14/2021
CPU:
  Info: 6-core model: AMD Ryzen 5 5600G with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 3 MiB
  Speed (MHz): avg: 1475 min/max: 1400/4464 cores: 1: 1700 2: 1700 3: 1400
    4: 1400 5: 1400 6: 1400 7: 1400 8: 1400 9: 1700 10: 1400 11: 1400 12: 1400
Graphics:
  Device-1: AMD Cezanne driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa gpu: amdgpu resolution: 1: 1200x1920~60Hz
    2: 2560x1440~60Hz
  OpenGL: renderer: RENOIR (renoir LLVM 14.0.6 DRM 3.47
    5.19.14-1-siduction-amd64) v: 4.6 Mesa 22.2.0
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
  Device-2: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.19.14-1-siduction-amd64 running: yes
  Sound Server-2: PipeWire v: 0.3.59 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi
  IF: wlan0 state: up mac: 84:1b:77:fd:b5:97
  Device-2: Realtek RTL8125 2.5GbE driver: r8169
  IF: enp5s0 state: down mac: 7c:10:c9:43:7a:5a
  Device-3: Intel I211 Gigabit Network driver: igb
  IF: enp6s0 state: down mac: 7c:10:c9:43:7a:59
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: no
    address: 00:00:00:00:00:00
Drives:
  Local Storage: total: 5.46 TiB used: 550.25 GiB (9.8%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB
  ID-3: /dev/sda vendor: Western Digital model: WD2003FZEX-00SRLA0
    size: 1.82 TiB
  ID-4: /dev/sdb vendor: Western Digital model: WDS200T2B0A-00SM50
    size: 1.82 TiB
Partition:
  ID-1: / size: 90.76 GiB used: 21.19 GiB (23.3%) fs: ext4
    dev: /dev/nvme0n1p1
  ID-2: /boot/efi size: 499 MiB used: 288 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: partition size: 5.86 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p2
Sensors:
  System Temperatures: cpu: 24.5 C mobo: 29.0 C gpu: amdgpu temp: 26.0 C
  Fan Speeds (RPM): fan-1: 1089 fan-2: 388 fan-3: 0 fan-4: 0 fan-5: 0
    fan-6: 0
Info:
  Processes: 335 Uptime: 1h 11m Memory: 30.66 GiB used: 4.24 GiB (13.8%)
  Shell: Bash inxi: 3.3.21

I have a strange line in running _systemctl status bluetooth.service_.
Code: [Select]
...
Oct 09 14:24:14 kappa systemd[797]: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
...

There seems to be a permission problem on a configuration file but I cannot manage to find the way to correct that. Any hint would be welcome.
Here is the full output of _systemctl status bluetooth.service_
Code: [Select]
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
     Active: active (running) since Sun 2022-10-09 14:24:14 EDT; 1h 19min ago
       Docs: man:bluetoothd(8)
   Main PID: 797 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 37633)
     Memory: 2.8M
        CPU: 20ms
     CGroup: /system.slice/bluetooth.service
             └─797 /usr/libexec/bluetooth/bluetoothd

Oct 09 14:24:14 kappa systemd[1]: Starting Bluetooth service...
Oct 09 14:24:14 kappa systemd[797]: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
Oct 09 14:24:14 kappa bluetoothd[797]: Bluetooth daemon 5.65
Oct 09 14:24:14 kappa systemd[1]: Started Bluetooth service.
Oct 09 14:24:14 kappa bluetoothd[797]: Starting SDP server
Oct 09 14:24:14 kappa bluetoothd[797]: Bluetooth management interface 1.22 initialized

Thanks
jyp

Offline unklarer

  • User
  • Posts: 817
Re: bluetooth cannot be enabled
« Reply #1 on: 2022/10/10, 11:09:04 »
systemd reports the error to you.
Ergo, you have to correct it with chmod. For better understanding I have attached a picture.

In the browser on the left your error is shown and in the terminal on the right how it has to be correct.


Offline jyp

  • User
  • Posts: 118
Re: bluetooth cannot be enabled
« Reply #2 on: 2022/10/10, 17:05:01 »
@unklarer
Thank you.
I was aware that I would need chmod to correct the problem but I could not find the file that needed to have permissions corrected.

Unfortunately, I cannot access the faulty machines (2) before tomorrow. I will follow up.

Thanks again.

Offline unklarer

  • User
  • Posts: 817
Re: bluetooth cannot be enabled
« Reply #3 on: 2022/10/10, 17:43:29 »
@unklarer
Thank you.
I was aware that I would need chmod to correct the problem but I could not find the file that needed to have permissions corrected.

..
..

But that's what your code says.   ;D ;D
Code: [Select]
...
             └─797 /usr/libexec/bluetooth/bluetoothd

..
Oct 09 14:24:14 kappa systemd[797]: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)

Offline hendrikL

  • Administrator
  • User
  • *****
  • Gravatar
  • Posts: 933
Re: bluetooth cannot be enabled
« Reply #4 on: 2022/10/11, 08:17:35 »
Mh,

Maybe it is a dependency problem.

"At minimum, you will need to install the libspa-0.2-bluetooth package, remove the pulseaudio-module-bluetooth package, and then either reboot your computer or restart the PipeWire services..." https://wiki.debian.org/PipeWire#Bluetooth

You can check it with 'dpkg -l *bluetooth*' without the ' or 'apt policy foo'

Offline jyp

  • User
  • Posts: 118
Re: bluetooth cannot be enabled
« Reply #5 on: 2022/10/11, 15:32:56 »
@unklarer
Permissions for the file _/usr/libexec/bluetooth/bluetoothd_ look ok (755 not 555). It seems that the _ ConfigurationDirectoryMode: 555_ is not that one.
Code: [Select]
jyp@kappa:/usr/libexec/bluetooth$ ls -l
total 1904
-rwxr-xr-x 1 root root 1310824  2 aoû 21:57 bluetoothd
-rwxr-xr-x 1 root root  631720  2 aoû 21:57 obexd

@hendrikL
As you suggested, I installed _libspa-0.2-bluetooth_ and remove (purge) _pulseaudio-module-bluetooth_ .
Unfortunately, the problem persists.
Code: [Select]
jyp@kappa:~$ dpkg -l | grep ii | grep bluetooth
ii  bluetooth                                     5.65-1                               all          Bluetooth support (metapackage)
ii  libbluetooth3:amd64                           5.65-1                               amd64        Library to use the BlueZ Linux Bluetooth stack
ii  libspa-0.2-bluetooth:amd64                    0.3.59-1                             amd64        libraries for the PipeWire multimedia server - bluetooth plugins
Code: [Select]
root@kappa:/home/jyp# systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
     Active: active (running) since Tue 2022-10-11 09:10:30 EDT; 1min 52s ago
       Docs: man:bluetoothd(8)
   Main PID: 837 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 37633)
     Memory: 2.8M
        CPU: 16ms
     CGroup: /system.slice/bluetooth.service
             └─837 /usr/libexec/bluetooth/bluetoothd

Oct 11 09:10:30 kappa systemd[1]: Starting Bluetooth service...
Oct 11 09:10:30 kappa systemd[837]: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryM>
Oct 11 09:10:30 kappa bluetoothd[837]: Bluetooth daemon 5.65
Oct 11 09:10:30 kappa bluetoothd[837]: Starting SDP server
Oct 11 09:10:30 kappa systemd[1]: Started Bluetooth service.
Oct 11 09:10:30 kappa bluetoothd[837]: Bluetooth management interface 1.22 initialized

Thank you.

Offline jyp

  • User
  • Posts: 118
Re: bluetooth cannot be enabled
« Reply #6 on: 2022/10/11, 15:48:26 »
It seems that the problem is related to _pipewire_
Code: [Select]
root@kappa:~# systemctl status pipewire
Unit pipewire.service could not be found.

root@kappa:~# systemctl enable pipewire
Failed to enable unit: Unit file pipewire.service does not exist.

But
Code: [Select]
jyp@kappa:~$ dpkg -l | grep ii | grep pipewire
ii  libpipewire-0.3-0:amd64                       0.3.59-1                             amd64        libraries for the PipeWire multimedia server
ii  libpipewire-0.3-common                        0.3.59-1                             all          libraries for the PipeWire multimedia server - common files
ii  libpipewire-0.3-modules:amd64                 0.3.59-1                             amd64        libraries for the PipeWire multimedia server - modules
ii  pipewire:amd64                                0.3.59-1                             amd64        audio and video processing engine multimedia server
ii  pipewire-bin                                  0.3.59-1                             amd64        PipeWire multimedia server - programs
ii  pipewire-pulse                                0.3.59-1                             amd64        PipeWire PulseAudio daemon
ii  vlc-plugin-pipewire:amd64                     3-2                                  amd64        PipeWire audio plugins for VLC

What to do now  :(

Offline unklarer

  • User
  • Posts: 817
Re: bluetooth cannot be enabled
« Reply #7 on: 2022/10/11, 17:21:05 »
As I see it, you are still missing at least the pipewire-audio-client-libraries package.

Here is my installation:

Code: [Select]
$ dpkg -l | grep ii | grep pipewire
ii  libpipewire-0.3-0:amd64                 0.3.59-1                             amd64        libraries for the PipeWire multimedia server
ii  libpipewire-0.3-common                  0.3.59-1                             all          libraries for the PipeWire multimedia server - common files
ii  libpipewire-0.3-modules:amd64           0.3.59-1                             amd64        libraries for the PipeWire multimedia server - modules
ii  pipewire:amd64                          0.3.59-1                             amd64        audio and video processing engine multimedia server
ii  pipewire-alsa:amd64                     0.3.59-1                             amd64        PipeWire ALSA plugin
ii  pipewire-audio-client-libraries         0.3.59-1                             all          transitional package for pipewire-alsa and pipewire-jack
ii  pipewire-bin                            0.3.59-1                             amd64        PipeWire multimedia server - programs
ii  pipewire-jack:amd64                     0.3.59-1                             amd64        PipeWire JACK plugin
ii  pipewire-pulse                          0.3.59-1                             amd64        PipeWire PulseAudio daemon

and

Code: [Select]
$ dpkg -l | grep ii | grep wireplumber
ii  libwireplumber-0.4-0:amd64              0.4.12-1                             amd64        Shared libraries for WirePlumber
ii  wireplumber                             0.4.12-1                             amd64        modular session / policy manager for PipeWire


I followed @devil's instructions in setting this up and so far I can't complain.

Offline jyp

  • User
  • Posts: 118
Re: bluetooth cannot be enabled
« Reply #8 on: 2022/10/11, 18:05:20 »
@unklarer
Thank you for the quick reply.

I installed the packages that you proposed. My installation in now the same as yours.
But no success.
_systemctl status/enable/start pipewire_ return that pipewire.service is not found.
  • Unit pipewire.service could not be found.
  • Failed to enable unit: Unit file pipewire.service does not exist.
Cannot see how to resolve that. :-\


Offline unklarer

  • User
  • Posts: 817
Re: bluetooth cannot be enabled
« Reply #9 on: 2022/10/12, 10:05:02 »
@jyp,

would you please read and apply the "shortest wiki" I linked from @devil, to replace PulseAudio with PipeWire!

Use a translator; pay attention to the commands which root or which the user must execute(I didn't create Jack because I don't use Jack; I didn't have to mask the PulseAudio service because my system keeps the setting after reboot).
This is really easy as pie!