Display Manager starts too slow

Hi,

I created a small root filesystem based on the ubuntu-base-18.04 image (http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/). Everything is working well so far (CUDA, libargus, etc.) without GUI but sometimes I have to install a graphical environment. So, I run the following command to install the ubuntu desktop:

sudo apt-get install ubuntu-desktop

The installation works like a charm but after a restart, GDM does not start properly:

Sep 13 14:28:46 hs-dk1 gnome-shell[7082]: Failed to create backend: Could not find a primary drm kms device
Sep 13 14:28:46 hs-dk1 gnome-session[7076]: gnome-session-binary[7076]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 13 14:28:46 hs-dk1 gnome-session-binary[7076]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 13 14:28:46 hs-dk1 gnome-session-binary[7076]: Unrecoverable failure in required component org.gnome.Shell.desktop
Sep 13 14:28:46 hs-dk1 gdm-launch-environment][7054]: pam_unix(gdm-launch-environment:session): session closed for user gdm

So I thought it may have something to do with wayland. Therefore I disabled Wayland in the /etc/gdm3/custom.conf by uncommenting the line:

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

After a restart, the screen becomes black for some minutes. After that the login screen becomes visible and I can login. The question is, why it takes so long until the login screen is shown? I attached the corresponding boot log.

Thanks
Markus
journal.log (185 KB)

I just wonder how you create your rootfs. Could you share the steps?

I just downloaded the Ubuntu Base rootfs (http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/) and extracted it to the rootfs directory of the L4T release. After that I ran apply_binaries.sh to install all the drivers and libraries to the rootfs. Then I chroot into the rootfs, created a new user and installed all the packages that I need (CUDA, OpenCV, etc.).
After flashing, everything is working as expected. The only problem is that, after I installed ubuntu-desktop on a running system, gdm hangs for a long time. I also tried lightdm but it also hangs. I also noticed that switching to another terminal (Ctrl-Alt-F2) sometimes helps the display manager to start.

Hi,

Could you check if you have this ?

rootfs/usr/lib/xorg/modules/drivers$ ls
amdgpu_drv.so ati_drv.so fbdev_drv.so modesetting_drv.so nouveau_drv.so nvidia_drv.so radeon_drv.so vesa_drv.so

yes I have these files

Hi Markus,

Does this error happen everytime you boot up?

I just checked your log.

Was it still trying to boot the desktop shell between below timestamp?

Sep 13 15:09:29 hs-dk1 /usr/lib/gdm3/gdm-x-session[4996]: (**) Option “xkb_layout” “de”

and

Sep 13 15:13:53 hs-dk1 /usr/lib/gdm3/gdm-x-session[4996]: (–) NVIDIA(GPU-0): Samsung SyncMaster (DFP-0): connected

Hi Wayne,

yes, it happens on every boot. I don’t know exactly the timestamps, so recorded a new log. Please note that I used a different monitor now, but the behavior is still the same. Here is the log:

Sep 16 10:59:03 hs-dk1 systemd[5091]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Sep 16 10:59:03 hs-dk1 systemd[5091]: Starting D-Bus User Message Bus Socket.
Sep 16 10:59:03 hs-dk1 systemd[5091]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Sep 16 10:59:03 hs-dk1 systemd[5091]: Listening on GnuPG network certificate management daemon.
Sep 16 10:59:03 hs-dk1 systemd[5091]: Listening on D-Bus User Message Bus Socket.
Sep 16 10:59:03 hs-dk1 systemd[5091]: Reached target Sockets.
Sep 16 10:59:03 hs-dk1 systemd[5091]: Reached target Basic System.
Sep 16 10:59:03 hs-dk1 systemd[5091]: Reached target Default.
Sep 16 10:59:03 hs-dk1 systemd[5091]: Startup finished in 110ms.
Sep 16 10:59:03 hs-dk1 systemd[1]: Started User Manager for UID 1000.
Sep 16 10:59:11 hs-dk1 NetworkManager[4469]: <info>  [1568624351.5641] manager: NetworkManager state is now CONNECTED_GLOBAL
Sep 16 10:59:11 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.10' (uid=0 pid=4469 comm="/usr/sbin/NetworkManager --no-daemon ")
Sep 16 10:59:11 hs-dk1 systemd[1]: Starting Network Manager Script Dispatcher Service...
Sep 16 10:59:11 hs-dk1 whoopsie[4631]: [10:59:11] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/1
Sep 16 10:59:11 hs-dk1 whoopsie[4631]: [10:59:11] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/1
Sep 16 10:59:11 hs-dk1 whoopsie[4631]: [10:59:11] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/1
Sep 16 10:59:11 hs-dk1 whoopsie[4631]: [10:59:11] online
Sep 16 10:59:11 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Sep 16 10:59:11 hs-dk1 systemd[1]: Started Network Manager Script Dispatcher Service.
Sep 16 10:59:11 hs-dk1 nm-dispatcher[5228]: req:1 'connectivity-change': new request (1 scripts)
Sep 16 10:59:11 hs-dk1 nm-dispatcher[5228]: req:1 'connectivity-change': start running ordered scripts...
Sep 16 10:59:21 hs-dk1 systemd-timesyncd[2999]: Synchronized to time server 131.188.3.220:123 (1.pool.ntp.org).
Sep 16 10:59:24 hs-dk1 snapd[4470]: stateengine.go:108: state ensure error: Get https://api.snapcraft.io/api/v1/snaps/sections: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Sep 16 10:59:27 hs-dk1 snapd[4470]: daemon.go:576: gracefully waiting for running hooks
Sep 16 10:59:27 hs-dk1 snapd[4470]: daemon.go:578: done waiting for running hooks
Sep 16 10:59:27 hs-dk1 snapd[4470]: daemon stop requested to wait for socket activation
Sep 16 11:03:32 hs-dk1 kernel: random: crng init done
Sep 16 11:03:32 hs-dk1 kernel: random: 7 urandom warning(s) missed due to ratelimiting
Sep 16 11:03:32 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.31' (uid=120 pid=5237 comm="/usr/bin/gnome-shell ")
Sep 16 11:03:32 hs-dk1 systemd[1]: Starting Daemon for power management...
Sep 16 11:03:32 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.UPower'
Sep 16 11:03:32 hs-dk1 systemd[1]: Started Daemon for power management.
Sep 16 11:03:32 hs-dk1 /usr/lib/gdm3/gdm-x-session[4958]: (--) NVIDIA(GPU-0): DELL U2719D (DFP-0): connected
Sep 16 11:03:32 hs-dk1 /usr/lib/gdm3/gdm-x-session[4958]: (--) NVIDIA(GPU-0): DELL U2719D (DFP-0): External TMDS
Sep 16 11:03:32 hs-dk1 systemd[4928]: Starting Sound Service...
Sep 16 11:03:33 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.33' (uid=120 pid=5267 comm="/usr/bin/pulseaudio --daemonize=no ")
Sep 16 11:03:33 hs-dk1 systemd[1]: Starting RealtimeKit Scheduling Policy Service...
Sep 16 11:03:33 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
Sep 16 11:03:33 hs-dk1 systemd[1]: Started RealtimeKit Scheduling Policy Service.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Successfully called chroot.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Successfully dropped privileges.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Successfully limited resources.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Running.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Watchdog thread running.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Canary thread running.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:33 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 rtkit-daemon[5268]: Supervising 0 threads of 0 processes of 1 users.
Sep 16 11:03:34 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.60' (uid=120 pid=5267 comm="/usr/bin/pulseaudio --daemonize=no ")
Sep 16 11:03:34 hs-dk1 systemd[1]: Started Run anacron jobs.
Sep 16 11:03:34 hs-dk1 systemd[1]: Starting Bluetooth service...
Sep 16 11:03:34 hs-dk1 anacron[5276]: Anacron 2.3 started on 2019-09-16
Sep 16 11:03:34 hs-dk1 anacron[5276]: Normal exit (0 jobs run)
Sep 16 11:03:34 hs-dk1 systemd[4928]: Started Sound Service.
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: Bluetooth daemon 5.48
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:parse_config() Key file does not have key “DiscoverableTimeout” in group “General”
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:parse_config() Key file does not have key “PairableTimeout” in group “General”
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:parse_config() Key file does not have key “Privacy” in group “General”
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:parse_config() Key file does not have key “Name” in group “General”
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:parse_config() Key file does not have key “Class” in group “General”
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:parse_config() Key file does not have key “DeviceID” in group “General”
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:parse_config() Key file does not have key “ReverseServiceDiscovery” in group “General”
Sep 16 11:03:34 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.bluez'
Sep 16 11:03:34 hs-dk1 systemd[1]: Started Bluetooth service.
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/adapter.c:adapter_init() sending read version command
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: Starting SDP server
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0530
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:plugin_init() Loading builtin plugins
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading hostname plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading wiimote plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading autopair plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading policy plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: Excluding (cli) a2dp
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: Excluding (cli) avrcp
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading network plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading input plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading hog plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading gap plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading scanparam plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading deviceinfo plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading battery plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:plugin_init() Loading plugins /usr/lib/aarch64-linux-gnu/bluetooth/plugins
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/plugin.c:add_plugin() Loading sixaxis plugin
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: profiles/input/suspend-none.c:suspend_init()
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: profiles/network/manager.c:read_config() /etc/bluetooth/network.conf: Key file does not have key “DisableSecurity” in group “General”
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: profiles/network/manager.c:read_config() Config options: Security=true
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: plugins/sixaxis.c:sixaxis_init()
Sep 16 11:03:34 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.61' (uid=0 pid=5277 comm="/usr/lib/bluetooth/bluetoothd -d --noplugin=audio,")
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/main.c:main() Entering main loop
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 2 op 0 soft 1 hard 0
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: Bluetooth management interface 1.14 initialized
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/adapter.c:read_version_complete() sending read supported commands command
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/adapter.c:read_version_complete() sending read index list command
Sep 16 11:03:34 hs-dk1 kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Sep 16 11:03:34 hs-dk1 kernel: Bluetooth: BNEP socket layer initialized
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/adapter.c:read_commands_complete() Number of commands: 65
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/adapter.c:read_commands_complete() Number of events: 35
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
Sep 16 11:03:34 hs-dk1 bluetoothd[5277]: src/adapter.c:read_index_list_complete() Number of controllers: 0
Sep 16 11:03:34 hs-dk1 NetworkManager[4469]: <info>  [1568624614.7968] bluez: use BlueZ version 5
Sep 16 11:03:34 hs-dk1 systemd[1]: Starting Hostname Service...
Sep 16 11:03:35 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.hostname1'
Sep 16 11:03:35 hs-dk1 systemd[1]: Started Hostname Service.
Sep 16 11:03:35 hs-dk1 bluetoothd[5277]: plugins/hostname.c:property_changed() static hostname: hs-dk1
Sep 16 11:03:35 hs-dk1 bluetoothd[5277]: plugins/hostname.c:property_changed() pretty hostname:
Sep 16 11:03:35 hs-dk1 bluetoothd[5277]: plugins/hostname.c:property_changed() chassis:
Sep 16 11:03:35 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.31' (uid=120 pid=5237 comm="/usr/bin/gnome-shell ")
Sep 16 11:03:35 hs-dk1 systemd[1]: Starting Locale Service...
Sep 16 11:03:36 hs-dk1 dbus-daemon[4980]: [session uid=120 pid=4980] Activating service name='org.freedesktop.portal.IBus' requested by ':1.18' (uid=120 pid=5302 comm="ibus-daemon --xim --panel disable ")
Sep 16 11:03:36 hs-dk1 dbus-daemon[4980]: [session uid=120 pid=4980] Successfully activated service 'org.freedesktop.portal.IBus'
Sep 16 11:03:36 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.locale1'
Sep 16 11:03:36 hs-dk1 systemd[1]: Started Locale Service.
Sep 16 11:03:36 hs-dk1 dbus-daemon[4980]: [session uid=120 pid=4980] Activating via systemd: service name='org.freedesktop.impl.portal.PermissionStore' unit='xdg-permission-store.service' requested by ':1.16' (uid=120 pid=5237 comm="/usr/bin/gnome-shell ")
Sep 16 11:03:36 hs-dk1 systemd[4928]: Starting sandboxed app permission store...
Sep 16 11:03:36 hs-dk1 dbus-daemon[4980]: [session uid=120 pid=4980] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
Sep 16 11:03:36 hs-dk1 systemd[4928]: Started sandboxed app permission store.
Sep 16 11:03:36 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.31' (uid=120 pid=5237 comm="/usr/bin/gnome-shell ")
Sep 16 11:03:36 hs-dk1 systemd[1]: Starting Location Lookup Service...
Sep 16 11:03:36 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.bolt' unit='bolt.service' requested by ':1.31' (uid=120 pid=5237 comm="/usr/bin/gnome-shell ")
Sep 16 11:03:36 hs-dk1 systemd[1]: Starting Thunderbolt system service...
Sep 16 11:03:36 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.GeoClue2'
Sep 16 11:03:36 hs-dk1 systemd[1]: Started Location Lookup Service.
Sep 16 11:03:37 hs-dk1 polkitd(authority=local)[4548]: Registered Authentication Agent for unix-session:c1 (system bus name :1.31 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Sep 16 11:03:37 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.31' (uid=120 pid=5237 comm="/usr/bin/gnome-shell ")
Sep 16 11:03:37 hs-dk1 systemd[1]: Starting PackageKit Daemon...
Sep 16 11:03:37 hs-dk1 PackageKit[5331]: daemon start
Sep 16 11:03:37 hs-dk1 boltd[5330]: bolt 0.5 starting up.
Sep 16 11:03:37 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Sep 16 11:03:37 hs-dk1 systemd[1]: Started PackageKit Daemon.
Sep 16 11:03:37 hs-dk1 boltd[5330]: config: loading user config
Sep 16 11:03:37 hs-dk1 boltd[5330]: bouncer: initializing polkit
Sep 16 11:03:37 hs-dk1 boltd[5330]: udev: initializing udev
Sep 16 11:03:37 hs-dk1 boltd[5330]: store: loading devices
Sep 16 11:03:37 hs-dk1 boltd[5330]: power: force power support: no
Sep 16 11:03:37 hs-dk1 boltd[5330]: udev: enumerating devices
Sep 16 11:03:37 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.bolt'
Sep 16 11:03:37 hs-dk1 systemd[1]: Started Thunderbolt system service.
Sep 16 11:03:37 hs-dk1 spice-vdagent[5389]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
Sep 16 11:03:37 hs-dk1 gnome-session[4983]: gnome-session-binary[4983]: WARNING: App 'spice-vdagent.desktop' exited with code 1
Sep 16 11:03:37 hs-dk1 gnome-session-binary[4983]: WARNING: App 'spice-vdagent.desktop' exited with code 1
Sep 16 11:03:37 hs-dk1 dbus-daemon[4134]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.70' (uid=120 pid=5339 comm="/usr/lib/gnome-settings-daemon/gsd-color ")
Sep 16 11:03:37 hs-dk1 systemd[1]: Starting Manage, Install and Generate Color Profiles...
Sep 16 11:03:37 hs-dk1 gsd-xsettings[5332]: Failed to get current display configuration state: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.Mutter.DisplayConfig" does not exist
Sep 16 11:03:37 hs-dk1 dbus-daemon[4134]: [system] Successfully activated service 'org.freedesktop.ColorManager'
Sep 16 11:03:37 hs-dk1 systemd[1]: Started Manage, Install and Generate Color Profiles.
Sep 16 11:03:37 hs-dk1 gnome-session-binary[4983]: Entering running state
Sep 16 11:03:37 hs-dk1 xbrlapi.desktop[5416]: openConnection: connect: No such file or directory
Sep 16 11:03:37 hs-dk1 xbrlapi.desktop[5416]: cannot connect to braille devices daemon brltty at :0
Sep 16 11:03:37 hs-dk1 gnome-shell[5237]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Sep 16 11:03:38 hs-dk1 gnome-shell[5237]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined property "MetaWindowX11"

The monitor turns black after the line:

Sep 16 10:59:03 hs-dk1 systemd[1]: Started User Manager for UID 1000.

From line

Sep 16 11:03:32 hs-dk1 kernel: random: crng init done

it continues to boot and the login screen appears.

Ok, I searched for “random: crng init done” on Google and found the following thread: https://lb.raspberrypi.org/forums/viewtopic.php?t=209093 They suggest to install haveged. So I installed it now and the issue is gone. It seems that the random number generator waits for some entropy and therefore GDM does not start propertly.