This is a hack to allow mga5 live medias to boot on optimus hw, if you add "optimus" on kernel command line. Needs to be better fixed for mga6 Signed-off-by: Thomas Backlund <tmb@mageia.org> diff -Nurp gdm-3.14.2.orig/data/Init.in gdm-3.14.2/data/Init.in --- gdm-3.14.2.orig/data/Init.in 2015-05-28 20:45:10.487205361 +0200 +++ gdm-3.14.2/data/Init.in 2015-05-28 20:50:52.684570842 +0200 @@ -6,6 +6,18 @@ PATH="@X_PATH@:$PATH" OLD_IFS=$IFS +# (tmb) optimus hack for mga5 live media (mga#15734) +# hardcoded from /etc/init.d/functions (to be faster and dash compliant) +strstr() { + [ "${1#*$2*}" = "$1" ] && return 1 + return 0 +} + +cmdline=$(cat /proc/cmdline) +if strstr "$cmdline" optimus; then + /usr/bin/xrandr --auto +fi + gdmwhich () { COMMAND="$1" OUTPUT=