Linux USB: turning the power on and off?

后端 未结 13 1385
遥遥无期
遥遥无期 2020-12-07 10:41

How can I programmatically enable and disable the power to a particular USB port on Linux? Is such a thing even possible? Mac answers appreciated as well!

I was tryi

13条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 10:57

    Your are running just "echo" as root, try:

    echo suspend | sudo tee /sys/bus/usb/devices/usb3/power/level
    

提交回复
热议问题