I just had a look at the two log files. The log for kernel 5.8 is indeed showing that the X server is terminated:
(II) Server terminated successfully (0). Closing log file.
Interesting is that there are no X11 related errors, but plenty of systemd-logind
messages which are missing in the kernel 5.4 log file:
The kernel 5.8 log file says:
systemd-logind messages
II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
(II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
(II) systemd-logind: releasing fd for 226:0
(II) systemd-logind: got fd for /dev/input/event2 13:66 fd 33 paused 0
(II) systemd-logind: got fd for /dev/input/event1 13:65 fd 36 paused 0
(II) systemd-logind: got fd for /dev/input/event0 13:64 fd 37 paused 0
(II) systemd-logind: got fd for /dev/input/event27 13:91 fd 38 paused 0
(II) systemd-logind: got fd for /dev/input/event28 13:92 fd 39 paused 0
(II) systemd-logind: got fd for /dev/input/event29 13:93 fd 40 paused 0
(II) systemd-logind: got fd for /dev/input/event30 13:94 fd 41 paused 0
(II) systemd-logind: got fd for /dev/input/event31 13:95 fd 42 paused 0
(II) systemd-logind: got fd for /dev/input/event19 13:83 fd 43 paused 0
(II) systemd-logind: got fd for /dev/input/event20 13:84 fd 44 paused 0
(II) systemd-logind: got fd for /dev/input/event21 13:85 fd 45 paused 0
(II) systemd-logind: got fd for /dev/input/event22 13:86 fd 46 paused 0
(II) systemd-logind: got fd for /dev/input/event24 13:88 fd 47 paused 0
(II) systemd-logind: got fd for /dev/input/event25 13:89 fd 48 paused 0
(II) systemd-logind: got fd for /dev/input/event18 13:82 fd 49 paused 0
(II) systemd-logind: returning pre-existing fd for /dev/input/event30 13:94
(II) systemd-logind: returning pre-existing fd for /dev/input/event21 13:85
(II) systemd-logind: not releasing fd for 13:85, still in use
(II) systemd-logind: not releasing fd for 13:94, still in use
(II) systemd-logind: releasing fd for 13:82
(II) systemd-logind: releasing fd for 13:89
(II) systemd-logind: releasing fd for 13:88
(II) systemd-logind: releasing fd for 13:86
(II) systemd-logind: releasing fd for 13:85
(II) systemd-logind: releasing fd for 13:84
(II) systemd-logind: releasing fd for 13:83
(II) systemd-logind: releasing fd for 13:95
(II) systemd-logind: releasing fd for 13:94
(II) systemd-logind: releasing fd for 13:93
(II) systemd-logind: releasing fd for 13:92
(II) systemd-logind: releasing fd for 13:91
(II) systemd-logind: releasing fd for 13:64
(II) systemd-logind: releasing fd for 13:65
(II) systemd-logind: releasing fd for 13:66
(II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
(II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
(II) systemd-logind: releasing fd for 226:0
(II) systemd-logind: got fd for /dev/input/event2 13:66 fd 33 paused 0
(II) systemd-logind: got fd for /dev/input/event1 13:65 fd 36 paused 0
(II) systemd-logind: got fd for /dev/input/event0 13:64 fd 37 paused 0
(II) systemd-logind: got fd for /dev/input/event27 13:91 fd 38 paused 0
(II) systemd-logind: got fd for /dev/input/event28 13:92 fd 39 paused 0
(II) systemd-logind: got fd for /dev/input/event29 13:93 fd 40 paused 0
(II) systemd-logind: got fd for /dev/input/event30 13:94 fd 41 paused 0
(II) systemd-logind: got fd for /dev/input/event31 13:95 fd 42 paused 0
(II) systemd-logind: got fd for /dev/input/event19 13:83 fd 43 paused 0
(II) systemd-logind: got fd for /dev/input/event20 13:84 fd 44 paused 0
(II) systemd-logind: got fd for /dev/input/event21 13:85 fd 45 paused 0
(II) systemd-logind: got fd for /dev/input/event22 13:86 fd 46 paused 0
(II) systemd-logind: got fd for /dev/input/event24 13:88 fd 47 paused 0
(II) systemd-logind: got fd for /dev/input/event25 13:89 fd 48 paused 0
(II) systemd-logind: got fd for /dev/input/event18 13:82 fd 49 paused 0
(II) systemd-logind: returning pre-existing fd for /dev/input/event30 13:94
(II) systemd-logind: returning pre-existing fd for /dev/input/event21 13:85
(II) systemd-logind: not releasing fd for 13:85, still in use
(II) systemd-logind: not releasing fd for 13:94, still in use
(II) systemd-logind: releasing fd for 13:82
(II) systemd-logind: releasing fd for 13:89
(II) systemd-logind: releasing fd for 13:88
(II) systemd-logind: releasing fd for 13:86
(II) systemd-logind: releasing fd for 13:85
(II) systemd-logind: releasing fd for 13:84
(II) systemd-logind: releasing fd for 13:83
(II) systemd-logind: releasing fd for 13:95
(II) systemd-logind: releasing fd for 13:94
(II) systemd-logind: releasing fd for 13:93
(II) systemd-logind: releasing fd for 13:92
(II) systemd-logind: releasing fd for 13:91
(II) systemd-logind: releasing fd for 13:64
(II) systemd-logind: releasing fd for 13:65
(II) systemd-logind: releasing fd for 13:66
And these are actually the last messages before the X server terminates itself.
On the other hand, the log file for kernel 5.4 has only one message from systemd-logind
:
systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
This is weird. I do not know why systemd-logind
is behaving differently on both kernels.
Also, with kernel 5.4 you get this X11 warning:
(WW) NVIDIA(0): Option "NoLogo" is not used
This is not showing with kernel 5.8. Is this due to a different config?
Also with kernel 5.4 the log is saying things like:
(**) Extension "COMPOSITE" is enabled
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(**) Power Button: Applying InputClass "Keyboard Defaults"
This is not showing with kernel 5.8. This is all very weird.
I am a little bit lost here and leave it for others to join the trouble shooting.
PS
Your “Kingston HyperX Alloy FPS Mechanical Gaming Keyboard” seems to behave differently between kernel 5.8 and 5.4. Can you try with a different keyboard?