Nvidia drivers not working (Fedora 23, Gtx 960M)

Hi readers,

I recently bought a new MSI laptop (MSI PE70 2QE-403NL) to replace my old desktop. Due to preference I installed Fedora 23 alongside the existing Windows 10. Everything works like a charm, however, whenever I try to install the proprietary nvidia drivers for the 960m, the graphical environment is no longer able to boot. The moment the log-in manager is supposed to pop up, I get an error message:“Oh no, something has gone wrong”. I can restore this by uninstalling the previously installed nvidia drivers. I have also tried all the options from the following link: http://rpmfusion.org/Howto/nVidia

I have also tried:
http://www.nvidia.com/download/driverResults.aspx/104284/en-us
http://www.nvidia.com/download/driverResults.aspx/83686/en-us

Using the following guide as a reference (not recommended guide though):
http://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/

As well as scouring the internet en Stackexchange, however all is for naught.

My card is properly recognized

lspci | grep NVIDIA
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

Secure- and fastboot are disabled, no additional GPU options are available in the BIOS.

My previous laptop worked fine, so sadly I don’t have much prior experience in this. If you need any additional information, I will provide is asap.

Thank you for the time.

Could you try preferentially installing Mint instead.

The Driver Manager takes care of that business for you. I suspect Nouveau is giving you grief, but the fact that your login screen pops up means something with the driver config is amiss. So instead of delving into that PITA, how about you give the above distro a spin and see if we can’t get you running.

Hi Randyryu, As soon as issue hit please provide nvidia bug report by running nvidia-bug-report.sh script as super/root user. Is your laptop had two GPUs Intel+NVIDIA ? Please try install driver with --no-opengl-files option and check.

Hi sandipt,

I tried installing it as mentioned in the if!i?o article (reboot into level 3, run the .run file), but this time with --no-opengl-files. This time around the installer is not able to finish and crashes during install.

/var/log/nvidia-installer.log.

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Jun 20 12:49:35 2016
installer version: 346.59

PATH: /usr/local/bin:/usr/bin:/home/rtheuns/bin:/usr/local/sbin:/usr/sbin

nvidia-installer command line:
    ./nvidia-installer
    --no-opengl-files

Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted.
-> Installing NVIDIA driver version 346.59.
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing both new and classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility libraries? (Answer: Yes)
-> Skipping installation of the libvdpau wrapper library.
-> Searching for conflicting files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (346.59):
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-compiler.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-encode.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libcuda.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-opencl.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libOpenCL.so.1.0.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-cfg.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvcuvid.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-fbc.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-ifr.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-ml.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/vdpau/libvdpau_nvidia.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/xorg/modules/drivers/nvidia_drv.so'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/xorg/modules/libnvidia-wfb.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-gtk2.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib64/libnvidia-gtk3.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libcuda.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-ml.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libOpenCL.so.1.0.0'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-compiler.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-opencl.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/vdpau/libvdpau_nvidia.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvcuvid.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-encode.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-ifr.so.346.59'...
   executing: '/usr/bin/chcon -t textrel_shlib_t /usr/lib/libnvidia-fbc.so.346.59'...
   executing: '/usr/sbin/ldconfig'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 346.59 -k 4.5.7-200.fc23.x86_64`: 
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.5.7-200.fc23.x86_64 module KERNEL_UNAME=4.5.7-200.fc23.x86_64; make -C uvm module KERNEL_UNAME=4.5.7-200.fc23.x86_64 KBUILD_EXTMOD=/var/lib/dkms/nvidia/346.59/build/uvm......(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.5.7-200.fc23.x86_64 (x86_64)
Consult /var/lib/dkms/nvidia/346.59/build/make.log for more information.
-> error.
ERROR: Failed to install the kernel module through DKMS. No kernel module was installed; please try installing again without DKMS, or check the DKMS logs for more information.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Also I do indeed have two graphics:

lspci
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5600 (rev 0a)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

Thanks.

Nevermind the above story.

Reinstalled Fedora to get clean config. Then simple followed the steps for Bumblebee, which works now.

Thread can be closed.