summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/dgpu_off.sh6
-rwxr-xr-xscripts/dgpu_on.sh7
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