Bluetooth not Working on Kali Linux

2

2

Well I had the problem that bluetooth was always off. I go to configuration->Bluetooth and everytime I tried to put it off just returnes to off a while after. I tried with this command:

aptitude install bluetooth

and then run

/etc/init.d/bluetooth start

after that I runed /etc/init.d/bluetooth status and this is what shows:

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-01-17 21:13:47 UTC; 29s ago
     Docs: man:bluetoothd(8)
 Main PID: 7939 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─7939 /usr/lib/bluetooth/bluetoothd

Jan 17 21:13:47 kali bluetoothd[7939]: Error adding Link Loss service
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Current Time Service could not be re...ed
Jan 17 21:13:47 kali bluetoothd[7939]: gatt-time-server: Input/output error (5)
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register ...ce
Jan 17 21:13:47 kali bluetoothd[7939]: Sap driver initialization failed.
Jan 17 21:13:47 kali bluetoothd[7939]: sap-server: Operation not permitted (1)
Hint: Some lines were ellipsized, use -l to show in full.

My computer is a sony VAIO SVF15A17CLV.

Thank you!!

Edited: After running the service restart command some of you suggested I got the following output:

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-05-03 23:44:12 UTC; 5min ago
     Docs: man:bluetoothd(8)
 Main PID: 3882 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─3882 /usr/lib/bluetooth/bluetoothd

May 03 23:44:12 kali systemd[1]: Starting Bluetooth service...
May 03 23:44:12 kali bluetoothd[3882]: Bluetooth daemon 5.36
May 03 23:44:12 kali systemd[1]: Started Bluetooth service.
May 03 23:44:12 kali bluetoothd[3882]: Starting SDP server
May 03 23:44:12 kali bluetoothd[3882]: Bluetooth management interface 1.12 ...ed
Hint: Some lines were ellipsized, use -l to show in full.

Seems better but it is still not working. When I go to bluetooth settings its always off. After I press start it stays like the following image:

image

PS: I know is not a hardware issue because if I boot with windows 10 it works properly.

Agustin Barrachina

Posted 2017-01-17T20:35:47.517

Reputation: 131

Answers

6

I believe we were having the same problem. My Bluetooth would not turn on and would remain in the off position. Here is what I did to fix this problem:

service bluetooth restart

This restarted the Bluetooth service and I was able to turn it on and it stay on. I was also able to see Bluetooth devices and connect to my headphones again.

Derek

Posted 2017-01-17T20:35:47.517

Reputation: 61

I runned the command you said but it's still not working properly. Although the messages now seem to be better than before. I'll update the question with the new info. – Agustin Barrachina – 2018-05-04T02:53:09.400

2

I had the same problem a few minutes ago, until I restarted the Bluetooth service from the terminal as a root user. I fix it by by typing on the terminal:

sudo service bluetooth restart

On systemd systems:

sudo systemctl restart bluetooth

Then go back to settings and under bluetooth menu, you will have the available devices.

Sourav Goswami

Posted 2017-01-17T20:35:47.517

Reputation: 239

1

This link may help you. I tried and my bluetooth was on after restart too..

https://techrevelations.de/2018/07/15/fix-bluetooth-kali-linux/

Ashish Thapa

Posted 2017-01-17T20:35:47.517

Reputation: 11

0

I've made a little newbie script to get Bluetooth on your device automated.

  • Open Leafpad and copy&paste this text and save as bt without extension e.g., .sh or anything else into the folder /bin.

  • Go to the folder /bin/ and look for bt.  Right-click the file, choose propereties, and make the file executable.

  • Then open terminal @root and type bt.

and you're good to go.

#!/bin/bash   


if [ $(id -u) != "0" ]; then
    echo
    echo -e "!! You need to be logged in as \e[101m"!!Superuser!!"\e[0m" "\e[39m to run this script !!" >&2 "\e[0m" 
    echo
exit 1
fi
read -p "Are you sure you want to start Bluetooth y/n ? " -n 1 -r
    echo    
    if [[ ! $REPLY =~ ^[Yy]$ ]]
    then
    [[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1
fi
    echo
    echo -n
    read -t 1
    echo -n -e "\e[39m"!! Starting "\e[34m \e[5m"Bluetooth "\e[25m \e[39m"Manager !!"\e[0m"
    echo
    read -t 1
    echo
    echo -n -e "!! Take the \e[34m"Blue "\e[39m"pill and Enjoy the Ride !! "\e[0m"
    echo
    read -t 1
    echo -n "!! working on it !! "
    echo
    read -t 1
    echo
    echo -n "!! Loading Update !! "
    echo
    read -t 1
    echo
    sudo apt-get update
    echo
    echo -n -e "\e[31m"!! "\e[39m"installing missing drivers  "\e[31m"!! "\e[0m"
    echo
    read -t 2
    echo
    sudo apt-get install bluetooth
    echo
    echo -n -e "unblocking bluetooth using \e[101m"Rfkill"\e[0m" unblock all"\e[0m"
    echo
    read -t 2
    echo
    sudo rfkill unblock all
    sudo /etc/init.d/bluetooth start
    echo
    echo -n -e "\e[31m"!! "\e[32m"You re good to "\e[34m \e[5m"Go "\e[25m \e[31m"!! "\e[0m"
    echo
    read -t 1
    echo
exit 1
fi

Virtual Insanity

Posted 2017-01-17T20:35:47.517

Reputation: 1

i dont know how that works ,, – Virtual Insanity – 2018-12-29T00:02:58.053

well i was just about to post it with the code blocks thx annyways ;) – Virtual Insanity – 2018-12-29T00:13:46.217

looks fantastic well i didnt see that @ first lol i never posted annything on anny forum like a code li was already saying damn why is my text so big , :) – Virtual Insanity – 2018-12-29T00:16:06.480