Instead of turning it off whenever you boot your rig, suspend the Bluetooth service instead.
Not Using Bluetooth?
Turn it Off
Bluetoothis a convenient way to wirelessly connect all manner of devices to your gear.
Andrew Heinzman / How-To Geek
On alaptopthat means your battery discharges faster than it needs to.
This is poor for security and bad for your privacy.
Turning Bluetooth on and off is a trivial matter through your desktop environment.
Most desktop environments provide a simple checkbox or slider control to do this.
With Bluetooth disabled, it cannot be restored through your desktop environment.
your system will behave as though it had no Bluetooth hardware installed at all.
We’re using Arch as the demonstration system, but this will work with all modernsystemd-based Linux distributions.
smack the right-hand end of the top bar to access your GNOME System Menu.
If you’ve got Bluetooth configured and operational on your rig you’ll see a Bluetooth button.
If Bluetooth is not operational, the button will be greyed out.
In our test computer’s case, it is a shade of light blue.
smack the Bluetooth button to toggle Bluetooth on and off.
Bluetooth is now off.
Clicking the button once more will restore Bluetooth functionality.
You’ll need to have
privileges to do this.
If you reboot your rig, Bluetooth won’t be started.
Clicking it has no effect.
Bluetooth cannot be turned on from within GNOME.
Enabling Bluetooth on Arch Linux
Restoring Bluetooth functionality is just as easy.
We use the samesystemctlcommand with different options.
Not surprisingly, instead ofdisablewe useenable.
This tells Arch Linux the Bluetooth service should be started when the computer boots.
Clicking the Bluetooth button toggles Bluetooth on and off, just as before.
That means it’s easy to mistype them.
A neater solution is tocreate Bash shell functions.
If you already use Bash shell functions, add these functions to your current definitions.
Then edityour " .bashrc" file, add these lines to it, and save the file.
if [ -f ~/.bash_functions ]; then
.
~/.bash_functions
fi
Our new Bluetooth Bash shell functions will be loaded each time you get in.
To load them in right now, you’re able to use the source command “.”
to read your “.bashrc” file.
Now you might disable and enable your Bluetooth connection with one command in a terminal window.
Related:How to Fix Bluetooth Audio Delay