Slim starts too early

Bug #699861 reported by Pertti Kosunen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
slim (Debian)
Fix Released
Unknown
slim (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: slim

Slim tries to start 2 seconds before nvidia kernel module is loaded, X can not start.

Ubuntu 10.10 Maverick Minimal amd64

$ apt-cache policy slim
slim:
  Installed: 1.3.1-7

Fix -> modify startup script to upstart.

/etc/init/slim.conf (modified kdm.conf):
---- cut ----
# 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
---- cut ----

# disable sysv rc startup
sudo update-rc.d -f slim remove

# backup original script
sudo mv /etc/init.d/slim ~/backup/slim-original-sysvrc-script

# create upstart link
sudo ln -s /lib/init/upstart-job /etc/init.d/slim

( http://ubuntuforums.org/showpost.php?p=10318906&postcount=6 )

Tags: patch

Related branches

Revision history for this message
Pertti Kosunen (pertti) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in slim (Ubuntu):
status: New → Confirmed
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package slim - 1.3.4-2ubuntu1

---------------
slim (1.3.4-2ubuntu1) raring; urgency=low

  * debian/slim.upstart: Add upstart job (LP: #699861)
    - authored by Richard Johnson
 -- <email address hidden> (Javier P.L.) Wed, 20 Mar 2013 16:49:22 -0600

Changed in slim (Ubuntu):
status: Confirmed → Fix Released
Changed in slim (Debian):
status: Unknown → New
Changed in slim (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.