OK, I though my problem was because I had changed my graphics adaptor from Nvidia to AMD and not removed the Nvidia starting modules. Having removed all Nvidia files from my system I still cannot login using the X11 desktop.
The only way I can get in (because I am not sufficiently knowledgeable on commands required,) is to set the desktop to X11 at the login screen, when I cannot then login. Then reboot and start init 3, login on cli and then run startx. This gets me into my desktop with X11 running.
So how do I diagnose why my normal desktop login fails and correct the problem? Here is what I have from my last boot check:-
Sep 07 20:01:29 HP-Z640-1 systemd[1850]: Activating special unit Exit the Session...
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Start request repeated too quickly.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Scheduled restart job, restart counter is at 6.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Start request repeated too quickly.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 6.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:28 HP-Z640-1 kwin_x11[3010]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl,>
Sep 07 20:01:28 HP-Z640-1 kwin_x11[3010]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:28 HP-Z640-1 org_kde_powerdevil[3009]: This application failed to start because no Qt platform plugin could be initialized. Re>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wa>
Sep 07 20:01:28 HP-Z640-1 org_kde_powerdevil[3009]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was fou>
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Starting KDE Window Manager...
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Scheduled restart job, restart counter is at 5.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Starting Powerdevil...
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 5.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:28 HP-Z640-1 kwin_x11[3001]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl,>
Sep 07 20:01:28 HP-Z640-1 kwin_x11[3001]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:28 HP-Z640-1 org_kde_powerdevil[3000]: This application failed to start because no Qt platform plugin could be initialized. Re>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wa>
Sep 07 20:01:28 HP-Z640-1 org_kde_powerdevil[3000]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was fou>
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Starting KDE Window Manager...
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Scheduled restart job, restart counter is at 4.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Starting Powerdevil...
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 4.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:28 HP-Z640-1 kwin_x11[2993]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl,>
Sep 07 20:01:28 HP-Z640-1 kwin_x11[2993]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:28 HP-Z640-1 org_kde_powerdevil[2994]: This application failed to start because no Qt platform plugin could be initialized. Re>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wa>
Sep 07 20:01:28 HP-Z640-1 org_kde_powerdevil[2994]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was fou>
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Starting Powerdevil...
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Starting KDE Window Manager...
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 3.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Scheduled restart job, restart counter is at 3.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start KDE Window Manager.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:28 HP-Z640-1 kwin_x11[2986]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl,>
Sep 07 20:01:28 HP-Z640-1 kwin_x11[2986]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Failed to start Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Failed with result 'exit-code'.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:28 HP-Z640-1 org_kde_powerdevil[2987]: This application failed to start because no Qt platform plugin could be initialized. Re>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wa>
Sep 07 20:01:28 HP-Z640-1 org_kde_powerdevil[2987]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was fou>
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Starting Powerdevil...
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: Stopped Powerdevil.
Sep 07 20:01:28 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 2.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Starting KDE Window Manager...
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Stopped KDE Window Manager.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Scheduled restart job, restart counter is at 2.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Failed to start Powerdevil.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Failed with result 'exit-code'.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:27 HP-Z640-1 org_kde_powerdevil[2978]: This application failed to start because no Qt platform plugin could be initialized. Re>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wa>
Sep 07 20:01:27 HP-Z640-1 org_kde_powerdevil[2978]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was fou>
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Failed to start KDE Window Manager.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:27 HP-Z640-1 kwin_x11[2976]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling>
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl,>
Sep 07 20:01:27 HP-Z640-1 kwin_x11[2976]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Starting Powerdevil...
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Stopped Powerdevil.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 1.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Starting KDE Window Manager...
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Consumed 1.205s CPU time.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Stopped KDE Window Manager.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Scheduled restart job, restart counter is at 1.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: app-pcloud@autostart.service: Consumed 9.268s CPU time.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: app-pcloud@autostart.service: Failed with result 'exit-code'.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kded.service: Failed with result 'exit-code'.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kded.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: app-pcloud@autostart.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:27 HP-Z640-1 kded5[2004]: kf.notifications: Playing audio notification failed: Destroyed
Sep 07 20:01:27 HP-Z640-1 kded5[2004]: X connection to :0 broken (explicit kill or server shutdown).
Sep 07 20:01:27 HP-Z640-1 kded5[2004]: kf.notifications: Had queued notifications on destruction. Was the eventloop running?
Sep 07 20:01:27 HP-Z640-1 kded5[2004]: The X11 connection broke: I/O error (code 1)
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Failed with result 'exit-code'.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-powerdevil.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Consumed 1.205s CPU time.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: app-kaccess@autostart.service: Failed with result 'exit-code'.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: app-kaccess@autostart.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 20:01:27 HP-Z640-1 kwin_x11[2005]: X connection to :0 broken (explicit kill or server shutdown).
Sep 07 20:01:27 HP-Z640-1 kwin_x11[2005]: The X11 connection broke: I/O error (code 1)
Sep 07 20:01:27 HP-Z640-1 pcloud[2259]: fuse: reading device: Bad file descriptor
Sep 07 20:01:27 HP-Z640-1 pcloud[2259]: fuse: writing device: Bad file descriptor
Sep 07 20:01:27 HP-Z640-1 kaccess[2271]: The X11 connection broke (error 1). Did the X11 server die?
Sep 07 20:01:27 HP-Z640-1 at-spi-bus-launcher[2328]: X connection to :0 broken (explicit kill or server shutdown).
Sep 07 20:01:27 HP-Z640-1 kscreen_backend_launcher[2208]: The X11 connection broke (error 1). Did the X11 server die?
Sep 07 20:01:27 HP-Z640-1 xdg-desktop-portal-kde[2125]: The X11 connection broke (error 1). Did the X11 server die?
Sep 07 20:01:27 HP-Z640-1 org_kde_powerdevil[2124]: The X11 connection broke (error 1). Did the X11 server die?
Sep 07 20:01:27 HP-Z640-1 kactivitymanagerd[2090]: The X11 connection broke (error 1). Did the X11 server die?
Sep 07 20:01:27 HP-Z640-1 kded5[2060]: X connection to :0 broken (explicit kill or server shutdown).
Sep 07 20:01:27 HP-Z640-1 kglobalaccel5[2032]: after 8 requests (8 known processed) with 0 events remaining.
Sep 07 20:01:27 HP-Z640-1 kglobalaccel5[2032]: XIO: fatal IO error 25 (Inappropriate ioctl for device) on X server ":0"
Sep 07 20:01:27 HP-Z640-1 kglobalaccel5[2032]: The X11 connection broke: I/O error (code 1)
Sep 07 20:01:27 HP-Z640-1 kglobalaccel5[2032]: The X11 connection broke (error 1). Did the X11 server die?
Sep 07 20:01:27 HP-Z640-1 dbus-daemon[1930]: [session uid=1000 pid=1930] Activating service name='org.freedesktop.Notifications' requested >
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: app-org.kde.kalendarac@autostart.service: Consumed 9.089s CPU time.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Stopped target Startup of XDG autostart applications.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: graphical-session.target: Failed to enqueue stop job, ignoring: Transaction for graphical-session.>
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Requested transaction contradicts existing jobs: Transaction for graphical-session.target/stop is >
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Stopped target KDE Plasma Workspace.
Sep 07 20:01:27 HP-Z640-1 systemd[1850]: Stopped target plasma-workspace-x11.target.
Sep 07 20:01:27 HP-Z640-1 akonadi_control[2431]: org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
Sep 07 20:01:24 HP-Z640-1 akonadi_control[2431]: org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_mailfilter_agent' exited normall>
Sep 07 20:01:24 HP-Z640-1 akonadi_control[2431]: org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_mailmerge_agent' exited normally>
Sep 07 20:01:24 HP-Z640-1 akonadi_control[2431]: org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_indexing_agent' exited normally.>
Sep 07 20:01:24 HP-Z640-1 akonadi_control[2431]: org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_ical_resource' exited normally...
Sep 07 20:01:24 HP-Z640-1 akonadi_control[
This is only a part but enough red print to draw attention to a possible problem.