projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stuff from /flash
[svn42.git]
/
test_autosuspend.sh
diff --git a/test_autosuspend.sh
b/test_autosuspend.sh
new file mode 100755
(executable)
index 0000000..
e15eb95
--- /dev/null
+++ b/
test_autosuspend.sh
@@ -0,0
+1,10
@@
+#!/bin/zsh
+local devPath
+for idVendor in /sys/bus/usb/devices/*/idVendor; do
+ devPath=${idVendor:h}
+ if [[ "$(< $idVendor)" == "16c0" && "$(< ${devPath}/idProduct )" == "076b" ]]; then
+ cat ${devPath}/power/autosuspend
+ fi
+done
+
+