Close Menu
    X (Twitter)
    Hectic GeekHectic Geek
    • Apps
      • Apps for Mac
      • Apps for PCs
      • Best Apps
    • Concepts
      • Comparison
      • For Geeks
      • IT Careers
    • Gadgets
      • Accessories
      • Best Work Laptops
      • Budget Laptops
    • GNU/Linux
      • Ubuntu
    • How To
      • Virtualization
      • Windows
      • Windows How-To
    Hectic GeekHectic Geek
    Home » How to Disable Bluetooth being Automatically Turned ON in Fedora 18
    GNU/Linux

    How to Disable Bluetooth being Automatically Turned ON in Fedora 18

    GayanBy GayanJanuary 21, 2013Updated:January 30, 201320 Comments3 Mins Read
    Twitter Reddit Telegram WhatsApp Email
    Share
    Twitter Reddit Telegram WhatsApp Email

    I cannot really point out the exact reason, but a lot of GNU/Linux distributions fail to keep the last saved status of my Bluetooth device. So even if I had turned it OFF in my previous desktop session, the next time I login, it will be turned ON. This is how it is with Ubuntu, and sadly, the same issue exists in Fedora 18 as well.

    Most Laptop users don’t use their Bluetooth connection, and when not used, it should be turned OFF, as it draws a reasonable amount of power when running. And turning it OFF, will also prolong your battery life too (obviously).

    In Ubuntu, one can easily fix it by tweaking a configuration setting, but doing the same thing in Fedora (talking about ’18’ here), is a bit difficult. So I thought of writing a simple ‘how to’ concerning this, would come in handy for all the new users out there. For that, please follow the below steps.

    'Gnome Shell' notifying that 'Bluetooth' is enabled - Fedora 18

    Step 1:

    First of all, we are going to need a tool called ‘rfkill’. It is a command-line based utility that lets us control various types of wireless networking devices in GNU/Linux. Ubuntu comes it installed by default, but Fedora does not.

    So, open your Terminal window and enter the below command to install it.

    su -c 'yum install rfkill'

    Step 2:

    Now, we are going use ‘rfkill’, and make Fedora execute it while loading the desktop session (every time) thus, disabling the ‘Bluetooth’ connection, automatically. For that, we have to create a configuration file called ‘rc.local’ and put the appropriate ‘rfkill’ command in it.

    You don’t actually have to know any of these details, but I just thought a little information wouldn’t go wasted :). Anyhow …

    Open your Terminal window and enter the below command to create that configuration file.

    su -c 'vi /etc/rc.d/rc.local'

    Step 3:

    This will create an empty file and open it using a command-line based editor called ‘vi’.

    So, once opened, type ‘i’ key on your keyboard to start entering data into the newly created, empty file (otherwise ‘vi’ will not let you enter anything). And as soon as you type ‘i’, you should see a text field called ‘— INSERT —‘ appearing at the bottom of the editor window (shown below), denoting that ‘vi’ is waiting for your input.

    Now simply copy and paste (or type them manually) the below text into the editor.

    #!/bin/sh

    rfkill block bluetooth

    exit 0

    Creating the 'rc.local' file in Fedora 18

    Step 4:

    Now, to save and exit the ‘vi’ editor, first press the ‘Esc’ key on your keyboard. Then type ‘:wq’ (shown below) and press Enter.

    Saving the changes done to 'rc.local' and exiting 'vi' - Fedora 18

    As soon as you do that, ‘vi’ will save the content to the newly created ‘rc.local’ and exit.

    Step 5:

    Now in this final step, we will give executable permissions to the ‘rc.local’ file (otherwise the OS won’t be able to run it). For that, simply enter the below command.

    su -c 'chmod +x  /etc/rc.d/rc.local'

    Well that’s it.

    Now just for testing, turn Bluetooth ON and reboot the computer. And the next time you login into the Desktop, it should be turned OFF. But bear in mind that, because this command is run when you login to the desktop, it might take few seconds before the Bluetooth icon changes into the OFF status (about 2-3 seconds in my Laptop). That’s it, I hope it was helpful.

    Share. Twitter Reddit Telegram WhatsApp Email
    Gayan

    An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

    Related Posts

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    AlmaLinux vs Rocky Linux: What you need to know

    August 24, 2023

    Pop!_OS VS Linux Mint, Which One to Select in 2023

    July 27, 2023

    Debian vs Ubuntu Server: A Brief Comparison for Beginners

    July 2, 2023

    20 Comments

    1. frank on March 15, 2013 2:24 pm

      thanx for this information.

      Reply
      • Gayan on March 15, 2013 5:04 pm

        You are welcome ‘frank’ :).

        Reply
    2. Saskia on April 19, 2013 1:10 pm

      Very usefull to know, thank you for sharing this and greetings from Germany =)

      Reply
      • Gayan on April 19, 2013 7:49 pm

        You are welcome ‘Saskia’ :).

        Reply
    3. Akira on June 17, 2013 9:12 am

      Thank’s for your post, but it doesn’t help me…

      🙁

      On my Asus laptop don’t works… 🙁

      Reply
      • Gayan on June 17, 2013 9:45 am

        Hmm, that’s weird, if you’ve followed all the steps properly, then I cannot see what it shouldn’t work …

        Reply
    4. c on June 25, 2013 7:01 am

      thank you, seems to stay off when turned off. thank you very much.

      Reply
      • Gayan on June 25, 2013 7:11 am

        You’re welcome.

        Reply
    5. Dan McGrady on September 12, 2013 8:43 am

      Thanks I couldn’t find how to do this elsewhere.

      Stupid that it has to be a shell script.

      Reply
      • Gayan on September 12, 2013 8:57 am

        You’re welcome Dan.

        Reply
    6. SW on October 18, 2013 10:05 am

      Thank you

      Reply
      • SW on October 18, 2013 10:14 am

        This process is also effective for Fedora 19

        Reply
        • Gayan on October 18, 2013 3:22 pm

          Thanks.

          Reply
      • Gayan on October 18, 2013 3:22 pm

        You’re welcome.

        Reply
    7. Gene on January 6, 2014 5:57 am

      Excellent fix…works for Fedora 20!!! Why does this tweak have to be so labor intensive? Seems like it should be an easy fix for the programming gurus. Well, at least I learn a little more about the command line by doing it 🙂

      Reply
      • Gayan on January 6, 2014 10:18 am

        Well, that’s one way of looking at it ;-).

        Reply
    8. Bram Mertens on January 25, 2014 9:39 pm

      A simpler way to do this is to disable the bluetooth service.
      Using rfkill to kill the daemon after it starts works but it is better not to start it at all.

      Use systemctl (on Fedora 19 and up) to stop en then disable the service:
      sudo systemctl stop bluetooth
      sudo systemctl disable bluetooth

      For some reason the gnome-bluetooth app still shows the “active” icon but opening the gnome-bluetooth settings screen will show that it is disabled.

      Reply
      • Gayan on January 26, 2014 7:39 am

        Thank you Bram. However, I wanted to not to completely disable the Bluetooth, but to make sure that it doesn’t get turned ON upon desktop login. But for someone that doesn’t really need Bluetooth, your method is ideal I suppose. Thanks again.

        Reply
    9. Emerson Yamamoto on March 25, 2015 9:20 am

      Thank you!!

      ps: from Brazil!

      Reply
      • Gayan on March 25, 2015 2:32 pm

        You’re welcome Emerson :).

        Reply
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Latest Posts

    Transforming Geek Culture with Advanced Software Development

    April 8, 2024

    The Role of Technology in Enhancing Digital Signage Solutions

    February 21, 2024

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    Subscribe to Updates

    Get the latest news and updates from Hectic Geek. We won't overload you or sell your data!

    Contact
    • About Us
    • Contact Us
    • Privacy Policy
    • Write for Us
    X (Twitter)
    © 2026 Hectic Geek.

    Type above and press Enter to search. Press Esc to cancel.