Turn Off Bluetooth By Default In Ubuntu 14.04

Open a terminal and use the following command to install gksu, if you dot have it installed it already.

sudo apt-get install gksu

gksu is used to enter password while running a program as root. Once you have gksu installed, use the command below:

gksudo gedit /etc/rc.local

It will open the rc.local file. Just add the following line just before exit 0.

rfkill block bluetooth

Altogether, your rc.local file look like this:

That would be it. Restart the computer and you should see that Bluetooth has been disabled. Of course you can turn it on when required by the Bluetooth indicator on the top panel.

Explanation:

This little section is just to give a brief explanation of what we did here. It’s not obligatory to read this section. You can skip to comment section for your suggestions or thanks :)

rc.local file is used to run various shell commands at start up time. These commands are user defined. In a clean install, rc.local has no commands to run. What we did here was to add rfkill block bluetooth. rfkill is a tool to query the state of various switches, buttons and subsytem interfaces. With this command in rc.localm we are basically soft blocking Bluetooth at each start up time. I hope this explains the things a bit.

Advertisements

One thought on “Turn Off Bluetooth By Default In Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s