From 7170a1ea9799b9bab8fc71bb07a8239f8308cdcb Mon Sep 17 00:00:00 2001 From: Markus Schmidl Date: Sat, 5 Aug 2017 01:11:13 +0200 Subject: [PATCH] added script to suspend dmm --- suspend.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 suspend.sh 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