6.4. Number X servers started by Display managers

Well its a modified version of the previous approach:

add this to your init scripts (i bet it is missing :) ) :

---------------------------------------------------------------------------------------
#
#the same like XF86Config but for gdm.conf & Xservers
#
for i in xdm/Xservers gdm/gdm.conf; do
    if [ -L "/etc/X11/$i" ]; then
        DumbCon=`sed -n 's/.*dumbcon=\([0-9]*\).*/\1/p' /proc/cmdline`
        [ -n "$DumbCon" ] || DumbCon=0
        [ -r "/etc/X11/$i.$DumbCon" ] && ln -sf "/etc/X11/$i.$DumbCon" "/etc/X11/$i"
    fi
done
echo "Setting up display managers for `expr $DumbCon + 1` Xservers"
---------------------------------------------------------------------------------------

it will adjust the proper /etc/X11/xdm/Xservers & /etc/X11/gdm/gdm.config according to the boot line argument dumbcon=n ( remember n+1= number of X users/sessions)

you have to create the configuration files following this assumptions:

"i" stays for "/etc/X11/xdm/Xserver" and "/etc/X11/gdm/gdm.conf"

and so on ..

so :

so if you boot without dumbcon=n or with dumbcon=0 (for example a standard kernel), your display manager will start a single X server with the corresponding XF86Config file,

if you start with dumbcon=1 the display manager will start automatically 2 X servers,

if you start with dumbcon=2 when booting is finished you'll get 3 login prompts on your 3 displays.

Have in mind that each X server should have it's own configuration file, and it should be specified in the display manager configuration file properly -- take a look at the configuration files before restarting with activated display manager and this addition to your init scripts.