$OpenBSD: patch-data_Init_in,v 1.9 2018/03/22 16:51:08 ajacoutot Exp $
Index: data/Init.in
--- data/Init.in.orig
+++ data/Init.in
@@ -6,6 +6,15 @@
 PATH="@X_PATH@:$PATH"
 OLD_IFS=$IFS
 
+# enhance fade in look
+xsetroot -solid black
+
+# wait for ttys to be initialized
+while ! pgrep -qf "^/usr/libexec/getty "; do
+	sleep 1
+	[ $((i++)) -ge 10 ] && break
+done
+
 gdmwhich () {
   COMMAND="$1"
   OUTPUT=
@@ -85,5 +94,12 @@ if [ "x$SETXKBMAP" != "x" ] ; then
     fi
   fi
 fi
+
+# /etc/X11/xenodm/GiveConsole, fbtab(5)
+if [ -c /dev/drm0 ]; then
+    /sbin/chown _gdm /dev/drm0
+fi
+# XXX OpenBSD needs an implementation of XDG_RUNTIME_DIR
+rm -rf /var/db/gdm/.cache/gnome-shell/runtime-state-*
 
 exit 0
