Easier way to connect to Bluetooth device












2















I have a laptop running Ubuntu 18.04 which is paired with an external Bluetooth speaker. It takes me seven mouse clicks to connect to this speaker (such as when the laptop has been outside range of the speaker).




  1. Click upper right corner of screen

  2. Click Bluetooth icon

  3. Click Bluetooth Settings

  4. Click device name

  5. Click Connection

  6. Click window close

  7. Click window close


Is there a way to connect to a USB device in fewer steps than this?










share|improve this question



























    2















    I have a laptop running Ubuntu 18.04 which is paired with an external Bluetooth speaker. It takes me seven mouse clicks to connect to this speaker (such as when the laptop has been outside range of the speaker).




    1. Click upper right corner of screen

    2. Click Bluetooth icon

    3. Click Bluetooth Settings

    4. Click device name

    5. Click Connection

    6. Click window close

    7. Click window close


    Is there a way to connect to a USB device in fewer steps than this?










    share|improve this question

























      2












      2








      2








      I have a laptop running Ubuntu 18.04 which is paired with an external Bluetooth speaker. It takes me seven mouse clicks to connect to this speaker (such as when the laptop has been outside range of the speaker).




      1. Click upper right corner of screen

      2. Click Bluetooth icon

      3. Click Bluetooth Settings

      4. Click device name

      5. Click Connection

      6. Click window close

      7. Click window close


      Is there a way to connect to a USB device in fewer steps than this?










      share|improve this question














      I have a laptop running Ubuntu 18.04 which is paired with an external Bluetooth speaker. It takes me seven mouse clicks to connect to this speaker (such as when the laptop has been outside range of the speaker).




      1. Click upper right corner of screen

      2. Click Bluetooth icon

      3. Click Bluetooth Settings

      4. Click device name

      5. Click Connection

      6. Click window close

      7. Click window close


      Is there a way to connect to a USB device in fewer steps than this?







      18.04 bluetooth






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 23 at 14:38









      kasperdkasperd

      1,04811132




      1,04811132






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Take a look at a similar question/answer here.



          First, the MAC Address of the Bluetooth device is needed. You can find it by running the following commands:




          1. sudo systemctl start bluetooth


          2. bluetoothctl (a new bash prompt "[bluetooth]#" will be visible after running this command)

          3. devices

          4. Look for the MAC Address of your Bluetooth device by searching through the names of the device listed, assuming the device is powered on and visible.


          Finally, run the following commands which start the Bluetooth service and passes the commands through the echo program. These two commands are what you need to connect to your bluetooth device over the terminal.




          1. sudo systemctl start bluetooth

          2. echo -e 'echo -e 'connect YOUR_DEVICE_MAC_ADDRESS nquit' | bluetoothctl


          This can be put in a bash script and the bash script can be automated to run upon startup.






          share|improve this answer


























          • Just typing bluetoothctl was sufficient to find the MAC address (at least if the device is already connected). And echo "connect $DEVICE_MAC" | bluetoothctl was sufficient to establish a connection when not currently connected. So scripting it would work. Running the script on startup is not useful for me. But calling the script from a hotkey should work.

            – kasperd
            Jan 23 at 16:12






          • 1





            Though I didn't use this answer exactly the way it was written. It still gave me the information I needed to create a hotkey to achieve the desired effect.

            – kasperd
            Jan 23 at 16:22











          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',
          autoActivateHeartbeat: false,
          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%2f1112259%2feasier-way-to-connect-to-bluetooth-device%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Take a look at a similar question/answer here.



          First, the MAC Address of the Bluetooth device is needed. You can find it by running the following commands:




          1. sudo systemctl start bluetooth


          2. bluetoothctl (a new bash prompt "[bluetooth]#" will be visible after running this command)

          3. devices

          4. Look for the MAC Address of your Bluetooth device by searching through the names of the device listed, assuming the device is powered on and visible.


          Finally, run the following commands which start the Bluetooth service and passes the commands through the echo program. These two commands are what you need to connect to your bluetooth device over the terminal.




          1. sudo systemctl start bluetooth

          2. echo -e 'echo -e 'connect YOUR_DEVICE_MAC_ADDRESS nquit' | bluetoothctl


          This can be put in a bash script and the bash script can be automated to run upon startup.






          share|improve this answer


























          • Just typing bluetoothctl was sufficient to find the MAC address (at least if the device is already connected). And echo "connect $DEVICE_MAC" | bluetoothctl was sufficient to establish a connection when not currently connected. So scripting it would work. Running the script on startup is not useful for me. But calling the script from a hotkey should work.

            – kasperd
            Jan 23 at 16:12






          • 1





            Though I didn't use this answer exactly the way it was written. It still gave me the information I needed to create a hotkey to achieve the desired effect.

            – kasperd
            Jan 23 at 16:22
















          1














          Take a look at a similar question/answer here.



          First, the MAC Address of the Bluetooth device is needed. You can find it by running the following commands:




          1. sudo systemctl start bluetooth


          2. bluetoothctl (a new bash prompt "[bluetooth]#" will be visible after running this command)

          3. devices

          4. Look for the MAC Address of your Bluetooth device by searching through the names of the device listed, assuming the device is powered on and visible.


          Finally, run the following commands which start the Bluetooth service and passes the commands through the echo program. These two commands are what you need to connect to your bluetooth device over the terminal.




          1. sudo systemctl start bluetooth

          2. echo -e 'echo -e 'connect YOUR_DEVICE_MAC_ADDRESS nquit' | bluetoothctl


          This can be put in a bash script and the bash script can be automated to run upon startup.






          share|improve this answer


























          • Just typing bluetoothctl was sufficient to find the MAC address (at least if the device is already connected). And echo "connect $DEVICE_MAC" | bluetoothctl was sufficient to establish a connection when not currently connected. So scripting it would work. Running the script on startup is not useful for me. But calling the script from a hotkey should work.

            – kasperd
            Jan 23 at 16:12






          • 1





            Though I didn't use this answer exactly the way it was written. It still gave me the information I needed to create a hotkey to achieve the desired effect.

            – kasperd
            Jan 23 at 16:22














          1












          1








          1







          Take a look at a similar question/answer here.



          First, the MAC Address of the Bluetooth device is needed. You can find it by running the following commands:




          1. sudo systemctl start bluetooth


          2. bluetoothctl (a new bash prompt "[bluetooth]#" will be visible after running this command)

          3. devices

          4. Look for the MAC Address of your Bluetooth device by searching through the names of the device listed, assuming the device is powered on and visible.


          Finally, run the following commands which start the Bluetooth service and passes the commands through the echo program. These two commands are what you need to connect to your bluetooth device over the terminal.




          1. sudo systemctl start bluetooth

          2. echo -e 'echo -e 'connect YOUR_DEVICE_MAC_ADDRESS nquit' | bluetoothctl


          This can be put in a bash script and the bash script can be automated to run upon startup.






          share|improve this answer















          Take a look at a similar question/answer here.



          First, the MAC Address of the Bluetooth device is needed. You can find it by running the following commands:




          1. sudo systemctl start bluetooth


          2. bluetoothctl (a new bash prompt "[bluetooth]#" will be visible after running this command)

          3. devices

          4. Look for the MAC Address of your Bluetooth device by searching through the names of the device listed, assuming the device is powered on and visible.


          Finally, run the following commands which start the Bluetooth service and passes the commands through the echo program. These two commands are what you need to connect to your bluetooth device over the terminal.




          1. sudo systemctl start bluetooth

          2. echo -e 'echo -e 'connect YOUR_DEVICE_MAC_ADDRESS nquit' | bluetoothctl


          This can be put in a bash script and the bash script can be automated to run upon startup.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 23 at 15:55

























          answered Jan 23 at 15:43









          PSAPSA

          1117




          1117













          • Just typing bluetoothctl was sufficient to find the MAC address (at least if the device is already connected). And echo "connect $DEVICE_MAC" | bluetoothctl was sufficient to establish a connection when not currently connected. So scripting it would work. Running the script on startup is not useful for me. But calling the script from a hotkey should work.

            – kasperd
            Jan 23 at 16:12






          • 1





            Though I didn't use this answer exactly the way it was written. It still gave me the information I needed to create a hotkey to achieve the desired effect.

            – kasperd
            Jan 23 at 16:22



















          • Just typing bluetoothctl was sufficient to find the MAC address (at least if the device is already connected). And echo "connect $DEVICE_MAC" | bluetoothctl was sufficient to establish a connection when not currently connected. So scripting it would work. Running the script on startup is not useful for me. But calling the script from a hotkey should work.

            – kasperd
            Jan 23 at 16:12






          • 1





            Though I didn't use this answer exactly the way it was written. It still gave me the information I needed to create a hotkey to achieve the desired effect.

            – kasperd
            Jan 23 at 16:22

















          Just typing bluetoothctl was sufficient to find the MAC address (at least if the device is already connected). And echo "connect $DEVICE_MAC" | bluetoothctl was sufficient to establish a connection when not currently connected. So scripting it would work. Running the script on startup is not useful for me. But calling the script from a hotkey should work.

          – kasperd
          Jan 23 at 16:12





          Just typing bluetoothctl was sufficient to find the MAC address (at least if the device is already connected). And echo "connect $DEVICE_MAC" | bluetoothctl was sufficient to establish a connection when not currently connected. So scripting it would work. Running the script on startup is not useful for me. But calling the script from a hotkey should work.

          – kasperd
          Jan 23 at 16:12




          1




          1





          Though I didn't use this answer exactly the way it was written. It still gave me the information I needed to create a hotkey to achieve the desired effect.

          – kasperd
          Jan 23 at 16:22





          Though I didn't use this answer exactly the way it was written. It still gave me the information I needed to create a hotkey to achieve the desired effect.

          – kasperd
          Jan 23 at 16:22


















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1112259%2feasier-way-to-connect-to-bluetooth-device%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 to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?