You are not logged in.

#1 2013-03-19 19:26:17

Synth
Member
Registered: 2013-03-19
Posts: 2

SLiM only starts twice then exits to tty1

Hi... i've installed arch yesterday following this guide https://wiki.archlinux.org/index.php/Beginners'_Guide i

After that i started to set up a new desktop using openbox and slim.
Basically everything works fine... except that after exiting openbox 2 times slim won't start and i end at tty1.

systemctl status slim... after boot

slim.service - SLiM Simple Login Manager
	  Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
	  Active: active (running) since Di 2013-03-19 19:05:10 CET; 1min 10s ago
	Main PID: 241 (slim)
	  CGroup: name=systemd:/system/slim.service
		  └─264 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth 
		  ‣ 241 /usr/bin/slim -nodaemon

... after 1st "openbox logout"

slim.service - SLiM Simple Login Manager
	  Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
	  Active: active (running) since Di 2013-03-19 19:05:10 CET; 1min 50s ago
	Main PID: 241 (slim)
	  CGroup: name=systemd:/system/slim.service

...after 2nt logout on tty1

slim.service - SLiM Simple Login Manager
	  Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
	  Active: failed (Result: exit-code) since Di 2013-03-19 19:07:04 CET; 23s ago
	 Process: 241 ExecStart=/usr/bin/slim -nodaemon (code=exited, status=1/FAILURE)

/var/log/slim.log

slim: waiting for X server to begin accepting connections.
slim: waiting for X server to shut down

slim: waiting for X server to begin accepting connections.

systemctl list-units

UNIT                        LOAD   ACTIVE SUB       DESCRIPTION
proc-sys...t_misc.automount loaded active running   Arbitrary Executable File Formats File System Automount Point
sys-devi...-sda-sda1.device loaded active plugged   IC25N080ATMR04-0
sys-devi...-sda-sda2.device loaded active plugged   IC25N080ATMR04-0
sys-devi...-sda-sda3.device loaded active plugged   IC25N080ATMR04-0
sys-devi...-sda-sda4.device loaded active plugged   IC25N080ATMR04-0
sys-devi...block-sda.device loaded active plugged   IC25N080ATMR04-0
sys-devi...block-sr0.device loaded active plugged   _NEC_DVD+_-RW_ND-6500A
sys-devi...und-card0.device loaded active plugged   /sys/devices/pci0000:00/0000:00:02.7/sound/card0
sys-devi...et-enp0s4.device loaded active plugged   /sys/devices/pci0000:00/0000:00:04.0/net/enp0s4
sys-devi...et-wlp2s0.device loaded active plugged   /sys/devices/pci0000:00/0000:00:09.0/0000:02:00.0/net/wlp2s0
sys-devi...tty-ttyS0.device loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0
sys-devi...tty-ttyS1.device loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1
sys-devi...tty-ttyS2.device loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2
sys-devi...tty-ttyS3.device loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3
sys-module-configfs.device  loaded active plugged   /sys/module/configfs
sys-subs...es-enp0s4.device loaded active plugged   /sys/subsystem/net/devices/enp0s4
sys-subs...es-wlp2s0.device loaded active plugged   /sys/subsystem/net/devices/wlp2s0
-.mount                     loaded active mounted   /
boot.mount                  loaded active mounted   /boot
dev-hugepages.mount         loaded active mounted   Huge Pages File System
dev-mqueue.mount            loaded active mounted   POSIX Message Queue File System
home.mount                  loaded active mounted   /home
proc-sys...infmt_misc.mount loaded active mounted   Arbitrary Executable File Formats File System
sys-kernel-config.mount     loaded active mounted   Configuration File System
sys-kernel-debug.mount      loaded active mounted   Debug File System
tmp.mount                   loaded active mounted   Temporary Directory
systemd-...ord-console.path loaded active waiting   Dispatch Password Requests to Console Directory Watch
systemd-...ssword-wall.path loaded active waiting   Forward Password Requests to Wall Directory Watch
dbus.service                loaded active running   D-Bus System Message Bus
getty@tty1.service          loaded active running   Getty on tty1
net-auto-wireless.service   loaded active running   Provides automatic netcfg wireless connection
ntpd.service                loaded active running   Network Time Service
slim.service                loaded failed failed    SLiM Simple Login Manager
systemd-binfmt.service      loaded active exited    Set Up Additional Binary Formats
systemd-journald.service    loaded active running   Journal Service
systemd-logind.service      loaded active running   Login Service
systemd-remount-fs.service  loaded active exited    Remount Root and Kernel File Systems
systemd-sysctl.service      loaded active exited    Apply Kernel Variables
systemd-...es-setup.service loaded active exited    Recreate Volatile Files and Directories
systemd-...-trigger.service loaded active exited    udev Coldplug all Devices
systemd-udevd.service       loaded active running   udev Kernel Device Manager
systemd-...sessions.service loaded active exited    Permit User Sessions
systemd-...le-setup.service loaded active exited    Setup Virtual Console
dbus.socket                 loaded active running   D-Bus System Message Bus Socket
dmeventd.socket             loaded active listening Device-mapper event daemon FIFOs
lvmetad.socket              loaded active listening LVM2 metadata daemon socket
systemd-initctl.socket      loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket     loaded active running   Journal Socket
systemd-shutdownd.socket    loaded active listening Delayed Shutdown Socket
systemd-...d-control.socket loaded active listening udev Control Socket
systemd-udevd-kernel.socket loaded active running   udev Kernel Socket
dev-sda2.swap               loaded active active    /dev/sda2
basic.target                loaded active active    Basic System
cryptsetup.target           loaded active active    Encrypted Volumes
getty.target                loaded active active    Login Prompts
graphical.target            loaded active active    Graphical Interface
local-fs-pre.target         loaded active active    Local File Systems (Pre)
local-fs.target             loaded active active    Local File Systems
multi-user.target           loaded active active    Multi-User
network.target              loaded active active    Network
remote-fs.target            loaded active active    Remote File Systems
sockets.target              loaded active active    Sockets
sound.target                loaded active active    Sound Card
swap.target                 loaded active active    Swap
sysinit.target              loaded active active    System Initialization
systemd-...iles-clean.timer loaded active waiting   Daily Cleanup of Temporary Directories

/etc/slim.conf

# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/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 be overriden by the command line
# options "-d" and "-nodaemon"
# 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-session,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

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# 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

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
# focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login          no


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

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

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

When i run "systemctl start slim" on tty1 slim starts again and after exiting openbox twice i'm back on tty1.
...But when i run "slim" on tty1 slim starts and i can exit openbox as often as i want.


Any ideas ?



Edit:

Running /usr/bin/slim from tty1 gives me this logfile.
/var/log/slim.log

slim: waiting for X server to begin accepting connections.
slim: waiting for X server to shut down

slim: waiting for X server to begin accepting connections.
slim: waiting for X server to shut down

slim: waiting for X server to begin accepting connections.

Somehow the second "slim: waiting for X server to shut down" does not happen when running "systemctl start slim"

Last edited by Synth (2013-03-19 19:39:10)

Offline

#2 2013-03-19 23:57:49

Synth
Member
Registered: 2013-03-19
Posts: 2

Re: SLiM only starts twice then exits to tty1

My temporary soluion is:

/usr/bin/obexit

#!/bin/sh
systemctl restart slim.service

sudoers

%users ALL= NOPASSWD: /usr/bin/obexit

~/.config/openbox/menu.xml

<item label="Log Out">
			<action name="Execute">
			   <command>sudo obexit</command>
				  <prompt>Exit Openbox ?</prompt>
			</action>
	</item>

Offline

#3 2013-03-23 11:47:33

ptrxyz
Member
Registered: 2013-03-23
Posts: 4

Re: SLiM only starts twice then exits to tty1

Hello!

I have the same problem. Furthermore nm-applet does only show up during the first login session although it is running (--> ps wafux | grep nm-applet). In a next step I replaced slim by SDDM and by LightDM. Problem remains....


To reproduce:
- Install XFCE + Slim
- systemctl enable slim
- reboot & login (all fine)
- logout & relog (all fine)
- logout --> slim exits and drops me to TTY1.

The logs dont help me... "systemd status slim" just tells me that the daemon ended with error 1... (setting it's state to failure). /var/log/slim doesnt contain any useful information. i just get the crash =/
Does anyone know something about that problem?

Last edited by ptrxyz (2013-03-23 11:54:30)

Offline

#4 2013-03-23 12:36:05

ptrxyz
Member
Registered: 2013-03-23
Posts: 4

Re: SLiM only starts twice then exits to tty1

Ok, I was able to workaround parts of the bug:

I changed slim.conf and and set daemon = true (so slim runs as a daemon). Furthermore changed the slim.service file for systemd:

...
[Service]
Type = forking
PIDFile = /var/lock/slim.lock
ExecStart=/usr/bin/slim
...

Now I can log in and out as often as I want. Seems to work. However, nm-applet only shows up in odd numbers of logins:

1st login --> nm-applet is shown
2nd login --> nm-applet is not shown (but running --> htop)
3rd login --> nm-applet is shown
4th login --> nm-applet is not shown (but running --> htop)
...and so on...

I search the web, it seems to be a problem with dbus and the order how the services get started. Don't know if that is true...any ideas from anyone?

Offline

#5 2013-03-23 16:25:56

myrlin
Member
Registered: 2010-06-11
Posts: 297

Re: SLiM only starts twice then exits to tty1

This problem seems to be widespread.
See this post: https://bbs.archlinux.org/viewtopic.php?id=159958

Last edited by myrlin (2013-03-23 16:26:17)

Offline

#6 2013-03-27 15:10:25

djraymondnm
Member
From: Socorro, NM, USA
Registered: 2011-12-28
Posts: 59
Website

Re: SLiM only starts twice then exits to tty1

Note that this is not just a problem with slim; lxdm has similar issues, so the real problem
must be in systemd, dbus, or somewhere else.  I have had it on both intel and nvidia
video cards, so it probably is not related to the X11 video driver, unless there is a
common mode bug between them.

Offline

#7 2013-03-27 20:09:15

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 128

Re: SLiM only starts twice then exits to tty1

SDDM has the same problem...

Offline

#8 2013-03-27 20:58:01

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 128

Re: SLiM only starts twice then exits to tty1

XDM does *not* have this problem...

Offline

Board footer

Powered by FluxBB