Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] [OpenRC] Boot into LightDM (Read 2683 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] [OpenRC] Boot into LightDM

So I'm aware of this change, but I am probably doing something wrong. I have enabled the service with
Code: [Select]
rc-update add lightdm default
, but after rebooting, the system doesn't boot into LightDM. Can anyone help?

Re: [OpenRC] Boot into LightDM

Reply #1
this change was in January 2021, really you set up it now? wow
we can help, if you put here some logs....  ;)
ideally Xorg.0.log and lightdm.log from /var/log

edit:
you used lightdm before without problems, i suppose

Re: [OpenRC] Boot into LightDM

Reply #2
Code: [Select]
usr/bin/openrc-run

command="/usr/bin/lightdm"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true

depend() {
    need localmount

    after bootmisc consolefont modules netmount
    after ypbind autofs openvpn gpm lircmd
    after quota keymaps acpid
    before alsasound
    want elogind
    use xfs
    provide xdm
}
script is simple,  it just call /usr/bin/lightdm command...

Re: [OpenRC] Boot into LightDM

Reply #3
Thanks, I found the error in lightdm.log. I somehow forgot to install
Code: [Select]
lightdm-gtk-greet
  ::)

Re: [SOLVED] [OpenRC] Boot into LightDM

Reply #4
I have another problem now. LightDM doesn't boot after init and instead shows a single blinking underscore. I can access TTY from there, but it also gives me this message:
Code: [Select]
Cannot open display "default display"

Here are my logs:

lightdm.log:
Code: [Select]
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=2688
[+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: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+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 has property CanMultiSession=no
[+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.02s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.02s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.02s] DEBUG: XServer 0: Launching X Server
[+0.02s] DEBUG: Launching process 2694: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.02s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.03s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.03s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.03s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.03s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.04s] DEBUG: Seat seat0 changes active session to
[+0.04s] DEBUG: Process 2694 exited with return value 1
[+0.04s] DEBUG: XServer 0: X server stopped
[+0.04s] DEBUG: Releasing VT 7
[+0.04s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.04s] DEBUG: Seat seat0: Display server stopped
[+0.04s] DEBUG: Seat seat0: Stopping session
[+0.04s] DEBUG: Seat seat0: Session stopped
[+0.04s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.04s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.04s] DEBUG: Seat seat0: Stopping
[+0.04s] DEBUG: Seat seat0: Stopped
[+0.04s] DEBUG: Required seat has stopped
[+0.04s] DEBUG: Stopping display manager
[+0.04s] DEBUG: Display manager stopped
[+0.04s] DEBUG: Stopping daemon
[+0.04s] DEBUG: Exiting with return value 1

Xorg.0.log:
Code: [Select]
[  1462.031] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[  1462.031]
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[  1462.031] Build Operating System: Linux Artix Linux
[  1462.031] Current Operating System: Linux artix 5.11.8-zen1-1-zen #1 ZEN SMP PREEMPT Sun, 21 Mar 2021 11:05:35 +0000 x86_64
[  1462.031] Kernel command line: BOOT_IMAGE=/vmlinuz-linux-zen root=UUID=56fee884-86b5-44a6-8fb3-699a472b36fc rw rootflags=subvol=@ cryptdevice=/dev/sda2:cryptroot loglevel=3 quiet
[  1462.032] Build Date: 14 December 2020  12:57:17PM
[  1462.032] 
[  1462.032] Current version of pixman: 0.40.0
[  1462.032] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[  1462.032] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1462.032] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar 25 14:22:06 2021
[  1462.032] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1462.032] (==) No Layout section.  Using the first Screen section.
[  1462.032] (==) No screen section available. Using defaults.
[  1462.032] (**) |-->Screen "Default Screen Section" (0)
[  1462.032] (**) |   |-->Monitor "<default monitor>"
[  1462.032] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[  1462.032] (==) Automatically adding devices
[  1462.032] (==) Automatically enabling devices
[  1462.032] (==) Automatically adding GPU devices
[  1462.032] (==) Automatically binding GPU devices
[  1462.032] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1462.032] (WW) The directory "/usr/share/fonts/misc" does not exist.
[  1462.032] Entry deleted from font path.
[  1462.032] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[  1462.032] Entry deleted from font path.
[  1462.032] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[  1462.032] Entry deleted from font path.
[  1462.032] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[  1462.032] (==) ModulePath set to "/usr/lib/xorg/modules"
[  1462.032] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[  1462.032] (II) Module ABI versions:
[  1462.032] X.Org ANSI C Emulation: 0.4
[  1462.032] X.Org Video Driver: 24.1
[  1462.032] X.Org XInput driver : 24.1
[  1462.032] X.Org Server Extension : 10.0
[  1462.033] (++) using VT number 7

[  1462.033] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[  1462.035] (--) PCI:*(6@0:0:0) 10de:2184:10de:2184 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[  1462.036] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  1462.036] (II) LoadModule: "glx"
[  1462.036] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1462.036] (II) Module glx: vendor="X.Org Foundation"
[  1462.036] compiled for 1.20.10, module version = 1.0.0
[  1462.037] ABI class: X.Org Server Extension, version 10.0
[  1462.037] (==) Matched nouveau as autoconfigured driver 0
[  1462.037] (==) Matched nv as autoconfigured driver 1
[  1462.037] (==) Matched modesetting as autoconfigured driver 2
[  1462.037] (==) Matched fbdev as autoconfigured driver 3
[  1462.037] (==) Matched vesa as autoconfigured driver 4
[  1462.037] (==) Assigned the driver to the xf86ConfigLayout
[  1462.037] (II) LoadModule: "nouveau"
[  1462.037] (WW) Warning, couldn't open module nouveau
[  1462.037] (EE) Failed to load module "nouveau" (module does not exist, 0)
[  1462.037] (II) LoadModule: "nv"
[  1462.037] (WW) Warning, couldn't open module nv
[  1462.037] (EE) Failed to load module "nv" (module does not exist, 0)
[  1462.037] (II) LoadModule: "modesetting"
[  1462.037] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  1462.037] (II) Module modesetting: vendor="X.Org Foundation"
[  1462.037] compiled for 1.20.10, module version = 1.20.10
[  1462.037] Module class: X.Org Video Driver
[  1462.037] ABI class: X.Org Video Driver, version 24.1
[  1462.037] (II) LoadModule: "fbdev"
[  1462.037] (WW) Warning, couldn't open module fbdev
[  1462.037] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  1462.037] (II) LoadModule: "vesa"
[  1462.037] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[  1462.037] (II) Module vesa: vendor="X.Org Foundation"
[  1462.037] compiled for 1.20.9, module version = 2.5.0
[  1462.037] Module class: X.Org Video Driver
[  1462.037] ABI class: X.Org Video Driver, version 24.1
[  1462.037] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1462.037] (II) VESA: driver for VESA chipsets: vesa
[  1462.041] (EE) open /dev/dri/card0: No such file or directory
[  1462.041] (WW) Falling back to old probe method for modesetting
[  1462.041] (EE) open /dev/dri/card0: No such file or directory
[  1462.041] vesa: Refusing to run on UEFI
[  1462.041] (EE) Screen 0 deleted because of no matching config section.
[  1462.041] (II) UnloadModule: "modesetting"
[  1462.041] (EE) Device(s) detected, but none match those in the config file.
[  1462.041] (EE)
Fatal server error:
[  1462.041] (EE) no screens found(EE)
[  1462.042] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
 for help.
[  1462.042] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1462.042] (EE)
[  1462.043] (EE) Server terminated with error (1). Closing log file.

Re: [SOLVED] [OpenRC] Boot into LightDM

Reply #5
Code: [Select]
[  1462.037] (II) LoadModule: "nouveau"
[  1462.037] (WW) Warning, couldn't open module nouveau
[  1462.037] (EE) Failed to load module "nouveau" (module does not exist, 0)
[  1462.037] (II) LoadModule: "nv"
[  1462.037] (WW) Warning, couldn't open module nv
[  1462.037] (EE) Failed to load module "nv" (module does not exist, 0)
Install and load those kernel modules. You'll need nvidia and nvidia-utils, and I'd also have xf86-video-nouveau just in case.

I find this tutorial about installing Artix from scratch to be very good: https://youtu.be/XO5LTmIhUTs

Re: [SOLVED] [OpenRC] Boot into LightDM

Reply #6
I had all of these installed.
Code: [Select]
sudo modprobe nouveau
did the trick. However, I want 1. to use the proprietary drivers and 2. LightDM to launch instantly. What am I missing?

 

Re: [SOLVED] [OpenRC] Boot into LightDM

Reply #7
1. If your card isn't supported by the nv driver, then you must use nouveau. But first try to disable nouveau and use nv.

More about NVIDIA here: https://wiki.archlinux.org/index.php/NVIDIA

2. This depends on your definition of "instantly". In my opinion, having a DM at all is bloat. I use tty login to log onto the system and my .bash_profile runs startx. That would be the fastest possible login on X.