Some USB devices will automatically reconnect after I unbind it, how to disable it long time?












1















I'm trying to disable my two USB keyboard on my linux system, the first one can unbind long time until I unplug then plugin and the number lock light is off during this time. But the other one can not unbind long time, maybe after 5 seconds, it will reconnect again and the number lock light is on during this time, the other lights will flash once, the log shown below:



[505545.210490] usb 3-3.1: USB disconnect, device number 47
[505547.687005] usb 3-3.1: new low-speed USB device number 49 using xhci_hcd
[505547.984255] usb 3-3.1: New USB device found, idVendor=17ef, idProduct=6099
[505547.984258] usb 3-3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[505547.984260] usb 3-3.1: Product: Lenovo Traditional USB Keyboard
[505548.019948] input: Lenovo Traditional USB Keyboard as /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-3/3-3.1/3-3.1:1.0/input/input40
[505548.071999] hid-generic 0003:17EF:6099.002A: input,hidraw1: USB HID v1.10 Keyboard [Lenovo Traditional USB Keyboard] on usb-0000:03:00.0-3.1/input0


Below is my shell command to disable the keyboard:



echo "3-3.1"  > /sys/bus/usb/drivers/usb/unbind


or



echo "0003:17EF:6099.002A" > /sys/bus/hid/drivers/hid-generic/unbind


What is the reason for this difference? Is there a way to disable the second keyboard for a longer time?









share









New contributor




Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1















    I'm trying to disable my two USB keyboard on my linux system, the first one can unbind long time until I unplug then plugin and the number lock light is off during this time. But the other one can not unbind long time, maybe after 5 seconds, it will reconnect again and the number lock light is on during this time, the other lights will flash once, the log shown below:



    [505545.210490] usb 3-3.1: USB disconnect, device number 47
    [505547.687005] usb 3-3.1: new low-speed USB device number 49 using xhci_hcd
    [505547.984255] usb 3-3.1: New USB device found, idVendor=17ef, idProduct=6099
    [505547.984258] usb 3-3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [505547.984260] usb 3-3.1: Product: Lenovo Traditional USB Keyboard
    [505548.019948] input: Lenovo Traditional USB Keyboard as /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-3/3-3.1/3-3.1:1.0/input/input40
    [505548.071999] hid-generic 0003:17EF:6099.002A: input,hidraw1: USB HID v1.10 Keyboard [Lenovo Traditional USB Keyboard] on usb-0000:03:00.0-3.1/input0


    Below is my shell command to disable the keyboard:



    echo "3-3.1"  > /sys/bus/usb/drivers/usb/unbind


    or



    echo "0003:17EF:6099.002A" > /sys/bus/hid/drivers/hid-generic/unbind


    What is the reason for this difference? Is there a way to disable the second keyboard for a longer time?









    share









    New contributor




    Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      I'm trying to disable my two USB keyboard on my linux system, the first one can unbind long time until I unplug then plugin and the number lock light is off during this time. But the other one can not unbind long time, maybe after 5 seconds, it will reconnect again and the number lock light is on during this time, the other lights will flash once, the log shown below:



      [505545.210490] usb 3-3.1: USB disconnect, device number 47
      [505547.687005] usb 3-3.1: new low-speed USB device number 49 using xhci_hcd
      [505547.984255] usb 3-3.1: New USB device found, idVendor=17ef, idProduct=6099
      [505547.984258] usb 3-3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
      [505547.984260] usb 3-3.1: Product: Lenovo Traditional USB Keyboard
      [505548.019948] input: Lenovo Traditional USB Keyboard as /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-3/3-3.1/3-3.1:1.0/input/input40
      [505548.071999] hid-generic 0003:17EF:6099.002A: input,hidraw1: USB HID v1.10 Keyboard [Lenovo Traditional USB Keyboard] on usb-0000:03:00.0-3.1/input0


      Below is my shell command to disable the keyboard:



      echo "3-3.1"  > /sys/bus/usb/drivers/usb/unbind


      or



      echo "0003:17EF:6099.002A" > /sys/bus/hid/drivers/hid-generic/unbind


      What is the reason for this difference? Is there a way to disable the second keyboard for a longer time?









      share









      New contributor




      Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm trying to disable my two USB keyboard on my linux system, the first one can unbind long time until I unplug then plugin and the number lock light is off during this time. But the other one can not unbind long time, maybe after 5 seconds, it will reconnect again and the number lock light is on during this time, the other lights will flash once, the log shown below:



      [505545.210490] usb 3-3.1: USB disconnect, device number 47
      [505547.687005] usb 3-3.1: new low-speed USB device number 49 using xhci_hcd
      [505547.984255] usb 3-3.1: New USB device found, idVendor=17ef, idProduct=6099
      [505547.984258] usb 3-3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
      [505547.984260] usb 3-3.1: Product: Lenovo Traditional USB Keyboard
      [505548.019948] input: Lenovo Traditional USB Keyboard as /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-3/3-3.1/3-3.1:1.0/input/input40
      [505548.071999] hid-generic 0003:17EF:6099.002A: input,hidraw1: USB HID v1.10 Keyboard [Lenovo Traditional USB Keyboard] on usb-0000:03:00.0-3.1/input0


      Below is my shell command to disable the keyboard:



      echo "3-3.1"  > /sys/bus/usb/drivers/usb/unbind


      or



      echo "0003:17EF:6099.002A" > /sys/bus/hid/drivers/hid-generic/unbind


      What is the reason for this difference? Is there a way to disable the second keyboard for a longer time?







      linux usb keyboard sysfs





      share









      New contributor




      Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share









      New contributor




      Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share








      edited 6 mins ago









      Rui F Ribeiro

      41.8k1483142




      41.8k1483142






      New contributor




      Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 9 mins ago









      Hongyu.ZhangHongyu.Zhang

      61




      61




      New contributor




      Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Hongyu.Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          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
          });


          }
          });






          Hongyu.Zhang is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509351%2fsome-usb-devices-will-automatically-reconnect-after-i-unbind-it-how-to-disable%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Hongyu.Zhang is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Hongyu.Zhang is a new contributor. Be nice, and check out our Code of Conduct.













          Hongyu.Zhang is a new contributor. Be nice, and check out our Code of Conduct.












          Hongyu.Zhang is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f509351%2fsome-usb-devices-will-automatically-reconnect-after-i-unbind-it-how-to-disable%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

          CARDNET

          Boot-repair Failure: Unable to locate package grub-common:i386

          Aws NAT - Aws IGW- Aws router