You are not logged in.

#1 2014-12-29 23:17:38

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Can't start i3 with xorg

I have a new Arch install and am trying to use i3. When I run startx as root, I am brought to the i3 desktop no problem. When I run startx as a user, however, the X server immediately shuts down with no error.

I am able to start xterm and openbox no problem as user. i3 is the only one I am having issues with.

I noticed a .i3 directory in my root home that doesn't exist in my user's home. Could that be part of my problem?

Last edited by zookeeprr (2014-12-29 23:18:12)

Offline

#2 2014-12-29 23:21:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't start i3 with xorg

What's in your user's .xinitrc?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-12-29 23:25:43

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

The user's .xinitrc is copied from /etc/skel/.xinitrc with i3 added. It is located in the user's home directory.

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec i3

Offline

#4 2014-12-29 23:26:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't start i3 with xorg

...and the permissions on it?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-12-29 23:31:23

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

I'm not sure to be honest. ls -l .xinitrc returns:

-rw-r--r-- 1 $USER $USER 327 $DATETIME .xinitrc

with $USER being the user and $DATETIME being the date and time.

Offline

#6 2014-12-29 23:55:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't start i3 with xorg

That looks fine. How are you attempting to start X as your user?

Have you read this? https://www.archlinux.org/news/xorg-ser … available/


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-12-30 00:00:26

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

I am starting X by executing startx. It acts like it's going to start and then closes the X session. If I type sudo startx, I can enter the i3 environment without problem.

I think the issue is more with i3 than xorg, as I can start openbox if I alter my .xinitrc and type startx. It's only i3 giving me problems.

Offline

#8 2014-12-30 00:02:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't start i3 with xorg

Check the permissions on your i3 files: if you copied them to your $HOME as root, they won't be accessible...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-12-30 00:04:50

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

That may be the issue. Where would I look for the i3 files? I know I have some i3 files in /usr/bin. Are those the ones in question? I also see an .i3 directory under root's home.

Offline

#10 2014-12-30 00:05:44

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Can't start i3 with xorg

zookeeprr wrote:

I noticed a .i3 directory in my root home that doesn't exist in my user's home. Could that be part of my problem?

I think so -- the .i3 folder contains the config file for i3.

The wiki page refers to ~/.config/i3/config -- I do not have this file.

Try this command:

i3-config-wizard

This should generate a basic config file.

Offline

#11 2014-12-30 00:10:48

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

All right, that must be it. I don't have a ~/.config/i3/config file either. How do I change permissions on the .i3 directory? Seems like I would need to have it in my user's home, no?

i3-config-wizard fails when run as non-root.

Offline

#12 2014-12-30 00:13:36

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Can't start i3 with xorg

zookeeprr wrote:

i3-config-wizard fails when run as non-root.

It works just fine for me -- there is something else going on here.

EDIT: What is the exact error message when you try to run the config wizard?

EDIT AGAIN: Silly question (maybe), but how did you install i3?

Last edited by Head_on_a_Stick (2014-12-30 00:16:54)

Offline

#13 2014-12-30 00:14:34

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

Could it be a problem with my i3 install?

Offline

#14 2014-12-30 00:15:41

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

When running i3-config-wizard, It fails with the message "Cannot open display"

Offline

#15 2014-12-30 00:19:46

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Can't start i3 with xorg

zookeeprr wrote:

When running i3-config-wizard, It fails with the message "Cannot open display"

Yeah sorry, it does that when you run it from the console (TTY).

Try copying the .i3 folder over from root & run this:

# chown -R <user name>:<user name> .i3

Offline

#16 2014-12-30 00:20:17

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

No silly questions! I installed i3 by running sudo pacman -S i3 and choosing "all" at the prompt.

Offline

#17 2014-12-30 00:22:58

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Can't start i3 with xorg

zookeeprr wrote:

I installed i3 by running sudo pacman -S i3

That's probably fine, but you should really update your system every time you install new packages (check the news page first!):

# pacman -Syu i3

Offline

#18 2014-12-30 00:25:53

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

Good to know about installing new packages! I just ran an upgrade and it listed nothing to do, so we're good there.

I ran chown -R $USER:$USER .i3
It completed with no errors, but startx still fails to load.

Offline

#19 2014-12-30 00:28:47

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Can't start i3 with xorg

Start an openbox session & run the `i3-config-wizard` command from there.

I'm rapidly running out of ideas here...

Offline

#20 2014-12-30 00:29:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: Can't start i3 with xorg

Can we get your xorg log? It should be in ~/.local/share/xorg/

Online

#21 2014-12-30 00:38:54

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

Well, hmmm. The plot thickens.

Running i3-config-wizard in an openbox session won't work without root permission. When prefacing with sudo, it says the root/.i3/config already exists.

~/.local/share/xorg does not exist.

Offline

#22 2014-12-30 00:40:44

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Can't start i3 with xorg

How did you create your user account?

Offline

#23 2014-12-30 00:42:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: Can't start i3 with xorg

zookeeprr wrote:

~/.local/share/xorg does not exist.

Well that can't be good. What are the permissions on ~/.local and ~./local/share?

Online

#24 2014-12-30 00:45:33

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: Can't start i3 with xorg

I believe I used

# useradd -m -G $GROUP -s /bin/bash $USER

Offline

#25 2014-12-30 00:46:42

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: Can't start i3 with xorg

Stop using variable expressions -- what exactly did you type in?

Offline

Board footer

Powered by FluxBB