Created
October 19, 2018 07:01
-
-
Save davidhoness/16754bdcb737a870d9490afb7b6d24b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 0 > /sys/devices/platform/soc/*.usb/usb1/1-1/1-1\:1.0/1-1-port2/power/pm_qos_no_power_off | |
sleep 10 | |
echo 1 > /sys/devices/platform/soc/*.usb/usb1/1-1/1-1\:1.0/1-1-port2/power/pm_qos_no_power_off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note
Only works if there's no device on the first USB port (top left)