19,618
社区成员




sudo apt-get install git
git clone git://github.com/mkottman/acpi_call.git
cd acpi_call
make
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "Use as root"
exit 1
fi
if [ -z "$1" ]; then
cmd="OFF"
else
if [ "$1" = "-i" ]; then
cmd="DIGD"
elif [ "$1" = "-d" ]; then
cmd="DDIS"
else
cmd=$1
fi
fi
if ([ "$cmd" != "OFF" ] && [ "$cmd" != "DDIS" ] && [ "$cmd" != "DIGD" ]); then
echo "Bad Command!"
exit 1
fi
echo "$cmd" > /sys/kernel/debug/vgaswitcheroo/switch
cat /sys/kernel/debug/vgaswitcheroo/switch
#!/bin/bash
if [ "$1" != "start" ]; then
exit;
fi
/usr/local/sbin/vgaswitcher
/usr/local/sbin/vgaswitcher -i