From 627c9c2feff0c52c6413083eba65b721f04cbf3b Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 24 Aug 2018 22:27:06 +0300 Subject: add scripts that do something useful --- scripts/dgpu_off.sh | 6 ++++++ scripts/dgpu_on.sh | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100755 scripts/dgpu_off.sh create mode 100755 scripts/dgpu_on.sh diff --git a/scripts/dgpu_off.sh b/scripts/dgpu_off.sh new file mode 100755 index 0000000..194d683 --- /dev/null +++ b/scripts/dgpu_off.sh @@ -0,0 +1,6 @@ +#!/bin/bash +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )" + +sudo $DIR/pmh7tool -c 0x50 7 +sleep 0.001 +sudo $DIR/pmh7tool -c 0x50 3 diff --git a/scripts/dgpu_on.sh b/scripts/dgpu_on.sh new file mode 100755 index 0000000..fbf3ab6 --- /dev/null +++ b/scripts/dgpu_on.sh @@ -0,0 +1,7 @@ +#!/bin/bash +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )" + +sudo $DIR/pmh7tool -c 0x50 7 +sudo $DIR/pmh7tool -s 0x50 3 +sleep 0.01 +sudo $DIR/pmh7tool -s 0x50 7 -- cgit v1.2.3