1
0
Fork 0
mirror of https://github.com/marenz2569/ut803-plot synced 2025-06-28 15:46:06 +02:00

added script to suspend dmm

This commit is contained in:
Markus Schmidl 2017-08-05 01:11:13 +02:00
commit 7170a1ea97

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