Comment 1 for bug 687296

Revision history for this message
Vagrant Cascadian (vagrantc) wrote : Re: [Bug 687296] [NEW] LDM screen not started by default

On Wed, Dec 08, 2010 at 12:33:28PM -0000, Wim Muskee wrote:
> On Gentoo by default, the client stays on vt1 after startup. Only after
> switching to vt7 (ALT F7), the ldm login screen starts up and a user can
> login normally.

i think gentoo uses it's own init script (or something sort of like an init
script), but there's code to handle the switching in
ltsp-trunk/client/initscripts/ltsp-core:

        if [ -z "${SCREEN_DEFAULT}" ]; then
            for screen in 01 02 03 04 05 06 07 08 09 10 11 12; do
                eval num=\$SCREEN_$screen
                [ -n "$num" ] && SCREEN_DEFAULT=$screen
            done
        fi

        # Find current tty, and if it is not the same as SCREEN_DEFAULT, chvt
        if [ -n "${SCREEN_DEFAULT}" ] && [ $(fgconsole) -ne ${SCREEN_DEFAULT} ]; then
            chvt ${SCREEN_DEFAULT}
        fi

you'll need to add similar code to one of the scripts in
ltsp-trunk/client/initscripts/Gentoo/

if possible, make it into a function that can be included in
ltsp-trunk/client/initscripts/ltsp-init-common, an then used by multiple
distros.

live well,
  vagrant