Wednesday, 14 August 2013

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

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

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

No comments:

Post a Comment