added script to suspend dmm

This commit is contained in:
Markus Schmidl 2017-08-05 01:11:13 +02:00
commit 7170a1ea97
1 changed files with 9 additions and 0 deletions

9
suspend.sh Executable file
View File

@ -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