GUI takes long time to come in display

Hi,

I am using debian snapshots #384 (boot image and rootfs alip image) from below link http://snapshots.linaro.org/96boards/dragonboard820c/linaro/debian/384/

Now the issue is GUI in HDMI display take long time to come approx 5-8 minutes, till then its only login shell appear in HDMI display. Also Network Manager not working properly in this case. Below is some logs.

root@linaro-alip:~# systemctl status systemd-logind
● systemd-logind.service - Login Service
   Loaded: loaded (/lib/systemd/system/systemd-logind.service; static; vendor pr
   Active: active (running) since Thu 2019-09-19 13:58:17 UTC; 9min ago
     Docs: man:systemd-logind.service(8)
           man:logind.conf(5)
           https://www.freedesktop.org/wiki/Software/systemd/logind
           https://www.freedesktop.org/wiki/Software/systemd/multiseat
 Main PID: 1925 (systemd-logind)
   Status: "Processing requests..."
    Tasks: 1 (limit: 3226)
   Memory: 1.7M
   CGroup: /system.slice/systemd-logind.service
           └─1925 /lib/systemd/systemd-logind

Sep 19 13:58:14 linaro-alip systemd-logind[1925]: Watching system buttons on /de
Sep 19 13:58:15 linaro-alip systemd-logind[1925]: New seat seat0.
Sep 19 13:58:22 linaro-alip systemd-logind[1925]: New session 1 of user root.
Sep 19 14:07:53 linaro-alip systemd-logind[1925]: New session 3 of user linaro.

root@linaro-alip:~# nmcli dev
DEVICE    TYPE      STATE        CONNECTION 
enP2p1s0  ethernet  unavailable  --         
wlp1s0    wifi      unavailable  --         
lo        loopback  unmanaged    --         
root@linaro-alip:~#

I also observed that if i connected Ethernet cable then GUI comes in 1-2 minutes. And Network Manager working properly. Below is the logs.

root@linaro-alip:~# systemctl status systemd-logind
● systemd-logind.service - Login Service
   Loaded: loaded (/lib/systemd/system/systemd-logind.service; static; vendor pr
   Active: active (running) since Thu 2019-09-19 13:58:17 UTC; 1min 47s ago
     Docs: man:systemd-logind.service(8)
           man:logind.conf(5)
           https://www.freedesktop.org/wiki/Software/systemd/logind
           https://www.freedesktop.org/wiki/Software/systemd/multiseat
 Main PID: 1923 (systemd-logind)
   Status: "Processing requests..."
    Tasks: 1 (limit: 3226)
   Memory: 1.7M
   CGroup: /system.slice/systemd-logind.service
           └─1923 /lib/systemd/systemd-logind

Sep 19 13:58:15 linaro-alip systemd-logind[1923]: Watching system buttons on /de
Sep 19 13:58:15 linaro-alip systemd-logind[1923]: New seat seat0.
Sep 19 13:58:22 linaro-alip systemd-logind[1923]: New session 1 of user root.
Sep 19 13:59:55 linaro-alip systemd-logind[1923]: New session 3 of user linaro.
root@linaro-alip:~# 
root@linaro-alip:~# nmcli dev
DEVICE    TYPE      STATE         CONNECTION         
enP2p1s0  ethernet  connected     Wired connection 1 
wlp1s0    wifi      disconnected  --                 
lo        loopback  unmanaged     --                 
root@linaro-alip:~#

So How to reduce this time so that GUI in HDMI display come as soon as board is booted and don’t matter if Ethernet is connected or not?

Thanks,
Hiren

I think it’s related to lack of entropy which can delay some services… check at which time you see ‘random: crng init done’ in dmesg and if it matches the delay you observe. one way to fix that is enabling hardware random number generator: https://git.linaro.org/people/loic.poulain/linux.git/commit/?h=qcomlt-4.14-hwrng&id=b21a09c5618dc925da28095b2613a16fdb05efeb

Issue resolved after enabling hardware random number generator. Thank you for your support.