Login loop after installing nvidia driver (UBUNTU 16.04 GTX 1050TI)

Hi,

I browsed a bunch of post since yesterday, desperate to get this work, but without any success.
I installed Ubuntu 16.04 on this laptop MSI - GF63 8RD-436FR
By default nouveau driver just get a 800x600 screen res, that i can’t fix (xrandr doesnt detect display properley, and i found no way to increase the resolution)

The only solution that appears to me was to use nvidia drivers, and whatever may be the method i tried until now, i always end up with a login loop.

I tried .run install and ppa one, most post advise the ppa one.

For instance, when i do on a fresh install:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-390 nvidia-prime

and the typical stuff to blacklist nouveau :
nano /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u
sudo reboot

I end up on the same login loop.

Any hints or ideas ?

Many thanks to any brave soul that would have the least ideas about this.

Edit:

nvidia-smi shoes gpu information, so i suppose driver is ok

Seemed to be solved with

sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04