Results 1 to 10 of 11

Thread: Slim starts too early

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Beans
    8

    Slim starts too early

    How can i set Slim display manager to start later (or load nvidia kernel module faster)?

    Code:
    sudo update-rc.d -f slim remove
    sudo update-rc.d slim defaults 99
    Tried to increase rc link number, but it didn't help. Slim tries to start 2 seconds before nvidia module gets loaded (Maverick minimal amd64).

  2. #2
    Join Date
    May 2010
    Beans
    627
    Distro
    Ubuntu Development Release

    Re: Slim starts too early

    Doesn't Slim interface into GDM? In other words, if you go directly to the login page, won't it show up under the desktop environment menu? Fluxbox does, but I don't know how much Slim and Fluxbox differ.


    Cipherboy

  3. #3
    Join Date
    Jan 2010
    Beans
    8

    Re: Slim starts too early

    I use Slim to start Fluxbox with automatic login. Slim is display/login manager like GDM/KDM/XDM, i don't have GDM installed. "sudo /etc/init.d/slim start" after boot is finished (nvidia module loaded) works ok. SSD is too fast..

    http://slim.berlios.de/

  4. #4
    Join Date
    Jun 2008
    Location
    Tennessee
    Beans
    3,421

    Re: Slim starts too early

    Is slim being started via upstart or from sysv? (you can tell by looking at /etc/init.d/slim -- if it's a symlink to /lib/init/upstart-job then it's being started by upstart).

    I don't know the details on it, but if it's being started by upstart, then you can make it dependent on the video driver being loaded (I believe kdm and gdm are already set up this way).

    If it's just a sysv init script, I'm not sure. I know these scripts support dependencies, but how to actually specify the loading of the hardware drivers I don't know.

  5. #5
    Join Date
    Jan 2010
    Beans
    8

    Re: Slim starts too early

    It is sysv script. Have to check if i can convert it to upstart.

  6. #6
    Join Date
    Jan 2010
    Beans
    8

    Re: Slim starts too early

    Changing to upstart fixed it.

    /etc/init/slim.conf (modded from kdm.conf):
    Code:
    # SLiM - Simple Login Manager
    #
    # The display manager service manages the X servers running on the
    # system, providing login and auto-login services
    
    description     "Simple Login Manager"
    author          "Richard Johnson"  
    
    start on (filesystem
              and started dbus
              and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
                   or stopped udevtrigger))
    stop on runlevel [016]
    
    emits starting-dm
    
    env XORGCONFIG=/etc/X11/xorg.conf
    
    script
        if [ -n "$UPSTART_EVENTS" ]
        then
        [ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/slim" ] || { stop; exit 0; }
    
        # Check kernel command-line for inhibitors
        for ARG in $(cat /proc/cmdline)
        do
            case "${ARG}" in
            text|-s|s|S|single)
                        plymouth quit || :  # We have the ball here
                exit 0
                ;;
            esac
        done
        fi
    
        if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG LANGUAGE
        elif [ -r /etc/environment ]; then
        . /etc/environment
        export LANG LANGUAGE
        fi
        export XORGCONFIG
    
        exec slim
    end script
    Code:
    sudo update-rc.d -f slim remove
    sudo mv /etc/init.d/slim ~/backup/slim-original-sysvrc-script
    sudo ln -s /lib/init/upstart-job /etc/init.d/slim

  7. #7
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,809
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Slim starts too early

    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •