Ubuntu 18.04 crashes on Boot with Geforce GTX 1070

Most times when I start my PC it crashes on boot, after 1-2 restarts it works. I have tried to update to newest kernel and latest nvidia driver in the past, but the issues remained.

Currently I am using Ubuntu 18.04.1 LTS with kernel 4.20.3-042003-generic. I have the graphic card GeForce GTX 1070/PCIe/SSE2. I am using nvidia-driver-415.

I know that the latest nvida driver is version 418.43, but I don’t know how to update it on Ubuntu. In the official PPA ppa:graphics-drivers/ppa the latest driver is 415.

Here is a screenshot of the error from my log boot.

The problematic line is this one:

kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000927c:0:0

Any ideas how I can fix it?

Here is the full log of my last boot:

ukuu.desktop[2925]: ----------------------------------------------------------------------
    ukuu.desktop[2925]: Found installed: 4.15.0.45.47
    ukuu.desktop[2925]: Found installed: 4.15.0-44.47
    ukuu.desktop[2925]: Found installed: 4.15.0-45.48
    ukuu.desktop[2925]: Found installed: 4.20.3-042003.201901171122
    ukuu.desktop[2925]: ----------------------------------------------------------------------
    ukuu.desktop[2925]: No updates found
    kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000927c:0:0
    kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000927c:0:0
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): BenQ BL2706HT (DFP-0): connected
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): BenQ BL2706HT (DFP-0): Internal TMDS
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): BenQ BL2706HT (DFP-0): 165.0 MHz maximum pixel clock
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0):
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): BenQ BL2706HT (DFP-1): connected
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): BenQ BL2706HT (DFP-1): Internal TMDS
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): BenQ BL2706HT (DFP-1): 0.0 MHz maximum pixel clock
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0):
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-2: disconnected
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0):
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-3: disconnected
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0):
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-4: disconnected
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-4: 1440.0 MHz maximum pixel clock
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0):
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-5: disconnected
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0):
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-6: disconnected
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-6: 1440.0 MHz maximum pixel clock
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0):
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-7: disconnected
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
    /usr/lib/gdm3/gdm-x-session[1587]: (--) NVIDIA(GPU-0):
    gsd-media-keys[2892]: g_variant_get_va: assertion 'value != NULL' failed
    gsd-media-keys[2892]: g_variant_unref: assertion 'value != NULL' failed
    org.gnome.Shell.desktop[2651]: current session already has an ibus-daemon.
    dbus-daemon[1317]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.88' (uid=1000 pid=2651 comm="/usr/bin/gnome-shell 
    systemd[1]: Starting Location Lookup Service...
    dbus-daemon[1317]: [system] Successfully activated service 'org.freedesktop.GeoClue2'
    systemd[1]: Started Location Lookup Service.
    polkitd(authority=local)[1411]: Registered Authentication Agent for unix-session:1 (system bus name :1.88 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/Authenticati
    gnome-shell[2651]: Telepathy is not available, chat integration will be disabled.
    gnome-shell[2651]: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/appIcons.js 1028]: unreachable code after return statement
    dropbox[2964]: Unable to connect to the Notification Watcher: Timeout was reached
    update-notifier[3287]: Unable to connect to the Notification Watcher: Timeout was reached
    gsd-xsettings[2841]: Failed to get current display configuration state: Timeout was reached