Dell Latitude e6420 - Ubuntu 16.04 LTS - mouse touchpad and keyboard freezes after a while

It was the graphics driver - i installed nvidia and works like a champ now (same issue, same pc)

Graphics issues after/while installing Ubuntu 16.04/16.10 with NVIDIA graphics

basically -

Ctrl+Alt+F1

to get into shell that won't get hosed when things freeze up

then:

sudo apt-get install nvidia-375

Just want to thank and confirm this has helped me.

TLDR: I use Dell Latitude E6420 with Ubuntu 21.10, the package name used is nvidia-driver-390.

sudo apt install nvidia-driver-390

First I tried driver version 495 (package name: nvidia-driver-495), it rebooted and go to to safe graphics - 640x480 resolution. Then did "grep -i nvidia /var/log/dmesg", it stated that Nvidia NVS 4200 is detected but support has been dropped on this version, the latest version supporting NVS 4200 is 390, pointing to https://www.nvidia.com/en-gb/drivers/unix/.

Hope this helps anyone else if the package version changes. It's been stable after installing this package, previously it locked up about 1 min after booting onto the graphical logon screen.