usb power detection and timeout