You are not logged in.

#1 2017-10-30 22:11:16

fuyuki
Member
Registered: 2017-10-20
Posts: 23

X fails to start with LightDM under OpenRC.

Relevant info

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.24.0, UID=0 PID=2232
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+0.01s] DEBUG: XServer 1: Writing X server authority to /run/lightdm/root/:1
[+0.01s] DEBUG: XServer 1: Launching X Server
[+0.01s] DEBUG: Launching process 2246: /usr/bin/X :1 -seat seat0 -auth /run/lightdm/root/:1 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.07s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.07s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.07s] DEBUG: Process 2246 exited with return value 1
[+0.07s] DEBUG: XServer 1: X server stopped
[+0.07s] DEBUG: Releasing VT 7
[+0.07s] DEBUG: XServer 1: Removing X server authority /run/lightdm/root/:1
[+0.07s] DEBUG: Seat seat0: Display server stopped

The first three config directories are empty (?), but here's the last, excluding comments

run-directory=/run/lightdm
dbus-service=true
[Seat:*]
greeter-session=lightdm-gtk-greeter
session-wrapper=/etc/lightdm/Xsession

The X server log

X.Org X Server 1.19.5
Release Date: 2017-10-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.54-1-lts x86_64 
Current Operating System: Linux vanitas 4.13.9-1-ARCH #1 SMP PREEMPT Sun Oct 22 09:07:32 CEST 2017 x86_64
Kernel command line: \boot\vmlinuz-linux root=/dev/sda2 rootfstype=ext4 rw add_efi_memmap initrd=boot\initramfs-linux.img
Build Date: 12 October 2017  09:59:53PM
 
Current version of pixman: 0.34.0
	Before reporting problems, check [url]http://wiki.x.org[/url]
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Oct 29 16:02:01 2017
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at [url]http://wiki.x.org[/url]
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
(EE) 

And with a textdump about supported graphics cards snipped

[    11.073] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    11.073] (==) Log file: "/var/log/Xorg.1.log", Time: Sun Oct 29 16:02:01 2017
[    11.073] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    11.073] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    11.073] (==) No Layout section.  Using the first Screen section.
[    11.073] (==) No screen section available. Using defaults.
[    11.073] (**) |-->Screen "Default Screen Section" (0)
[    11.073] (**) |   |-->Monitor "<default monitor>"
[    11.073] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    11.073] (==) Automatically adding devices
[    11.073] (==) Automatically enabling devices
[    11.073] (==) Automatically adding GPU devices
[    11.073] (==) Automatically binding GPU devices
[    11.073] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    11.074] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    11.074] 	Entry deleted from font path.
[    11.074] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    11.074] 	Entry deleted from font path.
[    11.074] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    11.074] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    11.074] 	Entry deleted from font path.
[    11.074] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    11.074] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[    11.074] (==) ModulePath set to "/usr/lib/xorg/modules"
[    11.074] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    11.074] (II) Loader magic: 0x564e16226d60
[    11.074] (II) Module ABI versions:
[    11.074] 	X.Org ANSI C Emulation: 0.4
[    11.074] 	X.Org Video Driver: 23.0
[    11.074] 	X.Org XInput driver : 24.1
[    11.074] 	X.Org Server Extension : 10.0
[    11.075] (++) using VT number 7

[    11.075] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    11.075] (II) xfree86: Adding drm device (/dev/dri/card0)
[    11.076] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    11.081] (--) PCI:*(0:0:1:0) 1002:9850:103c:8305 rev 64, Mem @ 0xe0000000/268435456, 0xf0000000/8388608, 0xf0d00000/262144, I/O @ 0x00004000/256, BIOS @ 0x????????/131072
[    11.081] (II) Open ACPI successful (/var/run/acpid.socket)
[    11.081] (II) LoadModule: "glx"
[    11.082] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    11.084] (II) Module glx: vendor="X.Org Foundation"
[    11.084] 	compiled for 1.19.5, module version = 1.0.0
[    11.084] 	ABI class: X.Org Server Extension, version 10.0
[    11.084] (==) Matched ati as autoconfigured driver 0
[    11.084] (==) Matched modesetting as autoconfigured driver 1
[    11.084] (==) Matched fbdev as autoconfigured driver 2
[    11.084] (==) Matched vesa as autoconfigured driver 3
[    11.084] (==) Assigned the driver to the xf86ConfigLayout
[    11.084] (II) LoadModule: "ati"
[    11.084] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[    11.084] (II) Module ati: vendor="X.Org Foundation"
[    11.084] 	compiled for 1.19.3, module version = 7.10.0
[    11.084] 	Module class: X.Org Video Driver
[    11.084] 	ABI class: X.Org Video Driver, version 23.0
[    11.085] (II) LoadModule: "radeon"
[    11.085] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[    11.085] (II) Module radeon: vendor="X.Org Foundation"
[    11.085] 	compiled for 1.19.3, module version = 7.10.0
[    11.085] 	Module class: X.Org Video Driver
[    11.085] 	ABI class: X.Org Video Driver, version 23.0
[    11.085] (II) LoadModule: "modesetting"
[    11.085] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    11.086] (II) Module modesetting: vendor="X.Org Foundation"
[    11.086] 	compiled for 1.19.5, module version = 1.19.5
[    11.086] 	Module class: X.Org Video Driver
[    11.086] 	ABI class: X.Org Video Driver, version 23.0
[    11.086] (II) LoadModule: "fbdev"
[    11.086] (WW) Warning, couldn't open module fbdev
[    11.086] (II) UnloadModule: "fbdev"
[    11.086] (II) Unloading fbdev
[    11.086] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    11.086] (II) LoadModule: "vesa"
[    11.086] (WW) Warning, couldn't open module vesa
[    11.086] (II) UnloadModule: "vesa"
[    11.086] (II) Unloading vesa
[    11.086] (EE) Failed to load module "vesa" (module does not exist, 0)
[    11.086] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
<snip>
[    11.092] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    11.092] (II) [KMS] Kernel modesetting enabled.
[    11.092] (WW) Falling back to old probe method for modesetting
[    11.092] (II) RADEON(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    11.092] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
[    11.092] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[    11.092] (==) RADEON(0): Default visual is TrueColor
[    11.092] (==) RADEON(0): RGB weight 888
[    11.092] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
[    11.092] (--) RADEON(0): Chipset: "MULLINS" (ChipID = 0x9850)
[    11.093] (EE) RADEON(0): [drm] failed to set drm interface version.
[    11.093] (EE) RADEON(0): Kernel modesetting setup failed
[    11.093] (II) UnloadModule: "radeon"
[    11.093] (EE) Screen(s) found, but none have a usable configuration.
[    11.093] (EE) 
Fatal server error:
[    11.093] (EE) no screens found(EE) 

But everything works fine with SDDM, and turning modesetting off gives the exact same outcome. Any ideas?

Last edited by fuyuki (2017-10-31 00:02:56)


Arch | amd64 | rEFInd | OpenRC | MATE | PulseAudio

Offline

#2 2017-10-30 23:42:57

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: X fails to start with LightDM under OpenRC.

Please edit your post to use code tags instead of quotes for terminal output.

https://bbs.archlinux.org/help.php#bbcode

Last edited by 2ManyDogs (2017-10-30 23:43:57)

Offline

#3 2017-10-31 00:03:48

fuyuki
Member
Registered: 2017-10-20
Posts: 23

Re: X fails to start with LightDM under OpenRC.

2ManyDogs wrote:

Please edit your post to use code tags instead of quotes for terminal output.

https://bbs.archlinux.org/help.php#bbcode

k

though technically speaking it was from text files rather than out of a terminal but w/e, done


Arch | amd64 | rEFInd | OpenRC | MATE | PulseAudio

Offline

#4 2017-10-31 14:59:41

seth
Member
Registered: 2012-09-03
Posts: 51,239

Re: X fails to start with LightDM under OpenRC.

[    11.076] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

Output of

stat /dev/dri/card0
groups lightdm

and if stat tells you that the file doesn't exist, a complete dmesg, please.

Also, just to be sure:

lspci

(mostly whether this is a hybrid system)

Offline

#5 2017-10-31 20:47:30

fuyuki
Member
Registered: 2017-10-20
Posts: 23

Re: X fails to start with LightDM under OpenRC.

stat /dev/dri/card0

  File: /dev/dri/card0
  Size: 0         	Blocks: 0          IO Block: 4096   キャラクタスペシャルファイル
Device: 6h/6d	Inode: 9281        Links: 1     Device type: e2,0
Access: (0660/crw-rw----)  Uid: (    0/    root)   Gid: (   91/   video)
Access: 2017-10-31 12:25:47.387874193 -0700
Modify: 2017-10-31 12:25:47.387874193 -0700
Change: 2017-10-31 12:34:42.963364938 -0700
 Birth: -

groups lightdm

video lightdm

As for lspci, the only video device listed is

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R3 Graphics] (rev 40)

(I did add lightdm to video myself wondering if that would work, but the output from the opening post was after I added it... so.)


Arch | amd64 | rEFInd | OpenRC | MATE | PulseAudio

Offline

#6 2017-10-31 21:04:53

seth
Member
Registered: 2012-09-03
Posts: 51,239

Re: X fails to start with LightDM under OpenRC.

Humm... did you remove the suid flag?

stat /usr/lib/xorg-server/Xorg.wrap

Offline

#7 2017-10-31 21:19:06

fuyuki
Member
Registered: 2017-10-20
Posts: 23

Re: X fails to start with LightDM under OpenRC.

  File: /usr/lib/xorg-server/Xorg.wrap
  Size: 10400     	Blocks: 24         IO Block: 4096   通常ファイル
Device: 802h/2050d	Inode: 133158      Links: 1
Access: (4755/-rwsr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-10-30 15:13:48.716212813 -0700
Modify: 2017-10-12 13:01:12.316749222 -0700
Change: 2017-10-26 22:55:03.598570876 -0700
 Birth: -

Arch | amd64 | rEFInd | OpenRC | MATE | PulseAudio

Offline

#8 2017-11-01 07:38:51

seth
Member
Registered: 2012-09-03
Posts: 51,239

Offline

#9 2017-11-01 20:36:18

fuyuki
Member
Registered: 2017-10-20
Posts: 23

Re: X fails to start with LightDM under OpenRC.

seth wrote:

That setting didn't change the behaviour or the logs, AFAICT.

And nope, I use this laptop in public too much for autologin, ha.


Arch | amd64 | rEFInd | OpenRC | MATE | PulseAudio

Offline

#10 2017-11-01 21:38:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,792

Re: X fails to start with LightDM under OpenRC.

Moving to AUR issues.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2017-11-03 13:34:53

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: X fails to start with LightDM under OpenRC.

please post output of rc-status --all , and the openrc service files used to start sddm and lightdm .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#12 2017-11-04 21:22:24

fuyuki
Member
Registered: 2017-10-20
Posts: 23

Re: X fails to start with LightDM under OpenRC.

Lone_Wolf wrote:

please post output of rc-status --all , and the openrc service files used to start sddm and lightdm .

Runlevel: sysinit
 sysfs                                                             [  started  ]
 devfs                                                             [  started  ]
 udev                                                              [  started  ]
 dmesg                                                             [  started  ]
 kmod-static-nodes                                                 [  started  ]
 opentmpfiles-dev                                                  [  started  ]
 udev-trigger                                                      [  started  ]
 xdm                                                               [  started  ]
Runlevel: nonetwork
 local                                                             [  started  ]
Runlevel: default
 udev                                                              [  started  ]
 device-mapper                                                     [  started  ]
 dbus                                                              [  started  ]
 elogind                                                           [  started  ]
 NetworkManager                                                    [  started  ]
 syslog-ng                                                         [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 gpm                                                               [  started  ]
 xdm                                                               [  started  ]
 acpid                                                             [  started  ]
 alsasound                                                         [  started  ]
 local                                                             [  started  ]
 agetty.tty5                                           [  started 00:35:50 (0) ]
 agetty.tty1                                           [  started 00:35:50 (0) ]
 agetty.tty4                                           [  started 00:35:50 (0) ]
 agetty.tty2                                           [  started 00:35:50 (0) ]
 agetty.tty6                                           [  started 00:35:50 (0) ]
 agetty.tty3                                           [  started 00:35:50 (0) ]
Runlevel: shutdown
 savecache                                                         [  stopped  ]
 killprocs                                                         [  stopped  ]
 mount-ro                                                          [  stopped  ]
Runlevel: boot
 hwclock                                                           [  started  ]
 swap                                                              [  started  ]
 loopback                                                          [  started  ]
 modules                                                           [  started  ]
 fsck                                                              [  started  ]
 root                                                              [  started  ]
 mtab                                                              [  started  ]
 localmount                                                        [  started  ]
 sysctl                                                            [  started  ]
 bootmisc                                                          [  started  ]
 termencoding                                                      [  started  ]
 keymaps                                                           [  started  ]
 hostname                                                          [  started  ]
 procfs                                                            [  started  ]
 binfmt                                                            [  started  ]
 urandom                                                           [  started  ]
 opentmpfiles-setup                                                [  started  ]
 net.lo                                                            [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 xdm-setup                                                         [  started  ]
 modules-load                                                      [  started  ]
Dynamic Runlevel: manual

As for the OpenRC file, it's just a plain /etc/conf.d/xdm with DISPLAYMANAGER="sddm" in it right now. I've only tried initialising lightdm the same way--and it seems to initialise, at least, so I suspect that much is working.

Also, I've changed drivers (to amdgpu--"experimental" on my GPU but seems to work well enough) since the earlier posts, but still have KMS on and still get the same errors when trying LightDM. I'm not sure that's relevant, but just so you know.

(By the way, since you seem to use OpenRC too are actually the one keeping OpenRC in the AUR (thanks), I was wondering if you think I should add a bit to the wiki about setting up suspend/hibernate for OpenRC? It had to be manually reconfigured for me and the wiki doesn't mention it at the moment.)

Last edited by fuyuki (2017-11-04 21:56:51)


Arch | amd64 | rEFInd | OpenRC | MATE | PulseAudio

Offline

#13 2017-11-06 13:06:59

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: X fails to start with LightDM under OpenRC.

Wiki is somewhat tricky, as there are (atleast) 2 openrc implementations for arch linux, and the wiki doesn't differentiate.

The aur package I (co-)maintain is used by  a small group of arch users [1] that prefer to use openrc with as little changes to official packages as possible.
That means keeping systemd installed and only use nosystemd stuff if there's no other choice.
A much larger group focuses on running arch linux without any trace of systemd.

AUR has packages for both groups, and while the two implementations do conflict, there are more then enough similarities for someone like me to help users of the other group.

As long as you make clear you're not using agp way but the other implementation, adding suspend/hibernate configuration info is fine with me.
------------------------------------------

back to the lightdm start problem :
the rc-status output doesn't show weird stuff, do you have a greeter for lightdm installed ?

If yes, where do you get the elogind package from (aur page suggests it doesn't build atm) ?

[1]
There used to be several people doing that, but I have no idea how many are still using openrc that way.
It could be it's now a group of one (me).

Last edited by Lone_Wolf (2017-11-06 13:07:22)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#14 2017-11-06 15:58:04

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: X fails to start with LightDM under OpenRC.

That "much larger" group gave up on Arch Linux and merged their implementation with Manjaro. As such, any AUR packages for them have no relevance to Arch and should be removed (most are).


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB