I3 lightdm fails at boot after update

Lightdm fails me at boot time, but I can open a second console with Ctrl+Alt+F2, login and continue the boot, which makes me logged in into 2 terminals:

tty2         2021-09-23 07:32
tty7         2021-09-23 08:40 (:0)

This is working for me but I like to see this fixed. Can someone point me in the right direction?

This is the /var/log/Xorg.0.log log from the failed boot:

[     4.262]  X.O r g X Server 1.20.13   X Protocol Version 11, Revision 0
[     4.262] Build Operating System: Linux Manjaro Linux
[     4.262] Current Operating System: Linux 5.10.63-1-MANJARO #1 SMP PREEMPT Wed Sep 8 14:13:59 UTC 2021 x86_64
[     4.262] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=9e7bfd9e-d45b-4ef0-b169-c42259bd06c5 rw quiet apparmor=1 security=apparmor udev.log_priority=3
[     4.262] Build Date: 24 August 2021  10:21:29AM
[     4.262] Current version of pixman: 0.40.0
[     4.262]    Before reporting problems, check wiki.x.o r g to make sure that you have the latest version.
[     4.262] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     4.262] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 23 05:24:10 2021
[     4.262] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     4.262] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     4.262] (==) No Layout section.  Using the first Screen section.
[     4.262] (==) No screen section available. Using defaults.
[     4.262] (**) |-->Screen "Default Screen Section" (0)
[     4.262] (**) |   |-->Monitor "<default monitor>"
[     4.262] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[     4.262] (==) Automatically adding devices
[     4.262] (==) Automatically enabling devices
[     4.262] (==) Automatically adding GPU devices
[     4.262] (==) Automatically binding GPU devices
[     4.262] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     4.262] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     4.262]    Entry deleted from font path.
[     4.262] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     4.262]    Entry deleted from font path.
[     4.262] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     4.262]    Entry deleted from font path.
[     4.262] (==) FontPath set to:
        /usr/share/fonts/misc,
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF
[     4.263] (==) ModulePath set to "/usr/lib/xorg/modules"
[     4.263] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[     4.263] (II) Module ABI versions:
[     4.263]    X.O rg ANSI C Emulation: 0.4
[     4.263]    X.O rg Video Driver: 24.1
[     4.263]    X.O rg XInput driver : 24.1
[     4.263]    X.O rg Server Extension : 10.0
[     4.263] (++) using VT number 7

[     4.263] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     4.265] (--) PCI:*(0@0:2:0) 8086:3e9b:1028:0832 rev 0, Mem @ 0xaf000000/16777216, 0x60000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[     4.265] (--) PCI: (1@0:0:0) 1002:67e8:1028:0832 rev 0, Mem @ 0x4100000000/4294967296,x4080000000/2097152, 0xb0200000/262144, I/O @ 0x00003000/256, BIOS @ x????????/131072
[     4.265] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     4.265] (II) LoadModule: "glx"
[     4.265] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     4.266] (II) Module glx: vendor="X.O rg Foundation"
[     4.266]    compiled for 1.20.13, module version = 1.0.0
[     4.266]    ABI class: X.O rg Server Extension, version 10.0
[     4.266] (==) Matched modesetting as autoconfigured driver 0
[     4.266] (==) Matched fbdev as autoconfigured driver 1
[     4.266] (==) Matched vesa as autoconfigured driver 2
[     4.266] (==) Assigned the driver to the xf86ConfigLayout
[     4.266] (II) LoadModule: "modesetting"
[     4.266] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[     4.266] (II) Module modesetting: vendor="X.O rg Foundation"
[     4.266]    compiled for 1.20.13, module version = 1.20.13
[     4.266]    Module class: X.O rg Video Driver
[     4.266]    ABI class: X.O rg Video Driver, version 24.1
[     4.266] (II) LoadModule: "fbdev"
[     4.266] (WW) Warning, couldn't open module fbdev
[     4.266] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     4.266] (II) LoadModule: "vesa"
[     4.266] (WW) Warning, couldn't open module vesa
[     4.266] (EE) Failed to load module "vesa" (module does not exist, 0)
[     4.266] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     4.266] (EE) open /dev/dri/card0: No such file or directory
[     4.266] (WW) Falling back to old probe method for modesetting
[     4.266] (EE) open /dev/dri/card0: No such file or directory
[     4.266] (EE) Screen 0 deleted because of no matching config section.
[     4.266] (II) UnloadModule: "modesetting"
[     4.266] (EE) Device(s) detected, but none match those in the config file.
[     4.266] (EE) 
Fatal server error:
[     4.266] (EE) no screens found(EE) 
[     4.266] (EE) 
Please consult the The X.Or g Foundation support at wiki.x.o r g  for help. 
[     4.266] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     4.266] (EE) 
[     4.266] (EE) Server terminated with error (1). Closing log file.

Next /var/log/Xorg.0.log is from the working boot in the second terminal channel. You can see 2 more devices are being found.

[   553.616] 
X.O rg X Server 1.20.13
X Protocol Version 11, Revision 0
[   553.616] Build Operating System: Linux Manjaro Linux
[   553.616] Current Operating System: Linux  5.10.63-1-MANJARO #1 SMP PREEMPT Wed Sep 8 14:13:59 UTC 2021 x86_64
[   553.616] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=9e7bfd9e-d45b-4ef0-b169-c42259bd06c5 rw quiet apparmor=1 security=apparmor udev.log_priority=3
[   553.616] Build Date: 24 August 2021  10:21:29AM
[   553.617]  
[   553.617] Current version of pixman: 0.40.0
[   553.617]    Before reporting problems, check wiki.x.o r g
        to make sure that you have the latest version.
[   553.617] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   553.617] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 23 07:32:27 2021
[   553.617] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   553.617] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   553.617] (==) No Layout section.  Using the first Screen section.
[   553.617] (==) No screen section available. Using defaults.
[   553.617] (**) |-->Screen "Default Screen Section" (0)
[   553.617] (**) |   |-->Monitor "<default monitor>"
[   553.617] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   553.617] (==) Automatically adding devices
[   553.617] (==) Automatically enabling devices
[   553.617] (==) Automatically adding GPU devices
[   553.617] (==) Automatically binding GPU devices
[   553.617] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   553.617] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   553.617]    Entry deleted from font path.
[   553.617] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   553.617]    Entry deleted from font path.
[   553.617] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   553.617]    Entry deleted from font path.
[   553.617] (==) FontPath set to:
        /usr/share/fonts/misc,
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF
[   553.617] (==) ModulePath set to "/usr/lib/xorg/modules"
[   553.617] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   553.617] (II) Module ABI versions:
[   553.617]    X.O rg ANSI C Emulation: 0.4
[   553.617]    X.O rg Video Driver: 24.1
[   553.617]    X.O rg XInput driver : 24.1
[   553.617]    X.O rg Server Extension : 10.0
[   553.617] (++) using VT number 7
[   553.617] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   553.618] (II) xfree86: Adding drm device (/dev/dri/card1)
[   553.626] (II) xfree86: Adding drm device (/dev/dri/card0)
[   553.637] (--) PCI:*(0@0:2:0) 8086:3e9b:1028:0832 rev 0, Mem @ 0xaf000000/16777216, 0x60000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[   553.637] (--) PCI: (1@0:0:0) 1002:67e8:1028:0832 rev 0, Mem @ 0x4100000000/4294967296, 0x4080000000/2097152, 0xb0200000/262144, I/O @ 0x00003000/256, BIOS @ 0x????????/131072
[   553.637] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   553.637] (II) LoadModule: "glx"
[   553.637] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   553.638] (II) Module glx: vendor="X.O rg Foundation"
[   553.638]    compiled for 1.20.13, module version = 1.0.0
[   553.638]    ABI class: X.O rg Server Extension, version 10.0
[   553.638] (II) Applying OutputClass "AMDgpu" to /dev/dri/card1
[   553.638]    loading driver: amdgpu
[   553.638] (==) Matched amdgpu as autoconfigured driver 0
[   553.638] (==) Matched ati as autoconfigured driver 1
[   553.638] (==) Matched modesetting as autoconfigured driver 2
[   553.638] (==) Matched fbdev as autoconfigured driver 3
[   553.638] (==) Matched vesa as autoconfigured driver 4
[   553.638] (==) Assigned the driver to the xf86ConfigLayout
[   553.638] (II) LoadModule: "amdgpu"
[   553.638] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[   553.640] (II) Module amdgpu: vendor="X.O rg Foundation"
[   553.640]    compiled for 1.20.13, module version = 21.0.0
[   553.640]    Module class: X.O rg Video Driver
[   553.640]    ABI class: X.Or g Video Driver, version 24.1
[   553.640] (II) LoadModule: "ati"
[   553.640] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[   553.641] (II) Module ati: vendor="X.O rg Foundation"
[   553.641]    compiled for 1.20.8, module version = 19.1.0
[   553.641]    Module class: X.Or g Video Driver
[   553.641]    ABI class: X.O rg Video Driver, version 24.1
[   553.659] (II) LoadModule: "modesetting"
[   553.659] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   553.659] (II) Module modesetting: vendor="X.O rg Foundation"
[   553.659]    compiled for 1.20.13, module version = 1.20.13
[   553.659]    Module class: X.O rg Video Driver
[   553.659]    ABI class: X.O rg Video Driver, version 24.1
[   553.659] (II) LoadModule: "fbdev"
[   553.659] (WW) Warning, couldn't open module fbdev
[   553.659] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   553.659] (II) LoadModule: "vesa"
[   553.660] (WW) Warning, couldn't open module vesa
[   553.660] (EE) Failed to load module "vesa" (module does not exist, 0)
[   553.660] (II) AMDGPU: Driver for AMD Radeon:   All GPUs supported by the amdgpu kernel driver
1 Like

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    [HowTo] Provide System Information
    and press the three dots below your post and press the :pencil2: to give us more information so we can see what’s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:

  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

  3. In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    

    instead of like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`

    (as that makes both our lives much easier)

  4. No need to do anything right now as I’m a moderator here on this site and have fixed it for you already. However, in the future I might not see your post so review my RAW edits by pushing the orange pencil in the upper right corner of the post I just fixed. :wink:

:+1:

1 Like

Never mind Fabby. Let’s try again :slight_smile:

I’ve ran the command you asked me to, but I edited my personal and some sensitive information

System:
  Kernel: 5.10.63-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=9e7bfd9e-d45b-4ef0-b169-c42259bd06c5 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: i3 4.19.1 info: i3bar vt: 7 dm: LightDM 1.30.0 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: Dell product: Precision 7730 v: N/A serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: Dell model: 09G96M v: A00 serial: <filter> UEFI: Dell v: 1.15.3 
  date: 03/04/2021 
Battery:
  ID-1: BAT0 charge: 45.3 Wh (100.0%) condition: 45.3/64.0 Wh (70.7%) 
  volts: 8.3 min: 7.6 model: SMP DELL RY3F977 type: Li-poly serial: <filter> 
  status: Full 
Memory:
  RAM: total: 15.39 GiB used: 8.24 GiB (53.5%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: A (10) 
  microcode: EA cache: L2: 9 MiB bogomips: 52815 
  Speed: 3816 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 3816 2: 3796 
  3: 3749 4: 3613 5: 3707 6: 3739 7: 3831 8: 3553 9: 3860 10: 3728 11: 3551 
  12: 3779 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell 
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300 
  Device-2: AMD Baffin [Radeon Pro WX 4130/4150] vendor: Dell driver: amdgpu 
  v: kernel bus-ID: 01:00.0 chip-ID: 1002:67e8 class-ID: 0300 
  Device-3: Realtek Integrated Webcam_HD type: USB driver: uvcvideo 
  bus-ID: 1-11:5 chip-ID: 0bda:5650 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 driver: loaded: amdgpu,ati,modesetting 
  alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 3360x1080 s-dpi: 96 s-size: 886x285mm (34.9x11.2") 
  s-diag: 931mm (36.6") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 128 size: 381x214mm (15.0x8.4") 
  diag: 437mm (17.2") 
  Monitor-2: HDMI-A-1-1 res: 1440x900 hz: 60 dpi: 90 
  size: 408x255mm (16.1x10.0") diag: 481mm (18.9") 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.1 
  direct render: Yes 

Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A gpu: amdgpu temp: 41.0 C 
  Fan Speeds (RPM): cpu: 1689 fan-2: 1699 
Info:
  Processes: 407 Uptime: 14h 8m wakeups: 4 Init: systemd v: 249 
  tool: systemctl Compilers: gcc: 11.1.0 Packages: pacman: 1336 lib: 390 

Your system does indeed have the correct drivers installed:

but in the first Xorg.0.log they can’t seem to be located whereas in the second one they can, so I’m suspecting a race condition.

What’s the output of:

mhwd --listinstalled

are you familiar with adding kernel parameters or do you need a step-by-step guide?

:thinking:

1 Like

Thanks Fabby, I’m also suspecting some race condition. In fact, my 2 latest boots where both normal as it should.

$ sudo mhwd --listinstalled

> Installed PCI configs:
--------------------------------------------------------------------------------
                 NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
```

Even if i have a completly different configuration, but i do have the following issue:
lightdm failing randomly (some days more, some days less)
If i look into the logs of X.org: Sometimes lightdm fails because xorg failed. Xorg says there is no graphic. In my setup “nouveau” is not recognized. Then i reboot, and it works.

After a while of searching, i think this is not an issue of the graphic card at all. There are a lot of reported problems of this sort. The common thing seems to be:

  • xorg fails to access the graphic-card (whatever type it is)
  • even when GUI shows, the log of lightdm shows 1-5 restarts of lightdm
  • the problem comes and goes randomly

Andreas :sunglasses:

1 Like

Can you add i915.reset=1 to the kernel parameter list, update grub and try again?

:thinking:

1 Like

I’ve inserted your suggestion but no positive result unfortunately.

$ cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=9e7bfd9e-d45b-4ef0-b169-c42259bd06c5 rw quiet apparmor=1 security=apparmor udev.log_priority=3 i915.reset=1

As you seem to have a race condition, let’s load the i915 driver earlier in the boot process (at the kernel boot process stage instead of the systemd stage)

  1. Execute:

    sudo nano --backup /etc/mkinitcpio.conf
    
  2. Change:

    MODULES=()
    

    to:

    MODULES=(i915)
    
  3. Execute:

    sudo mkinitcpio --preset linux510
    sudo reboot
    
  4. Try again.

:crossed_fingers:

2 Likes

Yes, Fabby. This seemed to be the trick. I tested several times without any issues and I even did an upgrade afterwards.

Can you explain what the theory is behind this fix?

Either way, thanks for the persistent help :slight_smile:

2 Likes
  • Sorry!
  • Good question!
  • Amended solution so that everyone can see it but as you’ll not be pinged by an edit, also repeated here:

for even more info:

man mkinitcpio
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.