Disable Bluetooth on Startup in Ubuntu

If you don’t use wireless mouse or keyboard and disable your bluetooth manually everytime Ubuntu starts up (and hate it), then you need to automate this.

You can do it by editing a file i.e.  /etc/rc.local

You need root permissions to edit this file. From terminal (Ctrl+Alt+T) type:

gksu gedit /etc/rc.local

Here gksu is a front-end to su.

Then add the following line before  ‘exit 0’:

rfkill block bluetooth

Here is how the file will look like:

gksu gedit /etc/rc.local

gksu gedit /etc/rc.local

This will soft block the bluetooth service.

You can unblock it anytime by:  rfkill unblock bluetooth.

rfkill is a utility that is meant for disabling and enabling wireless devices.

Advertisements

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