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.

The Vissles LP85 USB-C port and Bluetooth-Wired connection switcher

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.

The GNOME quick settings menu with the Bluetooth button highlighted

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.

The GNOME quick settings menu with the Bluetooth button greyed out

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.

Disabling the bluetooth service

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.

Stopping the running instance of the bluetooth service

Bluetooth is now off.

Clicking the button once more will restore Bluetooth functionality.

You’ll need to have

privileges to do this.

Enabling the bluetooth service

If you reboot your rig, Bluetooth won’t be started.

Clicking it has no effect.

Bluetooth cannot be turned on from within GNOME.

Starting the bluetooth service

Enabling Bluetooth on Arch Linux

Restoring Bluetooth functionality is just as easy.

We use the samesystemctlcommand with different options.

Not surprisingly, instead ofdisablewe useenable.

Forcing the the bashrc file to be read once more

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.

Using the bluedown shell function to turn off and disable bluetooth

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.

Using the blueup shell function to start and enable the bluetooth service

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