#!/bin/sh
# Swtich resolution on the internal LCD
xrandr --output LVDS --mode 800x600
# Configure the S-Video out
xrandr --addmode S-video 800x600
xrandr --output S-video --mode 800x600
# Disable the internal LCD
xrandr --output LVDS --off
# Switch the primary display for XV to S-Video out (needed for VLC)
xvattr --attribute XV_CRTC --value 1
# Enable lcd
#xrandr --output S-video --off
#xrandr --output LVDS --mode 1024x768
#xrandr --output LVDS --auto