N
N
Nicholas2016-08-12 15:10:13
linux
Nicholas, 2016-08-12 15:10:13

How to turn off and on the power to the usb port on ubuntu 16?

How to turn off and on the power to the usb port on ubuntu 16? at the same time, the port is empty (the LED lamp is connected there and it is not detected)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
strelmax, 2016-08-12
@strelmax

the kernel must be built with the CONFIG_USB_SUSPEND option
echo suspend > /sys/bus/usb /devices/device number/power/level
echo on > /sys/bus/usb /devices/device number/power/level

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question