You are not logged in.

#1 2010-04-28 21:11:31

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Autologin causes X to crash

I have the following in /etc/inittab:

#
# /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:5:initdefault:
x:5:once:/bin/su brad -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
# 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 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 38400 hvc0 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:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >& /dev/null



# End of file


id:5:initdefault:
x:5:once:/bin/su brad -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"

The code in bold is what I added and it automatically logs me in. I am using Awesome3. It doesn't experience this problem, however, when I use slim to login. I have noticed it happens when the enter key is pressed.

EDIT: I will try and post Xorg.0.log when it happens again

Last edited by cesura (2010-04-28 21:15:51)

Offline

#2 2010-04-28 21:52:28

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Autologin causes X to crash

Ok, here is what is in Xorg.0.log right after the crash:

http://pastebin.com/R1rFV9c9

I think it may have to do with:

Fatal server error:
Caught signal 3 (Quit). Server aborting

Offline

#3 2010-04-28 21:58:20

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Autologin causes X to crash

According to your pastebin log, X is started on vt2. When this happens, X and getty start fighting for that tty, which means that X will crash eventually as soon as a key is pressed. You could try to add some extra flags to force X to start on tty7 instead.

Offline

#4 2010-04-28 23:10:34

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Autologin causes X to crash

Thanks! Would that be something along the lines of:

id:5:initdefault:
x:5:once:/bin/su brad -l
id:7:initdefault:
x:7:once:/usr/bin/startx >/dev/null 2>&1

Sorry for my tty-noobness tongue

Last edited by cesura (2010-04-28 23:12:53)

Offline

Board footer

Powered by FluxBB