LightDM fails after upgrade

Hi. After upgrading my tumbleweed to 20230526, my PC fails to boot using LightDM. It boots to tty1 prompt where I logged in and run startxfce4 manually.

It’s been a while since I played with DMs etc to remember what to look at. So I did an ‘unconditional update’ on the XFCE4 pattern (which included the LightDM package) but that didn 't help.

I checked the Alternatives which still has lightdm as the default display manager.

image

Linked is the journalctl of the lastest boot.

Also it seems apps like Firefox and Thunderbird take very long to start now.

Any ideas how to fix things?

Thanks.

When you log in on tty, is lighdm process present (ps -ef | grep lightdm)?

Well, it shows that lightdm was at least started during boot

May 28 13:46:25 asus-roc.lan dbus-daemon[917]: [system] Activating via systemd: service name='org.freedesktop.Accounts' unit='accounts-daemon.service' requested by ':1.14' (uid=0 pid=1517 comm="/usr/sbin/lightdm")

But there are no further messages from it. There are also no usual crash or display manager stop messages so the next step is to determine whether lightdm just sits there doing nothing or it was terminated.

Yes it is there -

chris@asus-roc:~>$ps -ef | grep lightdm
root      1579     1  0 14:23 ?        00:00:00 /usr/sbin/lightdm
chris     8640  2325  0 14:55 pts/1    00:00:00 grep --color=auto lightdm
chris@asus-roc:~>$

I’m getting more apps to crash -

chris@asus-roc:~>$mpv https://www.youtube.com/watch?v=ZU2Roq-emxw
 (+) Video --vid=1 (*) (vp9 1920x1080 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
File tags:
 Uploader: Odyssey - Ancient History Documentaries
 Channel_URL: https://www.youtube.com/channel/UCV-yCAXMS-nWrHtORuDfSuQ
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu/drm] Listing DRM devices with drmGetDevices failed! (No such file or directory)
[vo/gpu/drm] Failed to find a usable DRM primary node!
Segmentation fault (core dumped)
chris@asus-roc:~>$

There seems to be something more fundamentally wrong with tumbleweed that just maybe LightDM.

I’m now looking at doing a snapshot restore.

chris@asus-roc:~>$sudo snapper list
[sudo] password for root: 
  # | Type   | Pre # | Date                     | User | Cleanup | Description           | Userdata     
----+--------+-------+--------------------------+------+---------+-----------------------+--------------
 0  | single |       |                          | root |         | current               |              
 1* | single |       | Fri 08 Feb 2019 12:53:42 | root |         | first root filesystem |              
51  | pre    |       | Wed 17 May 2023 16:44:47 | root | number  | zypp(zypper)          | important=yes
52  | post   |    51 | Wed 17 May 2023 16:45:21 | root | number  |                       | important=yes
55  | pre    |       | Sun 28 May 2023 11:31:21 | root | number  | zypp(zypper)          | important=yes
56  | post   |    55 | Sun 28 May 2023 11:42:44 | root | number  |                       | important=yes
57  | pre    |       | Sun 28 May 2023 11:45:12 | root | number  | zypp(zypper)          | important=yes
58  | post   |    57 | Sun 28 May 2023 11:45:53 | root | number  |                       | important=yes
81  | pre    |       | Sun 28 May 2023 13:40:10 | root | number  | yast sw_single        |              
82  | pre    |       | Sun 28 May 2023 13:40:37 | root | number  | zypp(ruby.ruby3.2)    | important=no 
83  | post   |    82 | Sun 28 May 2023 13:45:20 | root | number  |                       | important=no 
84  | post   |    81 | Sun 28 May 2023 13:45:39 | root | number  |                       |              
89  | pre    |       | Sun 28 May 2023 14:05:47 | root | number  | yast alternatives     |              
90  | post   |    89 | Sun 28 May 2023 14:06:05 | root | number  |                       |              
91  | pre    |       | Sun 28 May 2023 14:10:44 | root | number  | yast snapper          |              
chris@asus-roc:~>$

I started the zypper dup at around 11:30 today so I guess I restore #55?
chris@asus-roc:~>$sudo snapper rollback 55 ???

Educated guess - you do not have any KMS capable device/driver and are using vesafb console driver so systemd-logind waits for suitable DRM device and lightdm waits for systemd-logind to announce such device.

Does adding nomodeset to kernel command line help?

Sorry but that was all Greek to me.
But I will add the nomodeset command at boot and see if that works. I’m currently doing an extra backup of my data files via rsync so this may take a while before I can respond.

But I have a bad feeling in the pit of my stomach…

The snapshot rollback worked and my PC is back to normal (LightDM, performance, videos etc). Maybe something ‘nasty’ happened during the last upgrade?

Hi, I’m on a xfce in tumbleweed. I just did a zypper dup 15 minutes ago and LightDM seems all good here. Did you check if your default default system target is graphical interface in yast2-services manager.

Yes, my system target is graphical.

I can only assume my zypper dup failed for some reason and borked the system. Now I understand snapper rollbacks a bit better I’m re-trying dup again.

It happened again - same symptoms. And snapper rollback saved my backside.

I’m am stumped as to what is going on as I’ve never had real issues with zypper dup for a number of years. I had a look at zypper.log but nothing stands out - not that I know what to look for other than error worded text.

Have attached a copy of the zypper.log here.

EDIT: I did notice when my system was in this ‘corrupted’ mode that there seemed to be Nvidia Card issues with one the Firestorm application with the message -

2023-05-28T08:09:01Z WARNING # newview/lltoastalertpanel.cpp(201) LLToastAlertPanel::LLToastAlertPanel : Alert: Display settings have been set to recommended levels because your graphics card changed
from 'NVIDIA Corporation NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2'
to 'Mesa llvmpipe (LLVM 16.0.2, 256 bits)'

Could this be an Nvidia driver issue? These are my drivers -

chris@asus-roc:~>$zypper se -s nvidia
Loading repository data...
Reading installed packages...

S  | Name                                           | Type       | Version                  | Arch   | Repository
---+------------------------------------------------+------------+--------------------------+--------+---------------------------
   | bumblebee-status-module-nvidia                 | package    | 2.1.5-3.3                | noarch | openSUSE-Tumbleweed-Oss
   | bumblebee-status-module-nvidia-optimus-manager | package    | 2.1.5-3.3                | noarch | openSUSE-Tumbleweed-Oss
   | bumblebee-status-module-nvidia-prime           | package    | 2.1.5-3.3                | noarch | openSUSE-Tumbleweed-Oss
i  | kernel-firmware-nvidia                         | package    | 20230427-1.1             | noarch | (System Packages)
v  | kernel-firmware-nvidia                         | package    | 20230517-1.1             | noarch | openSUSE-Tumbleweed-Oss
   | kernel-firmware-nvidia-gsp-G06                 | package    | 525.116.04-1.1           | x86_64 | openSUSE-Tumbleweed-Oss
   | kernel-firmware-nvidia-gsp-G06                 | srcpackage | 525.116.04-1.1           | noarch | openSUSE-Tumbleweed-Source
   | libnvidia-egl-wayland                          | srcpackage | 1.1.11-1.2               | noarch | openSUSE-Tumbleweed-Source
   | libnvidia-egl-wayland-devel                    | package    | 1.1.11-1.2               | x86_64 | openSUSE-Tumbleweed-Oss
i+ | libnvidia-egl-wayland1                         | package    | 1.1.11-1.2               | x86_64 | openSUSE-Tumbleweed-Oss
   | libnvidia-egl-wayland1-32bit                   | package    | 1.1.11-1.2               | x86_64 | openSUSE-Tumbleweed-Oss
   | nvidia-compute-G06                             | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-compute-G06-32bit                       | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-compute-utils-G06                       | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-computeG04                              | package    | 390.157-25.1             | x86_64 | nVidia Graphics Drivers
   | nvidia-computeG04                              | package    | 390.157-25.1             | i586   | nVidia Graphics Drivers
   | nvidia-computeG04-32bit                        | package    | 390.157-25.1             | x86_64 | nVidia Graphics Drivers
i+ | nvidia-computeG05                              | package    | 470.182.03-54.1          | x86_64 | nVidia Graphics Drivers
i+ | nvidia-computeG05-32bit                        | package    | 470.182.03-54.1          | x86_64 | nVidia Graphics Drivers
   | nvidia-driver-G06-kmp-default                  | package    | 525.116.04_k6.3.1_1-8.1  | x86_64 | nVidia Graphics Drivers
   | nvidia-drivers-G06                             | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-drivers-minimal-G06                     | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-gfxG04-kmp-default                      | package    | 390.157_k6.3.1_1-25.1    | x86_64 | nVidia Graphics Drivers
   | nvidia-gfxG04-kmp-default                      | package    | 390.157_k6.2.9_1-25.1    | i586   | nVidia Graphics Drivers
   | nvidia-gfxG04-kmp-pae                          | package    | 390.157_k6.2.9_1-25.1    | i586   | nVidia Graphics Drivers
i+ | nvidia-gfxG05-kmp-default                      | package    | 470.182.03_k6.3.1_1-54.4 | x86_64 | nVidia Graphics Drivers
   | nvidia-gl-G06                                  | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-gl-G06-32bit                            | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-glG04                                   | package    | 390.157-25.1             | x86_64 | nVidia Graphics Drivers
   | nvidia-glG04                                   | package    | 390.157-25.1             | i586   | nVidia Graphics Drivers
   | nvidia-glG04-32bit                             | package    | 390.157-25.1             | x86_64 | nVidia Graphics Drivers
i+ | nvidia-glG05                                   | package    | 470.182.03-54.1          | x86_64 | nVidia Graphics Drivers
i+ | nvidia-glG05-32bit                             | package    | 470.182.03-54.1          | x86_64 | nVidia Graphics Drivers
   | nvidia-open-driver-G06-signed                  | srcpackage | 525.116.04-1.3           | noarch | openSUSE-Tumbleweed-Source
 l | nvidia-open-driver-G06-signed-kmp-default      | package    | 525.116.04_k6.3.2_1-1.3  | x86_64 | openSUSE-Tumbleweed-Oss
   | nvidia-texture-tools                           | package    | 2.1.2-2.9                | x86_64 | openSUSE-Tumbleweed-Oss
   | nvidia-texture-tools                           | srcpackage | 2.1.2-2.9                | noarch | openSUSE-Tumbleweed-Source
   | nvidia-utils-G06                               | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-video-G06                               | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-video-G06-32bit                         | package    | 525.116.04-8.1           | x86_64 | nVidia Graphics Drivers
   | pcp-pmda-nvidia-gpu                            | package    | 5.2.5-3.3                | x86_64 | openSUSE-Tumbleweed-Oss
   | x11-video-nvidiaG04                            | package    | 390.157-25.1             | x86_64 | nVidia Graphics Drivers
   | x11-video-nvidiaG04                            | package    | 390.157-25.1             | i586   | nVidia Graphics Drivers
   | x11-video-nvidiaG04-32bit                      | package    | 390.157-25.1             | x86_64 | nVidia Graphics Drivers
i+ | x11-video-nvidiaG05                            | package    | 470.182.03-54.1          | x86_64 | nVidia Graphics Drivers
i+ | x11-video-nvidiaG05-32bit                      | package    | 470.182.03-54.1          | x86_64 | nVidia Graphics Drivers
chris@asus-roc:~>$

The dup for 20230526 includes an update for the kernel to version 6.3.2-1.1 but the Nvidia driver is only nvidia-gfxG05-kmp-default | package | 470.182.03_k6.3.1_1-54.4.

Could it be that the Nvidia driver hasn’t caught up with the kernel version yet?

NVIDIA driver should be compiled during installation and the version you have should include kernel 6.3 build fix. So either this fix does not work or module was not compiled. Show as root

uname -r
modinfo nvidia

This is from my rollbacked snapshot but I guess you want from the “faulty” zypper dup. I can do another upgrade tomorrow as I need my PC to be 100% ok for a few things apps for the next 24 hours.

chris@asus-roc:~>$sudo uname -r
[sudo] password for root: 
6.3.1-2-default
chris@asus-roc:~>$sudo modinfo nvidia
filename:       /lib/modules/6.3.1-2-default/updates/nvidia.ko
firmware:       nvidia/470.182.03/gsp.bin
alias:          char-major-195-*
version:        470.182.03
supported:      external
license:        NVIDIA
suserelease:    openSUSE Tumbleweed
srcversion:     CCDCC9DE367CDB155E44D94
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
retpoline:      Y
name:           nvidia
vermagic:       6.3.1-2-default SMP preempt mod_unload modversions 

Here tis. I still think the nvidia drivers are behind a kernel version.

asus-roc:~ # uname -r
6.3.2-1-default
asus-roc:~ # modinfo nvidia
modinfo: ERROR: Module nvidia not found.
asus-roc:~ #

Yeah modules missing for kernel 6.3.2

asus-roc:/lib/modules # ls 6.3.1-2-default/updates/
nvidia-drm.ko  nvidia-modeset.ko  nvidia-peermem.ko  nvidia-uvm.ko  nvidia.ko
asus-roc:/lib/modules # ls 6.3.2-1-default/updates/
asus-roc:/lib/modules # 


Hi @conram , can I ask which nvidia driver you’re on with zypper se -s nvidia, modinfo nvidia and which kernel uname -r?

Thanks.

Hi, I’m using the latest .run from nvidia.

I saw your driver is 470.x.x. I used to have an older nvidia graphic card that uses that version.
I started to have a problem installing that driver every new kernel lately so I upgraded my graphic card
to avoid that kind situation.

If you are still on this installation - can you show

zypper -si kernel-default
ls -l /usr/src/linux-obj/x86_64
ls -l /lib/modules/6.3.1-2-default/updates/nvidia.ko

Driver should be compiled when kernel-default-devel package is installed. It depends on the link created by installation. I have seen cases when this link was incorrect.

Ah, you compile your own. I used to do that but I let the repos take over.

I see the kernel has been updated to 6.3.4 today. Will run the zypper dup again tonight.

But doesn’t the nvidia driver kmp file need to follow the kernel version? It’s still k6.3.1.
nvidia-gfxG05-kmp-default | package | 470.182.03_k6.3.1_1-54.4

Today’s zypper dup updated to 20230529 with kernel 6.3.4 and things are working “out of the box” now.

Here’s the requested info anyway -

chris@asus-roc:~>$zypper se -si kernel-default
Loading repository data...
Reading installed packages...

S  | Name                 | Type    | Version   | Arch   | Repository
---+----------------------+---------+-----------+--------+------------------------
i+ | kernel-default       | package | 6.3.1-2.2 | x86_64 | (System Packages)
i+ | kernel-default       | package | 6.3.4-1.1 | x86_64 | openSUSE-Tumbleweed-Oss
i  | kernel-default-devel | package | 6.3.1-2.2 | x86_64 | (System Packages)
i  | kernel-default-devel | package | 6.3.4-1.1 | x86_64 | openSUSE-Tumbleweed-Oss
chris@asus-roc:~>
chris@asus-roc:~>$ls -l /usr/src/linux-obj/x86_64
total 4
lrwxrwxrwx 1 root root 38 May 31 13:00 default -> ../../linux-6.3.4-1-obj/x86_64/default
chris@asus-roc:~>$
chris@asus-roc:~>$ls -l /lib/modules/6.3.4-1-default/updates/nvidia.ko
-rw-r--r-- 1 root root 52711824 May 31 13:01 /lib/modules/6.3.4-1-default/updates/nvidia.ko
chris@asus-roc:~>$

Unless something nasty happens I’ll put this down to experience or incorrect links as hinted.

Thanks!!!