You are not logged in.

#1 2017-07-08 00:54:09

thebardian
Member
Registered: 2017-07-02
Posts: 9

I3 starts from gdm but crashes from TTY

I am able to start up a gnome wayland session or also sway from TTY without any problems, but i3 / Xorg crashes every time I try, using the same exact config files that I always do [this is on a fresh arch install.]

I suspect I may be missing a package. I3 does launch and work normally when launched from gdm, however I do not want to use gdm. Any ideas?

Here's the crash log from Xorg: https://pastebin.com/AkS8btt9
contents of .xinitrc: https://pastebin.com/nme0nyAk
contents of .xserverrc https://pastebin.com/UJJTSrue

Thanks.

Last edited by thebardian (2017-07-08 03:28:17)

Offline

#2 2017-07-08 01:08:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: I3 starts from gdm but crashes from TTY

How exactly do you launch "from a TTY"?  This seems to be the relevant error in your Xorg log:

[  1919.660] (EE) systemd-logind: TakeControl failed: Device or resource busy

I've only seen that error when one tries to start X from within an already running X session.

When you try to start i3 from a tty, do you stop GDM (and/or disable and reboot)?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-07-08 01:16:14

thebardian
Member
Registered: 2017-07-02
Posts: 9

Re: I3 starts from gdm but crashes from TTY

On boot I'm on tty1, I have gdm disabled. I have tried typing both startx and also xinit -- :1

I may have had a DE open prior, however, I'm going to reboot and try startx and check the log again. edit: this did not fix it.

Last edited by thebardian (2017-07-08 02:29:02)

Offline

#4 2017-07-08 01:33:09

thebardian
Member
Registered: 2017-07-02
Posts: 9

Re: I3 starts from gdm but crashes from TTY

[  1919.660] (EE) systemd-logind: TakeControl failed: Device or resource busy

Yeah, it still remains.

That reminds me, when I start a gnome-wayland session using simple bash script:

#!/bin/bash
XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session

I get a similar message, but I've been ignoring it because all seems to work. Could the issues be related?

Activating service name='org.freedesktop.systemd1'
Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1

Last edited by thebardian (2017-07-08 01:35:22)

Offline

#5 2017-07-08 03:06:43

seth
Member
Registered: 2012-09-03
Posts: 49,992

Offline

#6 2017-07-08 03:12:27

thebardian
Member
Registered: 2017-07-02
Posts: 9

Re: I3 starts from gdm but crashes from TTY

Hi, I am trying to start i3 using xserver from a tty. Not gdm/wayland. I have i3 and its' dependencies installed. What am I missing here?

Offline

#7 2017-07-08 03:38:35

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: I3 starts from gdm but crashes from TTY

Ah, sorry.

systemd-logind: TakeControl failed: Device or resource busy
/dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

I'd object the "vt$XDG_VTNR" bit  - should likely be "-keeptty"?
Otherwise: Is your user in the video group, do you attempt to use a rootless X11?

Offline

#8 2017-07-08 04:01:17

thebardian
Member
Registered: 2017-07-02
Posts: 9

Re: I3 starts from gdm but crashes from TTY

seth wrote:

Ah, sorry.

systemd-logind: TakeControl failed: Device or resource busy
/dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

I'd object the "vt$XDG_VTNR" bit  - should likely be "-keeptty"?
Otherwise: Is your user in the video group, do you attempt to use a rootless X11?

No worries. I tried first -keeptty and adding to video group, I get the same crash.

By the way, I grabbed that vt$XDG_VTNR bit straight from the wiki. https://wiki.archlinux.org/index.php/Xinit#xserverrc

I think you may be on to something regarding a rootless X11, I will look further in to this.

Last edited by thebardian (2017-07-08 04:16:57)

Offline

#9 2017-07-08 04:12:07

thebardian
Member
Registered: 2017-07-02
Posts: 9

Re: I3 starts from gdm but crashes from TTY

I don't know if I am running rootless or not? I just became aware of the issue from you! Thanks for the pointer!

The wiki says I can tell X if it  "needs_root_rights = yes" or not in /etc/X11/Xwrapper.config but I do not have the file.

I am searching through https://www.archlinux.org/groups/x86_64/xorg-apps/ xorg-apps, I wish I knew which apps specifically I needed here.

Thanks.

Offline

#10 2017-07-08 04:42:37

thebardian
Member
Registered: 2017-07-02
Posts: 9

Re: I3 starts from gdm but crashes from TTY

I have /etc/X11/Xwrapper.config set to "needs_root_rights = yes"

I have found more information here:
Xorg :0 -configure
outputs a different error among other stuff

"Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting"

https://pastebin.com/DMYaTVDw

As well as this interesting bit from .xorg.log

(EE)
Fatal server error:
(EE) no screens found(EE)

https://pastebin.com/CXPhSEkc

I have followed the wiki almost verbatim here in regards to installation and configuration of xorg xinit and i3.

I'm sure it's something silly though. Other wise how is gdm able to get it going but I am not! Grr.

Thanks to any who chime in.

Last edited by thebardian (2017-07-08 04:44:38)

Offline

#11 2017-07-09 05:40:48

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: I3 starts from gdm but crashes from TTY

"Xorg -configure" won't work anyway.
Output of "loginctl show-session $XDG_SESSION_ID"?

Offline

Board footer

Powered by FluxBB