Thursday, November 28, 2013

How to turn off Bluetooth service automatically in Fedora 19?

In Fedora 19, the Bluetooth service will be turned on automatically once the operating system starts. The sad part is this service starts even for laptops without Bluetooth. Disabling this service will give some extra memory to computer which means there is more room for multi-tasking. To do so open you terminal and switch to root user.

#su

Solution 1:
Now enter the following command to turn off Bluetooth service automatically during startup.

#systemctl disable bluetooth.service

Solution 2:
If above method fails follow this bit complicated process. Install "rfkill" package. This package controls the Bluetooth and other wireless settings in Linux kernel. To install it.

#yum install rfkill

Open rfkill config file

#vi /etc/rc.d/rc.local

Enter following text in the empty file that opens after entering the above command.
 
#!/bin/sh
rfkill block bluetooth
exit 0

And to save this document, press 'Esc' key and then 'colon' key. Now wirte as wq. Where w stands for write and q stands for quit. This file should be given with executable operation, so that it can execute during startup. So now use below command.

#chmod +x  /etc/rc.d/rc.local

No comments:

Post a Comment