How can I set bluetooth off as default?











up vote
6
down vote

favorite
2












Whenever I turn my bluetooth off from the settings menu, it's back on after reboot. I know this has already been asked but I've tried all answers that have been provided and nothing seems to work.



The most popular suggestion is: Run sudoedit /etc/rc.local and add this before line with exit 0:



rfkill block bluetooth


When I do this, an empty file opens up and it's not even rc.local if I'm correct. (see screenshot).
I'm running Ubuntu 18.04 LTS.



Screenshot



If I run ls -l /etc/rc.local this comes up:



Screenshot2



If I run: sudo rfkill list all:



Screenshot3



I've tried everything in this link except installing BUM: How can I deactivate Bluetooth on system startup?










share|improve this question




















  • 2




    Well, what's the link to the other suggestions you tried ? Yes, the file in screenshot is a temp file, which is odd. Did you run sudoedit /etc/rc.local or did it differ somehow ? Does ls -l /etc/rc.local suggests it's a symlink ?
    – Sergiy Kolodyazhnyy
    Jun 16 at 4:24










  • Also, sudo rfkill list all output would be nice to add
    – Sergiy Kolodyazhnyy
    Jun 16 at 4:25






  • 1




    "When I do this, an empty file opens up and it's not even rc.local if I'm correct. " Yes it is. Custom method in Linux: editing a file in use is bad practice, so a file in /tmp/ is created and mv to the place it needs to be. Next: you did not find anything on blacklisting the bt module?! I find that odd ;)
    – Rinzwind
    Jun 16 at 9:45










  • I've tried everything in this link except installing BUM: askubuntu.com/questions/67758/…
    – Lucy C
    Jun 17 at 19:22






  • 1




    Possible duplicate of How can I deactivate Bluetooth on system startup?
    – naXa
    Oct 25 at 5:22















up vote
6
down vote

favorite
2












Whenever I turn my bluetooth off from the settings menu, it's back on after reboot. I know this has already been asked but I've tried all answers that have been provided and nothing seems to work.



The most popular suggestion is: Run sudoedit /etc/rc.local and add this before line with exit 0:



rfkill block bluetooth


When I do this, an empty file opens up and it's not even rc.local if I'm correct. (see screenshot).
I'm running Ubuntu 18.04 LTS.



Screenshot



If I run ls -l /etc/rc.local this comes up:



Screenshot2



If I run: sudo rfkill list all:



Screenshot3



I've tried everything in this link except installing BUM: How can I deactivate Bluetooth on system startup?










share|improve this question




















  • 2




    Well, what's the link to the other suggestions you tried ? Yes, the file in screenshot is a temp file, which is odd. Did you run sudoedit /etc/rc.local or did it differ somehow ? Does ls -l /etc/rc.local suggests it's a symlink ?
    – Sergiy Kolodyazhnyy
    Jun 16 at 4:24










  • Also, sudo rfkill list all output would be nice to add
    – Sergiy Kolodyazhnyy
    Jun 16 at 4:25






  • 1




    "When I do this, an empty file opens up and it's not even rc.local if I'm correct. " Yes it is. Custom method in Linux: editing a file in use is bad practice, so a file in /tmp/ is created and mv to the place it needs to be. Next: you did not find anything on blacklisting the bt module?! I find that odd ;)
    – Rinzwind
    Jun 16 at 9:45










  • I've tried everything in this link except installing BUM: askubuntu.com/questions/67758/…
    – Lucy C
    Jun 17 at 19:22






  • 1




    Possible duplicate of How can I deactivate Bluetooth on system startup?
    – naXa
    Oct 25 at 5:22













up vote
6
down vote

favorite
2









up vote
6
down vote

favorite
2






2





Whenever I turn my bluetooth off from the settings menu, it's back on after reboot. I know this has already been asked but I've tried all answers that have been provided and nothing seems to work.



The most popular suggestion is: Run sudoedit /etc/rc.local and add this before line with exit 0:



rfkill block bluetooth


When I do this, an empty file opens up and it's not even rc.local if I'm correct. (see screenshot).
I'm running Ubuntu 18.04 LTS.



Screenshot



If I run ls -l /etc/rc.local this comes up:



Screenshot2



If I run: sudo rfkill list all:



Screenshot3



I've tried everything in this link except installing BUM: How can I deactivate Bluetooth on system startup?










share|improve this question















Whenever I turn my bluetooth off from the settings menu, it's back on after reboot. I know this has already been asked but I've tried all answers that have been provided and nothing seems to work.



The most popular suggestion is: Run sudoedit /etc/rc.local and add this before line with exit 0:



rfkill block bluetooth


When I do this, an empty file opens up and it's not even rc.local if I'm correct. (see screenshot).
I'm running Ubuntu 18.04 LTS.



Screenshot



If I run ls -l /etc/rc.local this comes up:



Screenshot2



If I run: sudo rfkill list all:



Screenshot3



I've tried everything in this link except installing BUM: How can I deactivate Bluetooth on system startup?







boot bluetooth settings






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 17 at 23:13

























asked Jun 16 at 4:10









Lucy C

508




508








  • 2




    Well, what's the link to the other suggestions you tried ? Yes, the file in screenshot is a temp file, which is odd. Did you run sudoedit /etc/rc.local or did it differ somehow ? Does ls -l /etc/rc.local suggests it's a symlink ?
    – Sergiy Kolodyazhnyy
    Jun 16 at 4:24










  • Also, sudo rfkill list all output would be nice to add
    – Sergiy Kolodyazhnyy
    Jun 16 at 4:25






  • 1




    "When I do this, an empty file opens up and it's not even rc.local if I'm correct. " Yes it is. Custom method in Linux: editing a file in use is bad practice, so a file in /tmp/ is created and mv to the place it needs to be. Next: you did not find anything on blacklisting the bt module?! I find that odd ;)
    – Rinzwind
    Jun 16 at 9:45










  • I've tried everything in this link except installing BUM: askubuntu.com/questions/67758/…
    – Lucy C
    Jun 17 at 19:22






  • 1




    Possible duplicate of How can I deactivate Bluetooth on system startup?
    – naXa
    Oct 25 at 5:22














  • 2




    Well, what's the link to the other suggestions you tried ? Yes, the file in screenshot is a temp file, which is odd. Did you run sudoedit /etc/rc.local or did it differ somehow ? Does ls -l /etc/rc.local suggests it's a symlink ?
    – Sergiy Kolodyazhnyy
    Jun 16 at 4:24










  • Also, sudo rfkill list all output would be nice to add
    – Sergiy Kolodyazhnyy
    Jun 16 at 4:25






  • 1




    "When I do this, an empty file opens up and it's not even rc.local if I'm correct. " Yes it is. Custom method in Linux: editing a file in use is bad practice, so a file in /tmp/ is created and mv to the place it needs to be. Next: you did not find anything on blacklisting the bt module?! I find that odd ;)
    – Rinzwind
    Jun 16 at 9:45










  • I've tried everything in this link except installing BUM: askubuntu.com/questions/67758/…
    – Lucy C
    Jun 17 at 19:22






  • 1




    Possible duplicate of How can I deactivate Bluetooth on system startup?
    – naXa
    Oct 25 at 5:22








2




2




Well, what's the link to the other suggestions you tried ? Yes, the file in screenshot is a temp file, which is odd. Did you run sudoedit /etc/rc.local or did it differ somehow ? Does ls -l /etc/rc.local suggests it's a symlink ?
– Sergiy Kolodyazhnyy
Jun 16 at 4:24




Well, what's the link to the other suggestions you tried ? Yes, the file in screenshot is a temp file, which is odd. Did you run sudoedit /etc/rc.local or did it differ somehow ? Does ls -l /etc/rc.local suggests it's a symlink ?
– Sergiy Kolodyazhnyy
Jun 16 at 4:24












Also, sudo rfkill list all output would be nice to add
– Sergiy Kolodyazhnyy
Jun 16 at 4:25




Also, sudo rfkill list all output would be nice to add
– Sergiy Kolodyazhnyy
Jun 16 at 4:25




1




1




"When I do this, an empty file opens up and it's not even rc.local if I'm correct. " Yes it is. Custom method in Linux: editing a file in use is bad practice, so a file in /tmp/ is created and mv to the place it needs to be. Next: you did not find anything on blacklisting the bt module?! I find that odd ;)
– Rinzwind
Jun 16 at 9:45




"When I do this, an empty file opens up and it's not even rc.local if I'm correct. " Yes it is. Custom method in Linux: editing a file in use is bad practice, so a file in /tmp/ is created and mv to the place it needs to be. Next: you did not find anything on blacklisting the bt module?! I find that odd ;)
– Rinzwind
Jun 16 at 9:45












I've tried everything in this link except installing BUM: askubuntu.com/questions/67758/…
– Lucy C
Jun 17 at 19:22




I've tried everything in this link except installing BUM: askubuntu.com/questions/67758/…
– Lucy C
Jun 17 at 19:22




1




1




Possible duplicate of How can I deactivate Bluetooth on system startup?
– naXa
Oct 25 at 5:22




Possible duplicate of How can I deactivate Bluetooth on system startup?
– naXa
Oct 25 at 5:22










4 Answers
4






active

oldest

votes

















up vote
8
down vote



accepted










I've tested this and it's persistent across reboots.



Click the bluetooth logo between the keyboard and battery icons on the system tray. Then click the "Bluetooth ON" selection and it changes to "Bluetooth OFF":



bluetooth off.gif





After comments I discovered that Ubuntu 18.04 with Gnome interface doesn't work like Ubuntu 16.04 with Unity interface.



The solution is to edit /etc/default/tlp and find:



# Radio devices to disable on startup: bluetooth, wifi, wwan.
# Separate multiple devices with spaces.
#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"


Edit the last line to read:



DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"





share|improve this answer























  • I'm gonna assume you really did think I haven't tried the most basic solution. When I do this, the bluetooth is back on after reboot.
    – Lucy C
    Jun 17 at 22:53










  • @LucyC I just noticed from your screenshots you don't even have the bluetooth icon in systray. Furthermore you are using Gnome interface and not Unity 16.04 interface like me. Are you using Ubuntu 18.04?
    – WinEunuuchs2Unix
    Jun 17 at 23:04










  • I'm running Ubuntu 18.04 LTS. My bluetooth icon can be found in the dropdown settings menu as shown here: [ibb.co/h5pmaJ]
    – Lucy C
    Jun 17 at 23:09












  • @LucyC I'll reboot using Ubuntu 18.04 LTS with default Gnome interface and check it out.
    – WinEunuuchs2Unix
    Jun 17 at 23:10












  • @LucyC After rebooting into Ubuntu 18.40 I was shocked to learn under the Gnome interface the setting isn't retained. On searching for a solution I found a duplicate question with an accepted answer so voted to close your question as a duplicate. So now I'll boot back into 16.04 which just works :)
    – WinEunuuchs2Unix
    Jun 17 at 23:20


















up vote
4
down vote













Well, I have a suggession. I think most of the people will try to make the devices to remember the state of the previous shutdown. Thus if wifi/bluetooth is turned off/on before the previous shutdown, then after rebooting, wifi/bluetooth remains off/on according the previous state.



To do this, go to the file /etc/default/tlp and search for the line




RESTORE_DEVICE_STATE_ON_STARTUP=0




This is set as "0" by default, which means that remembering the state of radio is disabled by default. To make it remember the previous state, replace "0" with "1".
If you set this as "1", the lines after that will not be read by the system.



If you specifically wants to set some radio to be on or off at start up, then follow the lines




#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"




and




#DEVICES_TO_ENABLE_ON_STARTUP="bluetooth wifi wwan"




and remove the '#' to activate any of those line. And you can choose between bluetooth/wifi/wwan or all of them.



Do as you need.






share|improve this answer




























    up vote
    1
    down vote













    I have a workaround for your case...



    I'm using Ubuntu Mate 18.04, in my case I just click on "MENU/Preferences/Startup Applications".
    A window called "Startup Applications Preferences" pops up. Find the entry called "Blueman Applet" and remove the tick/tag from it so that it becomes disabled (grayed out). As a result, all the applications related with Bluetooth will not load the next time(s) you boot up your system.



    The annoying part is that you will have to reverse this procedure and reboot to get bluetooth back to work in case you need it.



    Hope this helps
    JaMedSyS






    share|improve this answer




























      up vote
      0
      down vote













      the rc.local way appears right to me, yet I'd do it slightly different:



      sudo nano /etc/rc.local



      either the file is empty - it has just been created by you - or not, edit it to look like this:




      #!/bin/sh



      rfkill block bluetooth



      exit 0




      the first and last lines are important.






      share|improve this answer





















        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1047018%2fhow-can-i-set-bluetooth-off-as-default%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        8
        down vote



        accepted










        I've tested this and it's persistent across reboots.



        Click the bluetooth logo between the keyboard and battery icons on the system tray. Then click the "Bluetooth ON" selection and it changes to "Bluetooth OFF":



        bluetooth off.gif





        After comments I discovered that Ubuntu 18.04 with Gnome interface doesn't work like Ubuntu 16.04 with Unity interface.



        The solution is to edit /etc/default/tlp and find:



        # Radio devices to disable on startup: bluetooth, wifi, wwan.
        # Separate multiple devices with spaces.
        #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"


        Edit the last line to read:



        DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"





        share|improve this answer























        • I'm gonna assume you really did think I haven't tried the most basic solution. When I do this, the bluetooth is back on after reboot.
          – Lucy C
          Jun 17 at 22:53










        • @LucyC I just noticed from your screenshots you don't even have the bluetooth icon in systray. Furthermore you are using Gnome interface and not Unity 16.04 interface like me. Are you using Ubuntu 18.04?
          – WinEunuuchs2Unix
          Jun 17 at 23:04










        • I'm running Ubuntu 18.04 LTS. My bluetooth icon can be found in the dropdown settings menu as shown here: [ibb.co/h5pmaJ]
          – Lucy C
          Jun 17 at 23:09












        • @LucyC I'll reboot using Ubuntu 18.04 LTS with default Gnome interface and check it out.
          – WinEunuuchs2Unix
          Jun 17 at 23:10












        • @LucyC After rebooting into Ubuntu 18.40 I was shocked to learn under the Gnome interface the setting isn't retained. On searching for a solution I found a duplicate question with an accepted answer so voted to close your question as a duplicate. So now I'll boot back into 16.04 which just works :)
          – WinEunuuchs2Unix
          Jun 17 at 23:20















        up vote
        8
        down vote



        accepted










        I've tested this and it's persistent across reboots.



        Click the bluetooth logo between the keyboard and battery icons on the system tray. Then click the "Bluetooth ON" selection and it changes to "Bluetooth OFF":



        bluetooth off.gif





        After comments I discovered that Ubuntu 18.04 with Gnome interface doesn't work like Ubuntu 16.04 with Unity interface.



        The solution is to edit /etc/default/tlp and find:



        # Radio devices to disable on startup: bluetooth, wifi, wwan.
        # Separate multiple devices with spaces.
        #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"


        Edit the last line to read:



        DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"





        share|improve this answer























        • I'm gonna assume you really did think I haven't tried the most basic solution. When I do this, the bluetooth is back on after reboot.
          – Lucy C
          Jun 17 at 22:53










        • @LucyC I just noticed from your screenshots you don't even have the bluetooth icon in systray. Furthermore you are using Gnome interface and not Unity 16.04 interface like me. Are you using Ubuntu 18.04?
          – WinEunuuchs2Unix
          Jun 17 at 23:04










        • I'm running Ubuntu 18.04 LTS. My bluetooth icon can be found in the dropdown settings menu as shown here: [ibb.co/h5pmaJ]
          – Lucy C
          Jun 17 at 23:09












        • @LucyC I'll reboot using Ubuntu 18.04 LTS with default Gnome interface and check it out.
          – WinEunuuchs2Unix
          Jun 17 at 23:10












        • @LucyC After rebooting into Ubuntu 18.40 I was shocked to learn under the Gnome interface the setting isn't retained. On searching for a solution I found a duplicate question with an accepted answer so voted to close your question as a duplicate. So now I'll boot back into 16.04 which just works :)
          – WinEunuuchs2Unix
          Jun 17 at 23:20













        up vote
        8
        down vote



        accepted







        up vote
        8
        down vote



        accepted






        I've tested this and it's persistent across reboots.



        Click the bluetooth logo between the keyboard and battery icons on the system tray. Then click the "Bluetooth ON" selection and it changes to "Bluetooth OFF":



        bluetooth off.gif





        After comments I discovered that Ubuntu 18.04 with Gnome interface doesn't work like Ubuntu 16.04 with Unity interface.



        The solution is to edit /etc/default/tlp and find:



        # Radio devices to disable on startup: bluetooth, wifi, wwan.
        # Separate multiple devices with spaces.
        #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"


        Edit the last line to read:



        DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"





        share|improve this answer














        I've tested this and it's persistent across reboots.



        Click the bluetooth logo between the keyboard and battery icons on the system tray. Then click the "Bluetooth ON" selection and it changes to "Bluetooth OFF":



        bluetooth off.gif





        After comments I discovered that Ubuntu 18.04 with Gnome interface doesn't work like Ubuntu 16.04 with Unity interface.



        The solution is to edit /etc/default/tlp and find:



        # Radio devices to disable on startup: bluetooth, wifi, wwan.
        # Separate multiple devices with spaces.
        #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"


        Edit the last line to read:



        DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 17 at 23:53

























        answered Jun 17 at 21:38









        WinEunuuchs2Unix

        40.8k1069152




        40.8k1069152












        • I'm gonna assume you really did think I haven't tried the most basic solution. When I do this, the bluetooth is back on after reboot.
          – Lucy C
          Jun 17 at 22:53










        • @LucyC I just noticed from your screenshots you don't even have the bluetooth icon in systray. Furthermore you are using Gnome interface and not Unity 16.04 interface like me. Are you using Ubuntu 18.04?
          – WinEunuuchs2Unix
          Jun 17 at 23:04










        • I'm running Ubuntu 18.04 LTS. My bluetooth icon can be found in the dropdown settings menu as shown here: [ibb.co/h5pmaJ]
          – Lucy C
          Jun 17 at 23:09












        • @LucyC I'll reboot using Ubuntu 18.04 LTS with default Gnome interface and check it out.
          – WinEunuuchs2Unix
          Jun 17 at 23:10












        • @LucyC After rebooting into Ubuntu 18.40 I was shocked to learn under the Gnome interface the setting isn't retained. On searching for a solution I found a duplicate question with an accepted answer so voted to close your question as a duplicate. So now I'll boot back into 16.04 which just works :)
          – WinEunuuchs2Unix
          Jun 17 at 23:20


















        • I'm gonna assume you really did think I haven't tried the most basic solution. When I do this, the bluetooth is back on after reboot.
          – Lucy C
          Jun 17 at 22:53










        • @LucyC I just noticed from your screenshots you don't even have the bluetooth icon in systray. Furthermore you are using Gnome interface and not Unity 16.04 interface like me. Are you using Ubuntu 18.04?
          – WinEunuuchs2Unix
          Jun 17 at 23:04










        • I'm running Ubuntu 18.04 LTS. My bluetooth icon can be found in the dropdown settings menu as shown here: [ibb.co/h5pmaJ]
          – Lucy C
          Jun 17 at 23:09












        • @LucyC I'll reboot using Ubuntu 18.04 LTS with default Gnome interface and check it out.
          – WinEunuuchs2Unix
          Jun 17 at 23:10












        • @LucyC After rebooting into Ubuntu 18.40 I was shocked to learn under the Gnome interface the setting isn't retained. On searching for a solution I found a duplicate question with an accepted answer so voted to close your question as a duplicate. So now I'll boot back into 16.04 which just works :)
          – WinEunuuchs2Unix
          Jun 17 at 23:20
















        I'm gonna assume you really did think I haven't tried the most basic solution. When I do this, the bluetooth is back on after reboot.
        – Lucy C
        Jun 17 at 22:53




        I'm gonna assume you really did think I haven't tried the most basic solution. When I do this, the bluetooth is back on after reboot.
        – Lucy C
        Jun 17 at 22:53












        @LucyC I just noticed from your screenshots you don't even have the bluetooth icon in systray. Furthermore you are using Gnome interface and not Unity 16.04 interface like me. Are you using Ubuntu 18.04?
        – WinEunuuchs2Unix
        Jun 17 at 23:04




        @LucyC I just noticed from your screenshots you don't even have the bluetooth icon in systray. Furthermore you are using Gnome interface and not Unity 16.04 interface like me. Are you using Ubuntu 18.04?
        – WinEunuuchs2Unix
        Jun 17 at 23:04












        I'm running Ubuntu 18.04 LTS. My bluetooth icon can be found in the dropdown settings menu as shown here: [ibb.co/h5pmaJ]
        – Lucy C
        Jun 17 at 23:09






        I'm running Ubuntu 18.04 LTS. My bluetooth icon can be found in the dropdown settings menu as shown here: [ibb.co/h5pmaJ]
        – Lucy C
        Jun 17 at 23:09














        @LucyC I'll reboot using Ubuntu 18.04 LTS with default Gnome interface and check it out.
        – WinEunuuchs2Unix
        Jun 17 at 23:10






        @LucyC I'll reboot using Ubuntu 18.04 LTS with default Gnome interface and check it out.
        – WinEunuuchs2Unix
        Jun 17 at 23:10














        @LucyC After rebooting into Ubuntu 18.40 I was shocked to learn under the Gnome interface the setting isn't retained. On searching for a solution I found a duplicate question with an accepted answer so voted to close your question as a duplicate. So now I'll boot back into 16.04 which just works :)
        – WinEunuuchs2Unix
        Jun 17 at 23:20




        @LucyC After rebooting into Ubuntu 18.40 I was shocked to learn under the Gnome interface the setting isn't retained. On searching for a solution I found a duplicate question with an accepted answer so voted to close your question as a duplicate. So now I'll boot back into 16.04 which just works :)
        – WinEunuuchs2Unix
        Jun 17 at 23:20












        up vote
        4
        down vote













        Well, I have a suggession. I think most of the people will try to make the devices to remember the state of the previous shutdown. Thus if wifi/bluetooth is turned off/on before the previous shutdown, then after rebooting, wifi/bluetooth remains off/on according the previous state.



        To do this, go to the file /etc/default/tlp and search for the line




        RESTORE_DEVICE_STATE_ON_STARTUP=0




        This is set as "0" by default, which means that remembering the state of radio is disabled by default. To make it remember the previous state, replace "0" with "1".
        If you set this as "1", the lines after that will not be read by the system.



        If you specifically wants to set some radio to be on or off at start up, then follow the lines




        #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"




        and




        #DEVICES_TO_ENABLE_ON_STARTUP="bluetooth wifi wwan"




        and remove the '#' to activate any of those line. And you can choose between bluetooth/wifi/wwan or all of them.



        Do as you need.






        share|improve this answer

























          up vote
          4
          down vote













          Well, I have a suggession. I think most of the people will try to make the devices to remember the state of the previous shutdown. Thus if wifi/bluetooth is turned off/on before the previous shutdown, then after rebooting, wifi/bluetooth remains off/on according the previous state.



          To do this, go to the file /etc/default/tlp and search for the line




          RESTORE_DEVICE_STATE_ON_STARTUP=0




          This is set as "0" by default, which means that remembering the state of radio is disabled by default. To make it remember the previous state, replace "0" with "1".
          If you set this as "1", the lines after that will not be read by the system.



          If you specifically wants to set some radio to be on or off at start up, then follow the lines




          #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"




          and




          #DEVICES_TO_ENABLE_ON_STARTUP="bluetooth wifi wwan"




          and remove the '#' to activate any of those line. And you can choose between bluetooth/wifi/wwan or all of them.



          Do as you need.






          share|improve this answer























            up vote
            4
            down vote










            up vote
            4
            down vote









            Well, I have a suggession. I think most of the people will try to make the devices to remember the state of the previous shutdown. Thus if wifi/bluetooth is turned off/on before the previous shutdown, then after rebooting, wifi/bluetooth remains off/on according the previous state.



            To do this, go to the file /etc/default/tlp and search for the line




            RESTORE_DEVICE_STATE_ON_STARTUP=0




            This is set as "0" by default, which means that remembering the state of radio is disabled by default. To make it remember the previous state, replace "0" with "1".
            If you set this as "1", the lines after that will not be read by the system.



            If you specifically wants to set some radio to be on or off at start up, then follow the lines




            #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"




            and




            #DEVICES_TO_ENABLE_ON_STARTUP="bluetooth wifi wwan"




            and remove the '#' to activate any of those line. And you can choose between bluetooth/wifi/wwan or all of them.



            Do as you need.






            share|improve this answer












            Well, I have a suggession. I think most of the people will try to make the devices to remember the state of the previous shutdown. Thus if wifi/bluetooth is turned off/on before the previous shutdown, then after rebooting, wifi/bluetooth remains off/on according the previous state.



            To do this, go to the file /etc/default/tlp and search for the line




            RESTORE_DEVICE_STATE_ON_STARTUP=0




            This is set as "0" by default, which means that remembering the state of radio is disabled by default. To make it remember the previous state, replace "0" with "1".
            If you set this as "1", the lines after that will not be read by the system.



            If you specifically wants to set some radio to be on or off at start up, then follow the lines




            #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"




            and




            #DEVICES_TO_ENABLE_ON_STARTUP="bluetooth wifi wwan"




            and remove the '#' to activate any of those line. And you can choose between bluetooth/wifi/wwan or all of them.



            Do as you need.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 2 at 17:55









            Surajit

            716




            716






















                up vote
                1
                down vote













                I have a workaround for your case...



                I'm using Ubuntu Mate 18.04, in my case I just click on "MENU/Preferences/Startup Applications".
                A window called "Startup Applications Preferences" pops up. Find the entry called "Blueman Applet" and remove the tick/tag from it so that it becomes disabled (grayed out). As a result, all the applications related with Bluetooth will not load the next time(s) you boot up your system.



                The annoying part is that you will have to reverse this procedure and reboot to get bluetooth back to work in case you need it.



                Hope this helps
                JaMedSyS






                share|improve this answer

























                  up vote
                  1
                  down vote













                  I have a workaround for your case...



                  I'm using Ubuntu Mate 18.04, in my case I just click on "MENU/Preferences/Startup Applications".
                  A window called "Startup Applications Preferences" pops up. Find the entry called "Blueman Applet" and remove the tick/tag from it so that it becomes disabled (grayed out). As a result, all the applications related with Bluetooth will not load the next time(s) you boot up your system.



                  The annoying part is that you will have to reverse this procedure and reboot to get bluetooth back to work in case you need it.



                  Hope this helps
                  JaMedSyS






                  share|improve this answer























                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    I have a workaround for your case...



                    I'm using Ubuntu Mate 18.04, in my case I just click on "MENU/Preferences/Startup Applications".
                    A window called "Startup Applications Preferences" pops up. Find the entry called "Blueman Applet" and remove the tick/tag from it so that it becomes disabled (grayed out). As a result, all the applications related with Bluetooth will not load the next time(s) you boot up your system.



                    The annoying part is that you will have to reverse this procedure and reboot to get bluetooth back to work in case you need it.



                    Hope this helps
                    JaMedSyS






                    share|improve this answer












                    I have a workaround for your case...



                    I'm using Ubuntu Mate 18.04, in my case I just click on "MENU/Preferences/Startup Applications".
                    A window called "Startup Applications Preferences" pops up. Find the entry called "Blueman Applet" and remove the tick/tag from it so that it becomes disabled (grayed out). As a result, all the applications related with Bluetooth will not load the next time(s) you boot up your system.



                    The annoying part is that you will have to reverse this procedure and reboot to get bluetooth back to work in case you need it.



                    Hope this helps
                    JaMedSyS







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 30 at 17:02









                    JamMedSyS

                    114




                    114






















                        up vote
                        0
                        down vote













                        the rc.local way appears right to me, yet I'd do it slightly different:



                        sudo nano /etc/rc.local



                        either the file is empty - it has just been created by you - or not, edit it to look like this:




                        #!/bin/sh



                        rfkill block bluetooth



                        exit 0




                        the first and last lines are important.






                        share|improve this answer

























                          up vote
                          0
                          down vote













                          the rc.local way appears right to me, yet I'd do it slightly different:



                          sudo nano /etc/rc.local



                          either the file is empty - it has just been created by you - or not, edit it to look like this:




                          #!/bin/sh



                          rfkill block bluetooth



                          exit 0




                          the first and last lines are important.






                          share|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            the rc.local way appears right to me, yet I'd do it slightly different:



                            sudo nano /etc/rc.local



                            either the file is empty - it has just been created by you - or not, edit it to look like this:




                            #!/bin/sh



                            rfkill block bluetooth



                            exit 0




                            the first and last lines are important.






                            share|improve this answer












                            the rc.local way appears right to me, yet I'd do it slightly different:



                            sudo nano /etc/rc.local



                            either the file is empty - it has just been created by you - or not, edit it to look like this:




                            #!/bin/sh



                            rfkill block bluetooth



                            exit 0




                            the first and last lines are important.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 30 at 20:14









                            db429

                            1,336517




                            1,336517






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1047018%2fhow-can-i-set-bluetooth-off-as-default%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                How did Captain America manage to do this?

                                迪纳利

                                南乌拉尔铁路局