Here you can see there's much internal screen flickering on this laptop. Previously, I had Ubuntu 18.10. The screen flickering was not too much, it was only occasional but in 18.04.3 it increases day by day. The problem is not in hardware because in the bootloader menu screen doesn't flicker.
I tried using both Intel® HD Graphics 520 (Skylake GT2) and GeForce 940MX/PCIe/SSE2 Graphics. Screen flickering while using Nvidia is more as compared to Intel.
I'm also using an external monitor which works totally fine without any flickering.
I couldn't find any concrete solution to solve this problem.
Driver info:
(base) prabhat@prabhat-HP-Pavilion-Notebook:~$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 ==
modalias : pci:v000010DEd0000134Dsv0000103Csd0000820Cbc03sc02i00
vendor : NVIDIA Corporation
model : GM108M [GeForce 940MX]
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-430 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
Also nvidia-smi
is showing nvidia-driver-430
Here is the link to recomended 435.21 driver on nvidia website