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
|
let tries=$TRIES
|
||||||
while [ 0 -lt $tries ]; do
|
while [ 0 -lt $tries ]; do
|
||||||
modprobe -r nvidia \
|
modprobe -r nvidia \
|
||||||
&& echo 'OFF DIS' > /sys/kernel/debug/vgaswitcheroo/switch \
|
&& echo 'OFF' > /sys/kernel/debug/vgaswitcheroo/switch \
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
||||||
sleep 0.01
|
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
|
if [ -f /sys/kernel/debug/vgaswitcheroo/switch ]; then
|
||||||
let tries=$TRIES
|
let tries=$TRIES
|
||||||
while [ 0 -lt $tries ]; do
|
while [ 0 -lt $tries ]; do
|
||||||
echo 'ON DIS' > /sys/kernel/debug/vgaswitcheroo/switch \
|
echo 'ON' > /sys/kernel/debug/vgaswitcheroo/switch \
|
||||||
&& modprobe nvidia \
|
&& modprobe nvidia \
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user