Failure on GTX 1050 laptop

Hi, trying to use the driver on an optimus enabled laptop (GTX 1050).
At first the display server could not start (no screens found), but it seams there might be something wrong with the driver?

NVRM: loading NVIDIA Kernel Module 378.13
NVRM: RmInitAdapter failed! (0x26:0xffff:1097)
NVRM: rm_init_adapter failed for device bearing minor number 0

Is it the driver or am I perhaps missing some configuration?

Doesn’t look good, try downgrading driver to 375
Still, you will have to setup PRIME:
https://devtalk.nvidia.com/default/topic/957814/linux/prime-and-prime-synchronization/
http://us.download.nvidia.com/XFree86/Linux-x86_64/370.23/README/randr14.html
https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers
Script by nospam_: https://devtalk.nvidia.com/default/topic/995110/linux/oops-something-went-wrong-and-the-system-can-t-recover/post/5090825/#5090825
Other than that, what distro?
Always run nvidia-bug-report.sh and attach output.

I have been trying Fedora 25 and then Arch Linux.
The bug report is taken from Arch Linux.
nvidia-bug-report.log (178 KB)