STATEFILE="/var/run/vgastate"
LVDS1_defaultmode="1366x768"
-function vgaoff
+vgaoff()
{
logger "Turn external video off, putting LVDS1 to standard setup"
xrandr --output VGA1 --off \
echo "vgaoff" > $STATEFILE
}
-function vgamirror
+vgamirror()
{
logger "Mirror LVDS1 to $1"
xrandr --output $1 --primary --auto \
echo "vgamirror" > $STATEFILE
}
-function vgarightof
+vgarightof()
{
logger "Putting $1 right of of LVDS1"
xrandr --output LVDS1 --primary --auto --mode $LVDS1_defaultmode \
echo "vgarightof" > $STATEFILE
}
-function vgaleftof
+vgaleftof()
{
logger "Putting $1 left of of LVDS1"
xrandr --output LVDS1 --primary --auto --mode $LVDS1_defaultmode \