diff options
author | Evgeny Zinoviev <me@ch1p.com> | 2018-08-24 22:27:06 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.com> | 2018-08-24 22:27:06 +0300 |
commit | 627c9c2feff0c52c6413083eba65b721f04cbf3b (patch) | |
tree | befc235deba5f6c11a6efc8e780dc8e2e9ea8bd9 | |
parent | 5cd24db9aeecadf28eb82ce08954c545ac4b1b32 (diff) |
add scripts that do something useful
-rwxr-xr-x | scripts/dgpu_off.sh | 6 | ||||
-rwxr-xr-x | scripts/dgpu_on.sh | 7 |
2 files changed, 13 insertions, 0 deletions
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 |