# This script disables LVDS for the intel laptop chipsets in desktop computers.
# It cannot be autodetected by upstream X.org currently.
# This is an Ubuntu specific workaround.

if [ -n "$(PATH=/sbin:/usr/sbin:/bin:/usr/bin lspci -n |grep 8086:27ae)" ]; then
    export X_DEVICE_OPTION_01='"monitor-LVDS" "LVDS"'
    monitor_hacks="$monitor_hacks add_intel_lvds"

    add_intel_lvds() {
        echo 'EndSection'
        echo 'Section "Monitor"'
        echo '    Identifier "LVDS"'
        echo '    Option "Ignore" "True"'
    }
fi

