Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Openrc sometimes doesn't start display manager on boot after update (Read 2263 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Openrc sometimes doesn't start display manager on boot after update

I installed artix openrc xfce edition from the iso a few months ago and lightdm started started automatically on system boot every time as expected.

Around 2 months ago, I did a system upgrade via pacman -Syyu. Ever since the upgrade, most of the time, my system will boot to the tty without starting the DM and I'll have to start the DM manually from the tty. I say most of the time because about 1/5 times the DM will auto start.

I tried performing a system upgrade again (pacman -Syyu), which didn't fix it. I've tried installing and switching to lxdm (which I prefer anyway), and still the exact same issue.

xdm service is running. Output of rc-status --all

Code: [Select]
Runlevel: nonetwork
 local                                                                                                                     [  started  ]
Runlevel: shutdown
 savecache                                                                                                                 [  stopped  ]
 killprocs                                                                                                                 [  stopped  ]
 mount-ro                                                                                                                  [  stopped  ]
Runlevel: sysinit
 sysfs                                                                                                                     [  started  ]
 devfs                                                                                                                     [  started  ]
 udev                                                                                                                      [  started  ]
 kmod-static-nodes                                                                                                         [  started  ]
 opentmpfiles-dev                                                                                                          [  started  ]
 cgroups                                                                                                                   [  started  ]
 dmesg                                                                                                                     [  started  ]
 udev-trigger                                                                                                              [  started  ]
Runlevel: boot
 hwclock                                                                                                                   [  started  ]
 modules                                                                                                                   [  started  ]
 fsck                                                                                                                      [  started  ]
 root                                                                                                                      [  started  ]
 mtab                                                                                                                      [  started  ]
 swap                                                                                                                      [  started  ]
 localmount                                                                                                                [  started  ]
 sysctl                                                                                                                    [  started  ]
 bootmisc                                                                                                                  [  started  ]
 elogind                                                                                                                   [  started  ]
 urandom                                                                                                                   [  started  ]
 termencoding                                                                                                              [  started  ]
 keymaps                                                                                                                   [  started  ]
 save-keymaps                                                                                                              [  started  ]
 opensysusers                                                                                                              [  started  ]
 procfs                                                                                                                    [  started  ]
 loopback                                                                                                                  [  started  ]
 hostname                                                                                                                  [  started  ]
 binfmt                                                                                                                    [  started  ]
 save-termencoding                                                                                                         [  started  ]
 opentmpfiles-setup                                                                                                        [  started  ]
 net.lo                                                                                                                    [  started  ]
Runlevel: default
 dbus                                                                                                                      [  started  ]
 connmand                                                                                                                  [  started  ]
 netmount                                                                                                                  [  started  ]
 syslog-ng                                                                                                                 [  started  ]
 acpid                                                                                                                     [  started  ]
 bluetoothd                                                                                                                [  started  ]
 cronie                                                                                                                    [  started  ]
 xdm                                                                                                                       [  started  ]
 local                                                                                                                     [  started  ]
 agetty.tty4                                                                                                   [  started 08:21:58 (0) ]
 agetty.tty6                                                                                                   [  started 08:21:58 (0) ]
 agetty.tty1                                                                                                   [  started 08:21:39 (1) ]
 agetty.tty2                                                                                                   [  started 08:21:58 (0) ]
 agetty.tty5                                                                                                   [  started 08:21:58 (0) ]
 agetty.tty3                                                                                                   [  started 08:21:58 (0) ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 xdm-setup                                                                                                                 [  started  ]
 haveged                                                                                                                   [  started  ]
Dynamic Runlevel: manual
 openrc-settingsd 


/etc/conf.d/xdm looks like this
Code: [Select]
# We always try and start X on a static VT. The various DMs normally default
# to using VT7. If you wish to use the xdm init script, then you should ensure
# that the VT checked is the same VT your DM wants to use. We do this check to
# ensure that you haven't accidentally configured something to run on the VT
# in your /etc/inittab file so that you don't get a dead keyboard.
CHECKVT=7

# What display manager do you use ?  [ xdm | gdm | sddm | gpe | entrance | lightdm | lxdm ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
DISPLAYMANAGER="lxdm"

Tried "rc-service --verbose xdm restart" and I get this
Code: [Select]
xdm               |xdm               | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/xdm stop
xdm               | * Stopping lxdm-binary ...
xdm               | * Will stop /usr/bin/lxdm-binary
xdm               | * Will stop processes of `/usr/bin/lxdm-binary'
xdm               | * start-stop-daemon: no matching processes found                                                                                                                                         [ ok ]
xdm               |xdm               | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/xdm start
xdm               | * Setting up lxdm-binary ...
xdm               | * start-stop-daemon: /usr/bin/lxdm-binary is already running
xdm               | * ERROR: could not start the Display Manager 

/etc/.noxdm does not exist on my system.

Any ideas of what I might be overlooking?

Re: Openrc sometimes doesn't start display manager on boot after system update

Reply #1
EDIT: Just realized the first time I grabbed this log, it was AFTER xorg started. Here's one I grabbed immediately after the boot to tty. This looks strange:
Code: [Select]
 [     5.626] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided,

Looks like it's trying to run a systemd service?

/var/log/Xorg.0.log output
Code: [Select]
[     5.614] 
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[     5.614] Build Operating System: Linux Artix Linux
[     5.614] Current Operating System: Linux tony-swift 5.4.74-1-lts #1 SMP Sun, 01 Nov 2020 16:27:42 +0000 x86_64
[     5.614] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=d1a77ccb-ac77-4d57-9124-02e67c72b017 rw net.ifnames=0 quiet
[     5.614] Build Date: 02 September 2020  08:51:09AM
[     5.614] 
[     5.614] Current version of pixman: 0.40.0
[     5.614] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[     5.614] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     5.614] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Nov  4 17:39:20 2020
[     5.623] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     5.623] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     5.623] (==) No Layout section.  Using the first Screen section.
[     5.623] (==) No screen section available. Using defaults.
[     5.623] (**) |-->Screen "Default Screen Section" (0)
[     5.623] (**) |   |-->Monitor "<default monitor>"
[     5.624] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[     5.624] (==) Automatically adding devices
[     5.624] (==) Automatically enabling devices
[     5.624] (==) Automatically adding GPU devices
[     5.624] (==) Automatically binding GPU devices
[     5.624] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     5.626] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     5.626] Entry deleted from font path.
[     5.626] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     5.626] Entry deleted from font path.
[     5.626] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     5.626] Entry deleted from font path.
[     5.626] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     5.626] Entry deleted from font path.
[     5.626] (==) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/TTF
[     5.626] (==) ModulePath set to "/usr/lib/xorg/modules"
[     5.626] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[     5.626] (II) Module ABI versions:
[     5.626] X.Org ANSI C Emulation: 0.4
[     5.626] X.Org Video Driver: 24.1
[     5.626] X.Org XInput driver : 24.1
[     5.626] X.Org Server Extension : 10.0
[     5.626] (++) using VT number 1

[     5.626] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     5.626] (II) xfree86: Adding drm device (/dev/dri/card0)
[     5.626] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[     5.643] (EE)
[     5.643] (EE) Backtrace:
[     5.643] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x53) [0x55cfb4e85bd3]
[     5.644] (EE) 1: /usr/lib/Xorg (0x55cfb4d3f000+0x151a15) [0x55cfb4e90a15]
[     5.644] (EE) 2: /usr/lib/libc.so.6 (0x7ff1bab3f000+0x3d6a0) [0x7ff1bab7c6a0]
[     5.644] (EE) 3: /usr/lib/Xorg (xf86BusProbe+0x1c2) [0x55cfb4e9ae32]
[     5.644] (EE) 4: /usr/lib/Xorg (InitOutput+0xeaa) [0x55cfb4eac44a]
[     5.644] (EE) 5: /usr/lib/Xorg (0x55cfb4d3f000+0x39426) [0x55cfb4d78426]
[     5.644] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xf2) [0x7ff1bab67152]
[     5.644] (EE) 7: /usr/lib/Xorg (_start+0x2e) [0x55cfb4d795ae]
[     5.644] (EE)
[     5.644] (EE) Segmentation fault at address 0x0
[     5.644] (EE)
Fatal server error:
[     5.644] (EE) Caught signal 11 (Segmentation fault). Server aborting
[     5.644] (EE)
[     5.644] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
 for help.
[     5.644] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     5.644] (EE)
[     5.644] (EE) Server terminated with error (1). Closing log file.

Re: Openrc sometimes doesn't start display manager on boot after system update

Reply #2
Quote
systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration

this is no problem, that i have too. (II) = just nformation, not error (EE)

THIS is the big problem:
Quote
(EE) Backtrace:
[     5.643] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x53) [0x55cfb4e85bd3]
[     5.644] (EE) 1: /usr/lib/Xorg (0x55cfb4d3f000+0x151a15) [0x55cfb4e90a15]
[     5.644] (EE) 2: /usr/lib/libc.so.6 (0x7ff1bab3f000+0x3d6a0) [0x7ff1bab7c6a0]
[     5.644] (EE) 3: /usr/lib/Xorg (xf86BusProbe+0x1c2) [0x55cfb4e9ae32]
[     5.644] (EE) 4: /usr/lib/Xorg (InitOutput+0xeaa) [0x55cfb4eac44a]
[     5.644] (EE) 5: /usr/lib/Xorg (0x55cfb4d3f000+0x39426) [0x55cfb4d78426]
[     5.644] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xf2) [0x7ff1bab67152]
[     5.644] (EE) 7: /usr/lib/Xorg (_start+0x2e) [0x55cfb4d795ae]

DRM or your HW failed and produce Segmentation fault!. So your problem have nothing to do with openrc/xdm/lightdm. Before lightdm can start, Xserver crashed.

Try newest kernel instead linux-lts. Can be DRM  or kernel bug or HW fail.

Re: Openrc sometimes doesn't start display manager on boot after system update

Reply #3
That was it. I installed the current linux kernel 5.9.2 and it now boots into Xserver like a charm. Thanks for your help!