commit 7170a1ea9799b9bab8fc71bb07a8239f8308cdcb Author: Markus Schmidl Date: Sat Aug 5 01:11:13 2017 +0200 added script to suspend dmm diff --git a/suspend.sh b/suspend.sh new file mode 100755 index 0000000..140e3e3 --- /dev/null +++ b/suspend.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# improved script from http://erste.de/UT61/index.html +for dat in /sys/bus/usb/devices/*; + do + if test -e $dat/manufacturer; then + grep "1a86" $dat/idVendor > /dev/null && grep "e008" $dat/idProduct > /dev/null && echo auto > ${dat}/power/level && echo 0 > ${dat}/power/autosuspend + exit + fi +done