Jun's Blog

Output, activities, memo and etc.

Framework Laptop: GDM (the GNOME Display Manager) failed to start on the kernel 5.15.18?

Maybe it was 20th February. When launching the Fedora 35 with the kernel kernel-5.15.18-200.fc35.x86_64 on Framework Laptop, there was a page only showing gray color. Maybe the ID, password GUI page failed to start.

However today when opened Framework Laptop, and it was waked up, there was still gray color page. But after rebooting and selecting the old kernel kernel-5.15.16-200.fc35.x86_64 from GRUB menu, I could see the ID, password page GUI. After logging in, here I checked my environment.

$ uname -r
5.15.16-200.fc35.x86_64

$ rpm -q kernel
kernel-5.15.10-200.fc35.x86_64
kernel-5.15.16-200.fc35.x86_64
kernel-5.15.18-200.fc35.x86_64

I tried to upgrade the kernel to see the latest kernel or libraries fixes this issue.

$ sudo dnf upgrade --refresh
...
Installing:
 kernel                                    x86_64 5.16.16-200.fc35                updates   85 k
 kernel-core                               x86_64 5.16.16-200.fc35                updates   45 M
 kernel-devel                              x86_64 5.16.16-200.fc35                updates   15 M
 kernel-modules                            x86_64 5.16.16-200.fc35                updates   51 M
 kernel-modules-extra                      x86_64 5.16.16-200.fc35                updates  3.2 M
...
Removing:
 kernel                                    x86_64 5.15.10-200.fc35                @updates   0
 kernel-core                               x86_64 5.15.10-200.fc35                @updates  76 M
 kernel-devel                              x86_64 5.15.10-200.fc35                @updates  61 M
 kernel-modules                            x86_64 5.15.10-200.fc35                @updates  32 M
 kernel-modules-extra                      x86_64 5.15.10-200.fc35                @updates 2.0 M
$ sudo reboot

I selected the newest kernel kernel-5.16.16-200.fc35.x86_64, and I could see the ID, pass page, and I could login. Then you see the newest kernel is installed

$ rpm -q kernel
kernel-5.15.16-200.fc35.x86_64
kernel-5.15.18-200.fc35.x86_64
kernel-5.16.16-200.fc35.x86_64

Checked the past system log bys journalctl. I suspect gdm (Gnome Display Manager) failed with an error. And I found some log about errors and failures.

$ journalctl --list-boots
...
 -4 044484f916a14f38a0c1d20ae0ed898f Sun 2022-02-20 23:44:26 CET—Wed 2022-03-23 00:57:52 CE...T
...

$ journalctl -b 044484f916a14f38a0c1d20ae0ed898f
...
Feb 20 23:44:26 fedora kernel: Linux version 5.15.16-200.fc35.x86_64 (mockbuild@bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7), GNU ld version 2.37-10.fc35) #1 SMP
...
Feb 20 23:46:01 fedora /usr/libexec/gdm-wayland-session[1686]: dbus-daemon[1686]: Cannot setup inotify for '/var/lib/snapd/dbus-1/services/'; error 'Permission denied'
Feb 20 23:46:01 fedora gnome-session[1687]: gnome-session-binary[1687]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Feb 20 23:46:01 fedora gnome-session[1687]: gnome-session-binary[1687]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Feb 20 23:46:01 fedora gnome-session-binary[1687]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Feb 20 23:46:01 fedora gnome-session-binary[1687]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
...
Mar 23 00:57:49 fedora gdm[1603]: Gdm: GdmLocalDisplayFactory: Failed to issue method call: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Remote peer disconnected
Mar 23 00:57:49 fedora gdm[1603]: Gdm: Child process -1680 was already dead.
Mar 23 00:57:49 fedora gdm[1603]: Gdm: Child process -1680 was already dead.
Mar 23 00:57:49 fedora gdm[1603]: Gdm: Child process -1680 was already dead.
...

The current gdm version is 41.3-1 after running dnf upgrade --refresh today. But before running dnf upgrade, what was the version of used gdm?

$ rpm -q gdm
gdm-41.3-1.fc35.x86_64

Checked the changelog in the gdm RPM package.

$ rpm -q --changelog gdm | less
* Wed Jan 12 2022 David King <amigadave@amigadave.com> - 1:41.3-1
- Update to 41.3

* Wed Sep 29 2021 Ray Strode <rstrode@redhat.com> - 1:41.0-2
- Fix Xorg selection when SessionType is unspecified in accountsservice
  but session is specified.
  Resolves: #2007742

* Tue Sep 21 2021 Kalev Lember <klember@redhat.com> - 1:41.0-1
- Update to 41.0

* Wed Sep 08 2021 Kalev Lember <klember@redhat.com> - 1:41~rc-1
- Update to 41.rc

* Wed Aug 04 2021 Kalev Lember <klember@redhat.com> - 1:41~alpha-2
- BuildRequire systemd-rpm-macros rather than systemd
- Avoid systemd_requires as per updated packaging guidelines
...

Checked the gdm dist-git repository: https://src.fedoraproject.org/rpms/gdm.

Checked bodhi: https://bodhi.fedoraproject.org/updates/?packages=gdm

I am really not sure which gdm version was used at that time when the gdm failed to start.