Hi guys, I have a Thinkpad X220, with a mechanical switch to turn on the bluetooth, every time I start the operating system the bluetooth is active via software.
Thanks in advance.
Laptops always have more problems because of unsupported hardware, are you sure it’s Bluetooth itself and not just the LED?
I am sure
You can set a startup script to disable it using bluetoothctl
. On my laptop, the setting is recalled as long as I don’t remove the battery. However, everytime I disable/enable WiFi, bluetooth is also activated. For this I set a shortcut to easily enalbe/disable bluetooth.
The scripts are the following:
[mbb@mbb-laptop ~]$ cat .bin/Bluetooth-on.sh
#!/bin/bash
RFBLUE=$(rfkill | grep bluetooth)
if [ "${RFBLUE:0:1}" == " " ]; then
rfkill unblock $(rfkill | grep bluetooth | cut -d ' ' -f2)
else
rfkill unblock $(rfkill | grep bluetooth | cut -d ' ' -f1)
fi
[mbb@mbb-laptop ~]$ cat .bin/Bluetooth-off.sh
#!/bin/bash
RFBLUE=$(rfkill | grep bluetooth)
if [ "${RFBLUE:0:1}" == " " ]; then
rfkill block $(rfkill | grep bluetooth | cut -d ' ' -f2)
else
rfkill block $(rfkill | grep bluetooth | cut -d ' ' -f1)
fi