I have an Asus Mini ITX with Built in LVDS port, abd no way to disable in BIOS. WHen I ran Linux Mint 10 (ubuntu 10.10) I only had to turn off the LVDS in the Gnome setings. However with Linux Mint 14 Cinnamon the GUI settings had no effect on XBMC, so I used the above modified. I am sure it is more than is needed I just want the LVDS always disabled, and dont really need it, then but was unsure of editing. I did this
Code:
VGA_MONITOR_LINE=$(xrandr | grep "^VGA.*connected")
VGA_MONITOR_LINE=${VGA_MONITOR_LINE%%ed*}
VGA_MONITOR=${VGA_MONITOR_LINE%% *}
VGA_MONITOR_STATUS=${VGA_MONITOR_LINE#* }
LVDS_MONITOR_LINE=$(xrandr | grep "^LVDS.*connected")
LVDS_MONITOR=${LVDS_MONITOR_LINE%% *}
if [ $VGA_MONITOR_STATUS = "connect" ]; then
xrandr --output $LVDS_MONITOR --off --output $VGA_MONITOR --auto
else
xrandr --output $LVDS_MONITOR --off --output $VGA_MONITOR --auto
fi
the above works for me but I think I could probably just use
Code:
VGA_MONITOR_LINE=$(xrandr | grep "^VGA.*connected")
VGA_MONITOR_LINE=${VGA_MONITOR_LINE%%ed*}
VGA_MONITOR=${VGA_MONITOR_LINE%% *}
VGA_MONITOR_STATUS=${VGA_MONITOR_LINE#* }
LVDS_MONITOR_LINE=$(xrandr | grep "^LVDS.*connected")
LVDS_MONITOR=${LVDS_MONITOR_LINE%% *}
xrandr --output $LVDS_MONITOR --off --output $VGA_MONITOR --auto
fi
but did not test
Bookmarks