You are not logged in.

#1 2008-06-12 02:46:21

ghyspran
Member
Registered: 2006-03-16
Posts: 18
Website

SLiM hangs on login

When X11 starts (using init runlevel 5), SLiM is set to start up, and it does.  When I log in, though, SLiM logs me in but does not run my xinitrc or do anything else, it just sits there.  I can use GDM and it works or run startx manually, but I want to run SLiM.  I don't know what the problem is.

/etc/slim.conf wrote:

# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
#login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd    some command
# sessionstop_cmd    some command

# Start in daemon mode. Valid values: yes | no
# Note that this can overridden by the command line
# option "-d"
# daemon    yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            xfce4,icewm,wmaker,blackbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        simone

# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme       flat

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log

/etc/X11/xorg.conf wrote:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
#    InputDevice    "Evdev Mouse" "CorePointer"
  InputDevice    "Expert Mouse" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath      "/usr/share/X11/rgb"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
  FontPath     "/usr/share/fonts/100dpi"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
  FontPath     "/usr/share/fonts/75dpi"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
  FontPath     "/usr/share/fonts/artwiz-fonts"
  FontPath     "/usr/share/fonts/speedo"
  FontPath     "/usr/share/fonts/local"
EndSection

Section "Module"
    Load  "dri"
    Load  "drm"
    Load  "extmod"
    Load  "dbe"
    Load  "xtrap"
    Load  "record"
    Load  "freetype"
    Load  "type1"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option      "Xkblayout" "dvorak"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
  Identifier  "Expert Mouse"
  Driver      "mouse"
  Option      "SendCoreEvents"        "true"
  Option      "Device"                "/dev/input/mice"
  # /dev/input/mice can emulate plain PS2, ImPS/2 and ExplorerPS/2;
  # # only this one supports more than 3 buttons + scrollwheel:
  Option      "Protocol"              "ExplorerPS/2"
  # # scroll wheel
  Option      "ZAxisMapping"          "4 5"
  # # four real buttons and the scroll wheel:
  Option      "Buttons"               "6"
  # # This bit's optional; it configures button 4 as a sort of 'lock'
  # # button, so instead of holding down one of the other buttons you
  # # first press button four then click the other button:
  Option      "DragLockButtons"       "8"
  Option      "ButtonMapping"         "8 3 1 2"
EndSection

Section "InputDevice"
    Identifier  "Evdev Mouse"
    Driver      "evdev"
    Option      "Device" "/dev/input/event4"
    Option      "CorePointer"
EndSection

Section "Monitor"
    #DisplaySize      410   260    # mm
    Identifier   "Monitor0"
    VendorName   "VSC"
    ModelName    "Q19wb"
### Comment all HorizSync and VertRefresh values to use DDC:
    HorizSync    30.0 - 82.0
    VertRefresh  56.0 - 75.0
    Option         "DPMS"
  Gamma        0.7 0.7 0.7
  DisplaySize  381 238 # 96 dpi @ 1440x900
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "Dac8Bit"                # [<bool>]
        #Option     "BusType"                # [<str>]
        #Option     "CPPIOMode"              # [<bool>]
        #Option     "CPusecTimeout"          # <i>
        #Option     "AGPMode"                # <i>
        #Option     "AGPFastWrite"           # [<bool>]
        #Option     "AGPSize"                # <i>
        #Option     "GARTSize"               # <i>
        #Option     "RingSize"               # <i>
        #Option     "BufferSize"             # <i>
        #Option     "EnableDepthMoves"       # [<bool>]
        #Option     "EnablePageFlip"         # [<bool>]
        #Option     "NoBackBuffer"           # [<bool>]
        #Option     "DMAForXv"               # [<bool>]
        #Option     "FBTexPercent"           # <i>
        #Option     "DepthBits"              # <i>
        #Option     "PCIAPERSize"            # <i>
        #Option     "AccelDFS"               # [<bool>]
        #Option     "DDCMode"                # [<bool>]
        #Option     "IgnoreEDID"             # [<bool>]
        #Option     "DisplayPriority"        # [<str>]
        #Option     "PanelSize"              # [<str>]
        #Option     "ForceMinDotClock"       # <freq>
        #Option     "ColorTiling"            # [<bool>]
        #Option     "VideoKey"               # <i>
        #Option     "RageTheatreCrystal"     # <i>
        #Option     "RageTheatreTunerPort"     # <i>
        #Option     "RageTheatreCompositePort"     # <i>
        #Option     "RageTheatreSVideoPort"     # <i>
        #Option     "TunerType"              # <i>
        #Option     "RageTheatreMicrocPath"     # <str>
        #Option     "RageTheatreMicrocType"     # <str>
        #Option     "ScalerWidth"            # <i>
        #Option     "RenderAccel"            # [<bool>]
        #Option     "SubPixelOrder"          # [<str>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "DynamicClocks"          # [<bool>]
        #Option     "VGAAccess"              # [<bool>]
        #Option     "ReverseDDC"             # [<bool>]
        #Option     "LVDSProbePLL"           # [<bool>]
        #Option     "AccelMethod"            # <str>
        #Option     "DRI"                    # [<bool>]
        #Option     "ConnectorTable"         # <str>
        #Option     "DefaultConnectorTable"     # [<bool>]
        #Option     "DefaultTMDSPLL"         # [<bool>]
        #Option     "LVDSBiosNativeMode"     # [<bool>]
    Identifier  "Card0"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "Radeon 9100 IGP"
    BusID       "PCI:1:5:0"
    Option      "XAANoOffscreenPixmaps" "true"
  Option      "ColorTiling"  "on"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
        Modes     "1440x900"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
        Modes     "1440x900"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
        Modes     "1440x900"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
        Modes     "1440x900"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
        Modes     "1440x900"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes     "1440x900"
    EndSubSection
EndSection

Section "DRI"
    Group       "video"
    Mode        0660
EndSection

/etc/inittab wrote:

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)    Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux
c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/opt/kde/bin/kdm -nodaemon
x:5:respawn:/usr/bin/slim >& /dev/null

# End of file

~/.xinitrc wrote:

xterm &
numlockx &
setxkbmap dvorak
xmodmap ~/.xmodmap
#xmodmap -e "pointer = 1 2 3 6 7 8 9 10 4 5" &
exec ratpoison
#exec dwm
#exec awesome
#exec ion3
#exec wmii

Offline

#2 2008-06-12 04:45:46

jbromley
Member
From: Pasadena, CA
Registered: 2007-02-04
Posts: 268

Re: SLiM hangs on login

Very odd. You might try switching to a console, logging in, and then running ps -ef and top to see if anything is really running. If your machine just really sits there, then something is in a tight loop somewhere.

Good luck.

Offline

#3 2008-06-12 19:33:43

ghyspran
Member
Registered: 2006-03-16
Posts: 18
Website

Re: SLiM hangs on login

The only difference from when SLiM is loaded but not logged in and when it is logged in is one instance of fish (shell).

before:

  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [5]                                           
    2 ?        S<     0:00 [kthreadd]
    3 ?        S<     0:00 [migration/0]
    4 ?        S<     0:01 [ksoftirqd/0]
    5 ?        S<     0:00 [watchdog/0]
    6 ?        S<     0:01 [events/0]
    7 ?        S<     0:00 [khelper]
    8 ?        S<     0:00 [kblockd/0]
    9 ?        S<     0:00 [kacpid]
   10 ?        S<     0:00 [kacpi_notify]
   11 ?        S<     0:00 [kseriod]
   12 ?        S      0:01 [pdflush]
   13 ?        S      0:02 [pdflush]
   14 ?        S<     0:00 [kswapd0]
   15 ?        S<     0:00 [aio/0]
   16 ?        S<     0:00 [rpciod/0]
   25 ?        S<     0:00 [ata/0]
   26 ?        S<     0:00 [ata_aux]
   28 ?        S<     0:00 [scsi_eh_0]
   29 ?        S<     0:00 [scsi_eh_1]
  491 ?        S<     0:00 [ksuspend_usbd]
  577 ?        S<     0:00 [khubd]
  980 ?        S<     0:00 [kjournald]
 1046 ?        S<s    0:00 /sbin/udevd --daemon
 2132 ?        S<     0:00 [kpsmoused]
 2198 ?        S<     0:00 [kgameportd]
 2543 ?        S<     0:00 [kjournald]
 2544 ?        S<     0:00 [kjournald]
 2545 ?        S<     0:04 [kjournald]
 3747 ?        Ss     0:00 /usr/sbin/syslog-ng
 3767 tty1     Ss     0:00 /bin/login --     
 3775 tty3     Ss     0:00 /bin/login --     
 3778 tty4     Ss+    0:00 /sbin/agetty -8 38400 vc/4 linux
 3779 tty5     Ss+    0:00 /sbin/agetty -8 38400 vc/5 linux
 3782 tty6     Ss+    0:00 /sbin/agetty -8 38400 vc/6 linux
 3824 ?        S      0:00 /usr/sbin/crond
 3831 ?        S      0:02 /usr/sbin/ntpd -s
 3832 ?        Ss     0:00 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
 3865 ?        Ss     0:00 /usr/sbin/ntpd -s
 3871 tty1     S+     0:00 fish
 3877 ?        Ss     0:00 fishd
15728 ?        R    1277:27 fish
15735 ?        Ss     0:00 fishd
16113 ?        R    1273:40 fish
17649 ?        S      0:02 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
18952 tty3     S+     0:00 fish
19561 tty2     Ss     0:00 /bin/login --     
19574 tty2     R      0:00 fish
19673 ?        Ss     0:03 SCREEN
19674 pts/1    Ss     0:00 fish
19704 pts/1    S      0:00 su
19705 pts/1    S+     0:00 fish
19829 pts/2    Ss     0:00 fish
19859 pts/2    S+     6:30 htop
19860 pts/3    Ss+    0:00 fish
20287 ?        Ss     0:02 /usr/bin/slim
20289 tty7     Ss+    0:00 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
20307 tty2     R+     0:00 ps ax

after:

  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [5]                                           
    2 ?        S<     0:00 [kthreadd]
    3 ?        S<     0:00 [migration/0]
    4 ?        S<     0:01 [ksoftirqd/0]
    5 ?        S<     0:00 [watchdog/0]
    6 ?        S<     0:01 [events/0]
    7 ?        S<     0:00 [khelper]
    8 ?        S<     0:00 [kblockd/0]
    9 ?        S<     0:00 [kacpid]
   10 ?        S<     0:00 [kacpi_notify]
   11 ?        S<     0:00 [kseriod]
   12 ?        S      0:01 [pdflush]
   13 ?        S      0:02 [pdflush]
   14 ?        S<     0:00 [kswapd0]
   15 ?        S<     0:00 [aio/0]
   16 ?        S<     0:00 [rpciod/0]
   25 ?        S<     0:00 [ata/0]
   26 ?        S<     0:00 [ata_aux]
   28 ?        S<     0:00 [scsi_eh_0]
   29 ?        S<     0:00 [scsi_eh_1]
  491 ?        S<     0:00 [ksuspend_usbd]
  577 ?        S<     0:00 [khubd]
  980 ?        S<     0:00 [kjournald]
 1046 ?        S<s    0:00 /sbin/udevd --daemon
 2132 ?        S<     0:00 [kpsmoused]
 2198 ?        S<     0:00 [kgameportd]
 2543 ?        S<     0:00 [kjournald]
 2544 ?        S<     0:00 [kjournald]
 2545 ?        S<     0:04 [kjournald]
 3747 ?        Ss     0:00 /usr/sbin/syslog-ng
 3767 tty1     Ss     0:00 /bin/login --     
 3775 tty3     Ss     0:00 /bin/login --     
 3778 tty4     Ss+    0:00 /sbin/agetty -8 38400 vc/4 linux
 3779 tty5     Ss+    0:00 /sbin/agetty -8 38400 vc/5 linux
 3782 tty6     Ss+    0:00 /sbin/agetty -8 38400 vc/6 linux
 3824 ?        S      0:00 /usr/sbin/crond
 3831 ?        S      0:02 /usr/sbin/ntpd -s
 3832 ?        Ss     0:00 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
 3865 ?        Ss     0:00 /usr/sbin/ntpd -s
 3871 tty1     S+     0:00 fish
 3877 ?        Ss     0:00 fishd
15728 ?        R    1277:50 fish
15735 ?        Ss     0:00 fishd
16113 ?        R    1274:04 fish
17649 ?        S      0:02 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
18952 tty3     S+     0:00 fish
19561 tty2     Ss     0:00 /bin/login --     
19574 tty2     S      0:00 fish
19673 ?        Ss     0:03 SCREEN
19674 pts/1    Ss     0:00 fish
19704 pts/1    S      0:00 su
19705 pts/1    S+     0:00 fish
19829 pts/2    Ss     0:00 fish
19859 pts/2    S+     6:31 htop
19860 pts/3    Ss+    0:00 fish
20287 ?        Ss     0:02 /usr/bin/slim
20289 tty7     Ss+    0:00 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
20328 ?        R      0:11 fish
20352 tty2     R+     0:00 ps ax

Offline

#4 2008-06-12 21:18:00

ghyspran
Member
Registered: 2006-03-16
Posts: 18
Website

Re: SLiM hangs on login

Weird, for some reason it started working.  I have no idea why.  Thanks anyway, though.

Offline

#5 2008-08-18 15:06:46

jo3
Member
Registered: 2007-08-18
Posts: 112

Re: SLiM hangs on login

I have had issues with slim's log file not rotating and once /var/log/slim.log got to 2GB slim quit working. Might be something worth looking into.
P.S. I notices a weird log message in slim.log about not able to access libdvdread. Why would slim ever need libdvdread??
-Joey

Offline

Board footer

Powered by FluxBB