X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=test_autosuspend.sh;fp=test_autosuspend.sh;h=e15eb957fe8e6b350ef2965ed7ba1bc802ade7c0;hb=e7c8b074c1bd2ddf04a33fade4726497ec4d3836;hp=0000000000000000000000000000000000000000;hpb=0515535ca45f18e584c4748d34e942f5d7b7d048;p=svn42.git diff --git a/test_autosuspend.sh b/test_autosuspend.sh new file mode 100755 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 + +