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:
[url]PRIME and PRIME Synchronization - Linux - NVIDIA Developer Forums
[url]http://us.download.nvidia.com/XFree86/Linux-x86_64/370.23/README/randr14.html[/url]
[url]NVIDIA Optimus - ArchWiki
Script by nospam_: [url]https://devtalk.nvidia.com/default/topic/995110/linux/oops-something-went-wrong-and-the-system-can-t-recover/post/5090825/#5090825[/url]
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)