You are not logged in.

#1 2012-01-07 23:42:59

fourmyle
Member
Registered: 2011-12-15
Posts: 9

[Solved] Running exec i3 causes crash and logout

I am trying to get the i3 WM installed on my machine.  I have X installed and working.  I was able to perform the test with xterms specified in the beginners guide.  I installed i3 with 'sudo pacman -S i3' and created a .xnitrc file in my home directory by copying it from the skel directory.  It is supposed to run the command 'exec i3' after I login from xdm but it is failing.  It seems to not do anything but log me out.  If I am booted into XDM and login I just get bounced back to the login screen.  If I am on the console and try to run 'exec i3' it just logs me out and doesn't start.  If I run 'exec i3' from an xterm it crashes the terminal window.

EDIT:  this occurs with all WMs I have tried in addition to i3 such as ratpoison.

Last edited by fourmyle (2012-01-09 21:54:22)

Offline

#2 2012-01-08 01:30:20

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [Solved] Running exec i3 causes crash and logout

Not sure but perhaps you have the problem described at the bottom of the xdm wiki article:
https://wiki.archlinux.org/index.php/XDM


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2012-01-08 01:43:50

fourmyle
Member
Registered: 2011-12-15
Posts: 9

Re: [Solved] Running exec i3 causes crash and logout

I don't think that is it.  I have dbus installed and its in my DAEMONS array.  I actually just reinstalled arch completely and still have the same problem even without a display manager installed.  If i use 'exec i3' from the command line it logs be out of the current shell session.  startx works though still.  Could it be a driver issue or maybe a bad release?

Last edited by fourmyle (2012-01-08 01:44:14)

Offline

#4 2012-01-08 09:22:17

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [Solved] Running exec i3 causes crash and logout

What exactly do you have in your .xinitrc file? Try creating a new file and having only "exec i3" in it. Run it with "xinit /path/to/xinitrc" from tty.

Offline

#5 2012-01-08 09:43:52

fourmyle
Member
Registered: 2011-12-15
Posts: 9

Re: [Solved] Running exec i3 causes crash and logout

https://wiki.archlinux.org/index.php/In … Setting.29

Following the advice in  this section seemed to have fixed the issue.

Offline

#6 2012-01-08 10:15:07

fourmyle
Member
Registered: 2011-12-15
Posts: 9

Re: [Solved] Running exec i3 causes crash and logout

Okay, so things work now with startx from run level 3.  However, things do not work from the XDM login if I boot into run level 5.  The only thing in my .xinitrc is exec i3.

Offline

#7 2012-01-08 15:17:26

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [Solved] Running exec i3 causes crash and logout

Show us your /etc/inittab file and your /etc/rc.conf file


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#8 2012-01-09 18:57:53

fourmyle
Member
Registered: 2011-12-15
Posts: 9

Re: [Solved] Running exec i3 causes crash and logout

/etc/rc.conf
/etc/inittab

Last edited by fourmyle (2012-01-09 18:59:06)

Offline

#9 2012-01-09 19:13:38

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [Solved] Running exec i3 causes crash and logout

In your inittab remove the comment (#) from id:5:initdefault: and insert a comment into the first position of the :id:3 line above it. Then also comment out the line "x:5:respawn:/usr/bin/xdm -nodaemon".

then you should boot into xdm fine and login and it should then execute your .xinitrc file correctly.


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#10 2012-01-09 19:30:52

fourmyle
Member
Registered: 2011-12-15
Posts: 9

Re: [Solved] Running exec i3 causes crash and logout

Right, that's what I did before.  It boots into the xdm login screen correctly and then once I login it just kicks me back to the xdm login screen.

Offline

#11 2012-01-09 20:14:25

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [Solved] Running exec i3 causes crash and logout

If that occurs it can be for only 4 reasons: your .xinitrc file is incorrect, i3 is not set up properly, xdm is not setup properly or your login/password don't match.


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#12 2012-01-09 21:54:05

fourmyle
Member
Registered: 2011-12-15
Posts: 9

Re: [Solved] Running exec i3 causes crash and logout

I fixed it.  Had to make .xinitrc executable with a chmod 744 .xinitrc. smile Thanks.

Offline

Board footer

Powered by FluxBB