vgaswitcheroo comands fixed
This commit is contained in:
parent
f836d22d61
commit
7e67c7f4cf
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue