Ubuntu 12.04 - how to do power off and power on of USB interfaces?












2















Like FreeBSD how can i do Ubuntu 12.04 USB interface power off and power on? Is there any packages or source codes for Ubuntu?



 usbconfig -u 1 -a 2 suspend
usbconfig -u 1 -a 2 resume
usbconfig -u 1 -a 2 power_off
usbconfig -u 1 -a 2 power_save
usbconfig -u 1 -a 2 power_on

# Find usb devices
$ cat /sys/bus/usb/devices/usb*/product
EHCI Host Controller
EHCI Host Controller
xHCI Host Controller
xHCI Host Controller

# disable external wake-up; do this only once
echo disabled > /sys/bus/usb/devices/usb1/power/wakeup
echo on > /sys/bus/usb/devices/usb1/power/level # turn on
echo suspend > /sys/bus/usb/devices/usb1/power/level # turn off


[29001.554561] WARNING! power/level is deprecated; use power/control instead









share|improve this question
















bumped to the homepage by Community yesterday


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




















    2















    Like FreeBSD how can i do Ubuntu 12.04 USB interface power off and power on? Is there any packages or source codes for Ubuntu?



     usbconfig -u 1 -a 2 suspend
    usbconfig -u 1 -a 2 resume
    usbconfig -u 1 -a 2 power_off
    usbconfig -u 1 -a 2 power_save
    usbconfig -u 1 -a 2 power_on

    # Find usb devices
    $ cat /sys/bus/usb/devices/usb*/product
    EHCI Host Controller
    EHCI Host Controller
    xHCI Host Controller
    xHCI Host Controller

    # disable external wake-up; do this only once
    echo disabled > /sys/bus/usb/devices/usb1/power/wakeup
    echo on > /sys/bus/usb/devices/usb1/power/level # turn on
    echo suspend > /sys/bus/usb/devices/usb1/power/level # turn off


    [29001.554561] WARNING! power/level is deprecated; use power/control instead









    share|improve this question
















    bumped to the homepage by Community yesterday


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


















      2












      2








      2


      1






      Like FreeBSD how can i do Ubuntu 12.04 USB interface power off and power on? Is there any packages or source codes for Ubuntu?



       usbconfig -u 1 -a 2 suspend
      usbconfig -u 1 -a 2 resume
      usbconfig -u 1 -a 2 power_off
      usbconfig -u 1 -a 2 power_save
      usbconfig -u 1 -a 2 power_on

      # Find usb devices
      $ cat /sys/bus/usb/devices/usb*/product
      EHCI Host Controller
      EHCI Host Controller
      xHCI Host Controller
      xHCI Host Controller

      # disable external wake-up; do this only once
      echo disabled > /sys/bus/usb/devices/usb1/power/wakeup
      echo on > /sys/bus/usb/devices/usb1/power/level # turn on
      echo suspend > /sys/bus/usb/devices/usb1/power/level # turn off


      [29001.554561] WARNING! power/level is deprecated; use power/control instead









      share|improve this question
















      Like FreeBSD how can i do Ubuntu 12.04 USB interface power off and power on? Is there any packages or source codes for Ubuntu?



       usbconfig -u 1 -a 2 suspend
      usbconfig -u 1 -a 2 resume
      usbconfig -u 1 -a 2 power_off
      usbconfig -u 1 -a 2 power_save
      usbconfig -u 1 -a 2 power_on

      # Find usb devices
      $ cat /sys/bus/usb/devices/usb*/product
      EHCI Host Controller
      EHCI Host Controller
      xHCI Host Controller
      xHCI Host Controller

      # disable external wake-up; do this only once
      echo disabled > /sys/bus/usb/devices/usb1/power/wakeup
      echo on > /sys/bus/usb/devices/usb1/power/level # turn on
      echo suspend > /sys/bus/usb/devices/usb1/power/level # turn off


      [29001.554561] WARNING! power/level is deprecated; use power/control instead






      12.04 drivers usb package-management camera






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 14 '13 at 14:34







      YumYumYum

















      asked Aug 14 '13 at 14:18









      YumYumYumYumYumYum

      4,5223286133




      4,5223286133





      bumped to the homepage by Community yesterday


      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 yesterday


      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














          As of the 2.6.35 kernel, the level file is depreciated and now replaced by control.



          The auto state is the normal state in which the kernel is allowed to autosuspend and autoresume the device.
          In kernels up to 2.6.32, one could also specify suspend, meaning that the device should remain suspended and autoresume was not allowed. This setting is no longer supported.



          More details can be found in the current Power management for USB kernel documentation.






          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',
            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%2f332523%2fubuntu-12-04-how-to-do-power-off-and-power-on-of-usb-interfaces%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














            As of the 2.6.35 kernel, the level file is depreciated and now replaced by control.



            The auto state is the normal state in which the kernel is allowed to autosuspend and autoresume the device.
            In kernels up to 2.6.32, one could also specify suspend, meaning that the device should remain suspended and autoresume was not allowed. This setting is no longer supported.



            More details can be found in the current Power management for USB kernel documentation.






            share|improve this answer




























              0














              As of the 2.6.35 kernel, the level file is depreciated and now replaced by control.



              The auto state is the normal state in which the kernel is allowed to autosuspend and autoresume the device.
              In kernels up to 2.6.32, one could also specify suspend, meaning that the device should remain suspended and autoresume was not allowed. This setting is no longer supported.



              More details can be found in the current Power management for USB kernel documentation.






              share|improve this answer


























                0












                0








                0







                As of the 2.6.35 kernel, the level file is depreciated and now replaced by control.



                The auto state is the normal state in which the kernel is allowed to autosuspend and autoresume the device.
                In kernels up to 2.6.32, one could also specify suspend, meaning that the device should remain suspended and autoresume was not allowed. This setting is no longer supported.



                More details can be found in the current Power management for USB kernel documentation.






                share|improve this answer













                As of the 2.6.35 kernel, the level file is depreciated and now replaced by control.



                The auto state is the normal state in which the kernel is allowed to autosuspend and autoresume the device.
                In kernels up to 2.6.32, one could also specify suspend, meaning that the device should remain suspended and autoresume was not allowed. This setting is no longer supported.



                More details can be found in the current Power management for USB kernel documentation.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 3 '15 at 20:28









                Serge StroobandtSerge Stroobandt

                2,0921933




                2,0921933






























                    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%2f332523%2fubuntu-12-04-how-to-do-power-off-and-power-on-of-usb-interfaces%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

                    Category:香港粉麵

                    List *all* the tuples!

                    Channel [V]