rfkill unblock bluetooth is timing outStart and stop bluetooth service automatically as rfkill switch...

Suppose leased car is totalled: what are financial implications?

The significance of kelvin as a unit of absolute temperature

Extracting data from Plot

Is Dumbledore a human lie detector?

If I had a daughter who (is/were/was) cute, I would be very happy

Assigning function to function pointer, const argument correctness?

How to befriend someone who doesn't like to talk?

What is the reason for setting flaps 1 on the ground at high temperatures?

Use 1 9 6 2 in this order to make 75

How can one's career as a reviewer be ended?

Why would a home insurer offer a discount based on credit score?

If absolute velocity does not exist, how can we say a rocket accelerates in empty space?

Should I put programming books I wrote a few years ago on my resume?

How many sets of dice do I need for D&D?

Combinatorics problem 25 students problem

Make Gimbap cutter

What would be the way to say "just saying" in German? (Not the literal translation)

What plausible reason could I give for my FTL drive only working in space

What are the unintended or dangerous consequences of allowing spells that target and damage creatures to also target and damage objects?

Generate certain list from two lists

Is Jesus the last Prophet?

Part of my house is inexplicably gone

Grandpa has another non math question

What is the Leave No Trace way to dispose of coffee grounds?



rfkill unblock bluetooth is timing out


Start and stop bluetooth service automatically as rfkill switch changesLow-level bluetooth utilityBluetooth manager window won't opentimout command is not timing outLaggy, hanging, unstable bluetooth keyboard with Linux onlyTiming out in scripts with usbmountBluetooth A2DP : getting current bitpoolHow to install bluetooth?Youtube sound cutting out when using bluetooth headphones on FedoraPL2303/PL2303X USB-Serial driver






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I'm creating a Bluetooth script that controls every aspect of the Bluetooth experience with headphones.



As part of this I want to reset the Bluetooth adapter. I'm using:



rfkill block bluetooth
rfkill unblock bluetooth


This should toggle and it does work, just not every time. There is also no pattern to when it doesn't work. Sometimes (and often about 60% of the time) it times out.



Checking the logs reveal:



GOOD CASE :



Product: Bluetooth USB Host Controller
Manufacturer: Atheros Communications
SerialNumber: Alaska Day 2006
Adapter /org/bluez/4100/hci0 has been enabled
Endpoint registered: sender=:1.25 path=/MediaEndpoint/HFPAG
Endpoint registered: sender=:1.25 path=/MediaEndpoint/HFPHS
Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource
Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink


BAD CASE (WHEN IT TIMES OUT) :



Product: Bluetooth USB Host Controller
Manufacturer: Atheros Communications
SerialNumber: Alaska Day 2006
Bluetooth: hci0 command 0x1003 tx timeout
Bluetooth: hci0 command 0x1001 tx timeout


Is there some way I can increase this timeout, failing that using BASH, check for the timeout, and in a loop - just keep retrying till it works - because eventually it does, if the adapter is completely reset again using rfkill block.










share|improve this question
















bumped to the homepage by Community 51 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    I'm creating a Bluetooth script that controls every aspect of the Bluetooth experience with headphones.



    As part of this I want to reset the Bluetooth adapter. I'm using:



    rfkill block bluetooth
    rfkill unblock bluetooth


    This should toggle and it does work, just not every time. There is also no pattern to when it doesn't work. Sometimes (and often about 60% of the time) it times out.



    Checking the logs reveal:



    GOOD CASE :



    Product: Bluetooth USB Host Controller
    Manufacturer: Atheros Communications
    SerialNumber: Alaska Day 2006
    Adapter /org/bluez/4100/hci0 has been enabled
    Endpoint registered: sender=:1.25 path=/MediaEndpoint/HFPAG
    Endpoint registered: sender=:1.25 path=/MediaEndpoint/HFPHS
    Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource
    Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink


    BAD CASE (WHEN IT TIMES OUT) :



    Product: Bluetooth USB Host Controller
    Manufacturer: Atheros Communications
    SerialNumber: Alaska Day 2006
    Bluetooth: hci0 command 0x1003 tx timeout
    Bluetooth: hci0 command 0x1001 tx timeout


    Is there some way I can increase this timeout, failing that using BASH, check for the timeout, and in a loop - just keep retrying till it works - because eventually it does, if the adapter is completely reset again using rfkill block.










    share|improve this question
















    bumped to the homepage by Community 51 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I'm creating a Bluetooth script that controls every aspect of the Bluetooth experience with headphones.



      As part of this I want to reset the Bluetooth adapter. I'm using:



      rfkill block bluetooth
      rfkill unblock bluetooth


      This should toggle and it does work, just not every time. There is also no pattern to when it doesn't work. Sometimes (and often about 60% of the time) it times out.



      Checking the logs reveal:



      GOOD CASE :



      Product: Bluetooth USB Host Controller
      Manufacturer: Atheros Communications
      SerialNumber: Alaska Day 2006
      Adapter /org/bluez/4100/hci0 has been enabled
      Endpoint registered: sender=:1.25 path=/MediaEndpoint/HFPAG
      Endpoint registered: sender=:1.25 path=/MediaEndpoint/HFPHS
      Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource
      Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink


      BAD CASE (WHEN IT TIMES OUT) :



      Product: Bluetooth USB Host Controller
      Manufacturer: Atheros Communications
      SerialNumber: Alaska Day 2006
      Bluetooth: hci0 command 0x1003 tx timeout
      Bluetooth: hci0 command 0x1001 tx timeout


      Is there some way I can increase this timeout, failing that using BASH, check for the timeout, and in a loop - just keep retrying till it works - because eventually it does, if the adapter is completely reset again using rfkill block.










      share|improve this question
















      I'm creating a Bluetooth script that controls every aspect of the Bluetooth experience with headphones.



      As part of this I want to reset the Bluetooth adapter. I'm using:



      rfkill block bluetooth
      rfkill unblock bluetooth


      This should toggle and it does work, just not every time. There is also no pattern to when it doesn't work. Sometimes (and often about 60% of the time) it times out.



      Checking the logs reveal:



      GOOD CASE :



      Product: Bluetooth USB Host Controller
      Manufacturer: Atheros Communications
      SerialNumber: Alaska Day 2006
      Adapter /org/bluez/4100/hci0 has been enabled
      Endpoint registered: sender=:1.25 path=/MediaEndpoint/HFPAG
      Endpoint registered: sender=:1.25 path=/MediaEndpoint/HFPHS
      Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource
      Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink


      BAD CASE (WHEN IT TIMES OUT) :



      Product: Bluetooth USB Host Controller
      Manufacturer: Atheros Communications
      SerialNumber: Alaska Day 2006
      Bluetooth: hci0 command 0x1003 tx timeout
      Bluetooth: hci0 command 0x1001 tx timeout


      Is there some way I can increase this timeout, failing that using BASH, check for the timeout, and in a loop - just keep retrying till it works - because eventually it does, if the adapter is completely reset again using rfkill block.







      linux bash bluetooth






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 13 '13 at 8:22









      Anthon

      62.7k17110173




      62.7k17110173










      asked Sep 12 '13 at 10:15









      JL.JL.

      20638




      20638





      bumped to the homepage by Community 51 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 51 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Why not add a sleep statement between the 2 rfkill commands.



          rfkill block bluetooth
          sleep 5
          rfkill unblock bluetooth


          This is in seconds, adjust and see if it helps.






          share|improve this answer
























          • sleep is good for when it's scripted, but the unblock operation still times out.

            – JL.
            Sep 13 '13 at 11:20












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f90368%2frfkill-unblock-bluetooth-is-timing-out%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









          0














          Why not add a sleep statement between the 2 rfkill commands.



          rfkill block bluetooth
          sleep 5
          rfkill unblock bluetooth


          This is in seconds, adjust and see if it helps.






          share|improve this answer
























          • sleep is good for when it's scripted, but the unblock operation still times out.

            – JL.
            Sep 13 '13 at 11:20
















          0














          Why not add a sleep statement between the 2 rfkill commands.



          rfkill block bluetooth
          sleep 5
          rfkill unblock bluetooth


          This is in seconds, adjust and see if it helps.






          share|improve this answer
























          • sleep is good for when it's scripted, but the unblock operation still times out.

            – JL.
            Sep 13 '13 at 11:20














          0












          0








          0







          Why not add a sleep statement between the 2 rfkill commands.



          rfkill block bluetooth
          sleep 5
          rfkill unblock bluetooth


          This is in seconds, adjust and see if it helps.






          share|improve this answer













          Why not add a sleep statement between the 2 rfkill commands.



          rfkill block bluetooth
          sleep 5
          rfkill unblock bluetooth


          This is in seconds, adjust and see if it helps.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 12 '13 at 12:46









          slmslm

          260k72559707




          260k72559707













          • sleep is good for when it's scripted, but the unblock operation still times out.

            – JL.
            Sep 13 '13 at 11:20



















          • sleep is good for when it's scripted, but the unblock operation still times out.

            – JL.
            Sep 13 '13 at 11:20

















          sleep is good for when it's scripted, but the unblock operation still times out.

          – JL.
          Sep 13 '13 at 11:20





          sleep is good for when it's scripted, but the unblock operation still times out.

          – JL.
          Sep 13 '13 at 11:20


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f90368%2frfkill-unblock-bluetooth-is-timing-out%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...