vgaswitcheroo comands fixed

This commit is contained in:
Kolan Sh 2012-04-09 23:05:50 +04:00
parent f836d22d61
commit 7e67c7f4cf
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ if [ -f /sys/kernel/debug/vgaswitcheroo/switch ]; then
let tries=$TRIES
while [ 0 -lt $tries ]; do
modprobe -r nvidia \
&& echo 'OFF DIS' > /sys/kernel/debug/vgaswitcheroo/switch \
&& echo 'OFF' > /sys/kernel/debug/vgaswitcheroo/switch \
&& exit 0
sleep 0.01

View File

@ -8,7 +8,7 @@ lsmod | grep '^nouveau ' >/dev/null && modprobe -rf nouveau &>/dev/null
if [ -f /sys/kernel/debug/vgaswitcheroo/switch ]; then
let tries=$TRIES
while [ 0 -lt $tries ]; do
echo 'ON DIS' > /sys/kernel/debug/vgaswitcheroo/switch \
echo 'ON' > /sys/kernel/debug/vgaswitcheroo/switch \
&& modprobe nvidia \
&& exit 0