# This script disables LVDS for some broken Intel hardware until fixed upstream.
# It cannot be autodetected by upstream X.org currently.
# This is an Ubuntu specific workaround.

if [ "$(cat /sys/devices/virtual/dmi/id/sys_vendor)" = "Clientron" ] && [ "$(cat /sys/devices/virtual/dmi/id/product_name)" = "U800" ]; then
    export X_DEVICE_OPTION_01='"monitor-LVDS" "LVDS1"'
    monitor_hacks="$monitor_hacks add_intel_lvds"

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