How to disable Bluetooth by default in Ubuntu 14.04

Source: Internet
Author: User

How to disable Bluetooth by default in Ubuntu 14.04

I recently bought a new Dell Inspiron 7437 instance. One of the first tasks I did was to enable the pre-installed Windows 8 and Ubuntu 14.04 Dual Boot. My old laptop does not have bluetooth. It sounds strange, but this is the case. This is why I have never noticed that Bluetooth is always enabled automatically at every startup of Ubuntu.

Download, install, and configure Ubuntu 14.04

Ubuntu 14.04 system:

Ubuntu 14.04 text tutorial on hard drive installation in Windows 7

This is not a good thing for energy saving and security purposes. In addition, I almost don't use Bluetooth, so why should I enable Bluetooth by default? Even though you only need to click Bluetooth once in Ubuntu, It is a frustrating task to repeat it every time you log on. A simpler solution is to disable Bluetooth when Ubuntu is started.

In today's post, I will share with you how to disable Bluetooth by default at each startup.

Bluetooth is disabled by default in Ubuntu 14.04:

Open a terminal and run the following command to install gksu (if you have not installed it, you don't want to install it, so you can use sudo ).

  1. Sudo apt-get install gksu

Gksu is a program used to enter a password when running a program with the root permission. After you have installed gksu, run the following command:

  1. Gksudo gedit/etc/rc. local

It will open the rc. local file. You only need to add the following command before exit 0 in the file:

  1. Rfkill block bluetooth

In this way, your rc. local file looks like this:

This is all the steps. Restart your computer and you will be able to see that Bluetooth has been disabled. Of course, you can open it from the Bluetooth icon on the indicator panel when using it.

Note:

This is just a brief explanation of what we have done. You do not have to read this part. You can directly jump to the comments section to leave your suggestions and thanks :)

The rc. local file is used to record various shell commands that run at system startup. These commands are user-defined. In a new installation, the rc. local file does not contain any commands. Here we add the command rfkill block bluetooth. Rfkill is a tool used to query the status of various switches, buttons, and underlying system interfaces. We use this command in rc. local to enable the software-disabled feature at each startup. I hope this will give a clear explanation of the Principles.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.