add scripts that do something useful

This commit is contained in:
Evgeny Zinoviev 2018-08-24 22:27:06 +03:00
parent 5cd24db9ae
commit 627c9c2fef
2 changed files with 13 additions and 0 deletions

6
scripts/dgpu_off.sh Executable file
View File

@ -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

7
scripts/dgpu_on.sh Executable file
View File

@ -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