Bluetooth not working


┌─[root@ParrotOS]─[/home/crpdusr]
└──╼ # systemctl enable bluetooth
Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth
Use of uninitialized value $service in hash element at /usr/sbin/update-rc.d line 26, line 45.
insserv: Script ntp has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script ssh has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script sysstat has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
Use of uninitialized value $service in hash element at /usr/sbin/update-rc.d line 26, line 45.
insserv: Script ntp has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script ssh has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script sysstat has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.

┌─[crpdusr@ParrotOS]─[~]
└──╼ $sudo service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-02-02 10:28:35 +06; 10min ago
Docs: man:bluetoothd(8)
Main PID: 597 (bluetoothd)
Status: “Running”
Tasks: 1 (limit: 6966)
Memory: 6.4M
CPU: 75ms
CGroup: /system.slice/bluetooth.service
└─597 /usr/libexec/bluetooth/bluetoothd

ফেব 02 10:28:35 ParrotOS bluetoothd[597]: Starting SDP server
ফেব 02 10:28:36 ParrotOS bluetoothd[597]: Bluetooth management interface 1.16 initialized
ফেব 02 10:28:36 ParrotOS bluetoothd[597]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
ফেব 02 10:28:36 ParrotOS bluetoothd[597]: sap-server: Operation not permitted (1)
ফেব 02 10:29:12 ParrotOS bluetoothd[597]: Endpoint registered: sender=:1.26 path=/MediaEndpoint/A2DPSink/sbc
ফেব 02 10:29:12 ParrotOS bluetoothd[597]: Endpoint registered: sender=:1.26 path=/MediaEndpoint/A2DPSource/sbc
ফেব 02 10:29:19 ParrotOS bluetoothd[597]: Endpoint unregistered: sender=:1.26 path=/MediaEndpoint/A2DPSink/sbc
ফেব 02 10:29:19 ParrotOS bluetoothd[597]: Endpoint unregistered: sender=:1.26 path=/MediaEndpoint/A2DPSource/sbc
ফেব 02 10:29:20 ParrotOS bluetoothd[597]: Endpoint registered: sender=:1.36 path=/MediaEndpoint/A2DPSink/sbc
ফেব 02 10:29:20 ParrotOS bluetoothd[597]: Endpoint registered: sender=:1.36 path=/MediaEndpoint/A2DPSource/sbc

┌─[crpdusr@ParrotOS]─[~]
└──╼ $sudo systemctl enable bluetooth && sudo systemctl start bluetooth
Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth
Use of uninitialized value $service in hash element at /usr/sbin/update-rc.d line 26, line 45.
insserv: Script ntp has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script ssh has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script sysstat has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
Use of uninitialized value $service in hash element at /usr/sbin/update-rc.d line 26, line 45.
insserv: Script ntp has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script ssh has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script sysstat has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.

┌─[crpdusr@ParrotOS]─[~]
└──╼ $sudo dmesg | grep Bluetooth
[ 16.227187] Bluetooth: Core ver 2.22
[ 16.227217] Bluetooth: HCI device and connection manager initialized
[ 16.227222] Bluetooth: HCI socket layer initialized
[ 16.227225] Bluetooth: L2CAP socket layer initialized
[ 16.227229] Bluetooth: SCO socket layer initialized
[ 27.544552] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 27.544557] Bluetooth: BNEP filters: protocol multicast
[ 27.544568] Bluetooth: BNEP socket layer initialized
[ 63.742885] Bluetooth: RFCOMM TTY layer initialized
[ 63.742908] Bluetooth: RFCOMM socket layer initialized
[ 63.742923] Bluetooth: RFCOMM ver 1.11

┌─[crpdusr@ParrotOS]─[~]
└──╼ $sudo hcitool dev
Devices:
hci0 74:DE:2B:4D:43:79

┌─[crpdusr@ParrotOS]─[~]
└──╼ $rfkill list
0: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: hp-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: yes
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

Bluetooth worked when i first installed parrot os. But after a few days Bluetooth stopped working
Os: 5.7.0-2parrot2-amd64 (ParrotOS security edition)

Fix bluetooth connectivity issue*******

open a terminal and run the following commands:

  1. sudo apt-get install libspa-0.2-modules=0.3.19-4
  2. sudo apt install libspa-0.2-bluetooth && apt purge pulseaudio-module-bluetooth

------Now reboot your system: sudo reboot now

**Fix noice cancelation for your inbuild/default mike

#open your terminal and type the following command:
sudo nano /etc/pulse/default.pa

#scrool down to bottom and add the following lines and save it.

load-module module-echo-cancel aec_args=“analog_gain_control=0 digital_gain_control=0”

#now press ctrl+x and type Y and press enter

in terminal run the following command

pulseaudio -k
reboot your system : sudo reboot now