snail pwr off TRIES := 48
This commit is contained in:
parent
80028b2005
commit
5b59f169e3
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
TRIES=24
|
TRIES=48
|
||||||
|
|
||||||
lsmod | grep '^nouveau ' >/dev/null && rmmod -f nouveau &>/dev/null
|
lsmod | grep '^nouveau ' >/dev/null && rmmod -f nouveau &>/dev/null
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ if [ -f /proc/acpi/bbswitch ]; then
|
||||||
&& echo 'OFF' > /proc/acpi/bbswitch \
|
&& echo 'OFF' > /proc/acpi/bbswitch \
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
||||||
sleep 0.1
|
sleep 0.2
|
||||||
let tries--
|
let tries--
|
||||||
# echo "tries left: $tries"
|
# echo "tries left: $tries"
|
||||||
done
|
done
|
||||||
|
@ -107,7 +107,7 @@ if [ -f /proc/acpi/call ]; then
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
sleep 0.1
|
sleep 0.2
|
||||||
let tries--
|
let tries--
|
||||||
# echo "tries left: $tries"
|
# echo "tries left: $tries"
|
||||||
done
|
done
|
||||||
|
@ -124,7 +124,7 @@ if [ -f /sys/kernel/debug/vgaswitcheroo/switch ]; then
|
||||||
&& echo 'OFF' > /sys/kernel/debug/vgaswitcheroo/switch \
|
&& echo 'OFF' > /sys/kernel/debug/vgaswitcheroo/switch \
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
||||||
sleep 0.1
|
sleep 0.2
|
||||||
let tries--
|
let tries--
|
||||||
echo "tries left: $tries"
|
echo "tries left: $tries"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue