NVIDIA video driver stops working after update

Sorry what is “KMS package”?

I think he meant the dkms package (dkms-2.2.0.3-16.1.noarch.rpm available from the X11:/Bumblebee repo).
The X11:/Bumblebee repo looks OK now, maybe it is worth trying again; it is not clear to me wether the packages from home:dirtycold
have custom modifications that might require special configs…

Yes dkms sorry typo. :stuck_out_tongue: DKMS is a way to re compile things when a kernel is upgraded. Without it you have to reinstall

I reinstalled from the Bumblebee repo as follow:

S | Nome                   | Tipo    | Versione           | Arch.  | Archivio                              
--+------------------------+---------+--------------------+--------+---------------------------------------
i | bbswitch               | package | 0.8-24.2           | x86_64 | Bumblebee project (openSUSE_Leap_42.1)
    name: bbswitch
i | bbswitch               | package | 0.8-24.2           | x86_64 | (Pacchetti di Sistema)                
    name: bbswitch
i | bbswitch-kmp-default   | package | 0.8_k4.1.12_1-24.2 | x86_64 | Bumblebee project (openSUSE_Leap_42.1)
    name: bbswitch-kmp-default
i | bbswitch-kmp-default   | package | 0.8_k4.1.12_1-7.17 | x86_64 | Main Repository (OSS)                 
    name: bbswitch-kmp-default
i | bbswitch-kmp-default   | package | 0.8_k4.1.12_1-7.17 | x86_64 | (Pacchetti di Sistema)                
    name: bbswitch-kmp-default
i | bbswitch-kmp-default   | package | 0.8_k4.1.12_1-24.2 | x86_64 | (Pacchetti di Sistema)                
    name: bbswitch-kmp-default
i | bumblebee              | package | 3.2.1-32.1         | x86_64 | Bumblebee project (openSUSE_Leap_42.1)
    name: bumblebee
i | bumblebee              | package | 3.2.1-32.1         | x86_64 | (Pacchetti di Sistema)                
    name: bumblebee
i | dkms                   | package | 2.2.0.3-16.1       | noarch | Bumblebee project (openSUSE_Leap_42.1)
    name: dkms
i | dkms                   | package | 2.2.0.3-16.1       | noarch | (Pacchetti di Sistema)                
    name: dkms
i | nvidia-bumblebee       | package | 375.26-1.1         | x86_64 | Bumblebee project (openSUSE_Leap_42.1)
    name: nvidia-bumblebee
i | nvidia-bumblebee       | package | 375.26-1.1         | x86_64 | (Pacchetti di Sistema)                
    name: nvidia-bumblebee
i | nvidia-bumblebee-32bit | package | 375.26-1.1         | x86_64 | Bumblebee project (openSUSE_Leap_42.1)
    name: nvidia-bumblebee-32bit
i | nvidia-bumblebee-32bit | package | 375.26-1.1         | x86_64 | (Pacchetti di Sistema)                
    name: nvidia-bumblebee-32bit

but still


robber@vaio-i5:~$ optirun -b none lsmod |grep nvidia
  150.577424] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver


  150.577453] [ERROR]Aborting because fallback start is disabled.

I suppose I’m not able to blacklist nouveau


robber@vaio-i5:~$ sudo /sbin/lspci -nnk | grep VGA -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Sony Corporation Device [104d:909a]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 640M LE] [10de:0fd3] (rev a1)
    Subsystem: Sony Corporation Device [104d:909a]
    Kernel modules: nouveau, nvidia_drm, nvidia

This is the list of

robber@vaio-i5:~$ dir /etc/modprobe.d/
totale 64
-rw-r--r-- 1 root root 3647 26 feb  2016 00-system.conf
-rw-r--r-- 1 root root  532 14 nov  2012 10-unsupported-modules.conf
-rw-r--r-- 1 root root  181  9 nov  2015 50-alsa.conf
-rw-r--r-- 1 root root   45  7 gen  2016 50-bbswitch.conf
-rw-r--r-- 1 root root 4619 19 dic 17.17 50-blacklist.conf
-rw-r--r-- 1 root root 5986 26 giu  2014 50-blacklist.conf.rpmsave
-rw-r--r-- 1 root root   35 20 dic 19.48 50-blacklist-nouveau.conf
-rw-r--r-- 1 root root  128 13 ott  2015 50-bluetooth.conf
-rw-r--r-- 1 root root   33 30 set  2015 50-ipw2200.conf
-rw-r--r-- 1 root root   34 30 set  2015 50-iwl3945.conf
-rw-r--r-- 1 root root   18 30 set  2015 50-prism54.conf
-rw-r--r-- 1 root root  101 24 dic  2013 50-sound.conf
-rw-r--r-- 1 root root    0 24 dic  2013 50-sound.conf.YaST2save
-rw-r--r-- 1 root root   35 19 dic 11.27 51-blacklist-nouveau.conf
-rw-r--r-- 1 root root   47 22 nov  2011 99-local.conf

robber@vaio-i5:~$ ls -l /lib/modules/4.1.36-41-default/updates/
totale 18444
-rw-r--r-- 1 root root    97152 21 dic 16.13 nvidia-drm.ko
-rw-r--r-- 1 root root 16363112 21 dic 16.13 nvidia.ko
-rw-r--r-- 1 root root  1090440 21 dic 16.13 nvidia-modeset.ko
-rw-r--r-- 1 root root  1329160 21 dic 16.13 nvidia-uvm.ko

That looks strange: where does it come from?
Try deleting the “blacklist nvidia” line, then rebuild the initrd (dracut --hostonly --force) and reboot.

Done with no results.

robber@vaio-i5:~$ optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.


robber@vaio-i5:~$ sudo tee /proc/acpi/bbswitch <<<ON
root's password:
ON
robber@vaio-i5:~$ optirun -b none lsmod |grep nvidia
  190.638056] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver


  190.638158] [ERROR]Aborting because fallback start is disabled.
robber@vaio-i5:~$ sudo /sbin/lspci -nnk | grep VGA -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Sony Corporation Device [104d:909a]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 640M LE] [10de:0fd3] (rev a1)
    Subsystem: Sony Corporation Device [104d:909a]
    Kernel modules: nouveau, nvidia_drm, nvidia
robber@vaio-i5:~$ cat /etc/modprobe.d/51-blacklist-nouveau.conf 
blacklist nouveau
robber@vaio-i5:~$ cat /etc/modprobe.d/50-blacklist-nouveau.conf 
blacklist nouveau
robber@vaio-i5:~$ 

It seems that the latest driver does support no more my nvidia card?

  4825.350323] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none 4825.350354] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:0fd3)
NVRM: installed in this system is not supported by the 375.26
NVRM: NVIDIA Linux driver release.  Please see 'Appendix
NVRM: A - Supported NVIDIA GPU Products' in this release's
NVRM: README, available on the Linux driver download page
NVRM: at www.nvidia.com.
 4825.350391] nvidia: probe of 0000:01:00.0 failed with error -1
 4825.350425] nvidia-nvlink: Nvlink Core is being initialized, major device number 248
 4825.350448] NVRM: The NVIDIA probe routine failed for 1 device(s).
 4825.350449] NVRM: None of the NVIDIA graphics adapters were initialized!
 4825.350452] nvidia-nvlink: Unregistered the Nvlink Core, major device number 248
 4856.526766] SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:c685:08ff:fe9b:22d3 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=93 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=53 

This is puzzling, the README.txt file for 375.26 at line 7005 lists your card among “supported GPUs”:

GeForce GT 640M LE 0FD3

Maybe something disabled the GPU some other way or otherwise prevented it from being seen?

Further the blacklisting of nouveau doesn’t work
Very frustrating matter

Please post the results of the following commands:

dmesg | grep nvidia
dmesg | grep NVRM
dmesg | grep bbswitch

Please also post the content of /etc/modprobe.d/50-bbswitch.conf

NVRM: at www.nvidia.com.
   44.494433] nvidia: probe of 0000:01:00.0 failed with error -1
   44.494469] nvidia-nvlink: Nvlink Core is being initialized, major device number 248
   44.494491] nvidia-nvlink: Unregistered the Nvlink Core, major device number 248

   44.411085] NVRM: The NVIDIA probe routine failed for 1 device(s).
   44.411086] NVRM: None of the NVIDIA graphics adapters were initialized!
   44.458650] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:0fd3)
NVRM: installed in this system is not supported by the 375.26
NVRM: NVIDIA Linux driver release.  Please see 'Appendix
NVRM: A - Supported NVIDIA GPU Products' in this release's
NVRM: README, available on the Linux driver download page
NVRM: at www.nvidia.com.
   44.458746] NVRM: The NVIDIA probe routine failed for 1 device(s).
   44.458747] NVRM: None of the NVIDIA graphics adapters were initialized!
   44.494389] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:0fd3)
NVRM: installed in this system is not supported by the 375.26
NVRM: NVIDIA Linux driver release.  Please see 'Appendix
NVRM: A - Supported NVIDIA GPU Products' in this release's
NVRM: README, available on the Linux driver download page
NVRM: at www.nvidia.com.
   44.494487] NVRM: The NVIDIA probe routine failed for 1 device(s).
   44.494489] NVRM: None of the NVIDIA graphics adapters were initialized!

    2.687701] bbswitch: version 0.8
    2.687711] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
    2.687718] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
    2.687905] bbswitch: detected an Optimus _DSM function
    2.687991] bbswitch: disabling discrete graphics
    2.706058] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off
   44.526749] bbswitch: disabling discrete graphics
   44.527629]  rtsx_pci_ms dm_mod iTCO_vendor_support memstick sony_laptop cfg80211 tpm_tis joydev battery tpm rfkill lpc_ich r8169 mii serio_raw thermal i2c_i801 shpchp mei_me mei soundcore pcspkr ac intel_rapl processor x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd hid_generic usbhid rtsx_pci_sdmmc mmc_core xhci_pci ehci_pci xhci_hcd rtsx_pci ehci_hcd mfd_core usbcore usb_common i915 i2c_algo_bit drm_kms_helper drm wmi video button sg bbswitch(O)
   44.527698]  <ffffffffa0000200>] bbswitch_off+0x90/0x250 [bbswitch]
   44.527702]  <ffffffffa00005e5>] bbswitch_proc_write+0x95/0xac [bbswitch]
 8098.115811] bbswitch: enabling discrete graphics
 8101.791381] bbswitch: disabling discrete graphics
[56630.469956] bbswitch: enabling discrete graphics
[56634.241641] bbswitch: disabling discrete graphics

robber@vaio-i5:~$ cat /etc/modprobe.d/50-bbswitch.conf 
options bbswitch load_state=1 unload_state=1
robber@vaio-i5:~$ 

Your 50-bbswitch.conf looks right to me, with both states being 1
With unload_state=0 or load_state=0 it used to provoke the same symptoms on my laptop as on yours.

bbswitch is switching off the Nvidia card at a very early stage of your boot process:

2.687991] bbswitch: disabling discrete graphics

It should not be switched off with load_state=1 while booting before configuration of the ressources takes place.

I think this is a timing problem, preventing the correct initialization of the Nvidia card, that is, the Nvidia card is already switched off,
when the ressources of your CPU are distributed to the laptop components during the boot process.
The Nvidia card looks dead at that moment, not reacting to any questions asked by the boot process.
The wrong distribution of the ressources can’t be corrected later, only when rebooting with the right timing, the Nvidia card switched on during ressources distribution.

With your 50-bbswitch.conf content looking correct, the only guess would be to rebuild the initrd by

mkinitrd  

and reboot the system afterwards, hoping the initialization didn’t work due to the fact that your correct 50-bbswitch.conf wasn’t respected when your inital ramdisk was built.

The result of dmesg | grep bbswitch on my laptop (Leap 42.2):

    3.799883] **bbswitch**: loading out-of-tree module taints kernel.
    3.800104] **bbswitch**: version 0.8
    3.800112] **bbswitch**: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
    3.800119] **bbswitch**: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
    3.800260] **bbswitch**: detected an Optimus _DSM function
    3.800330] **bbswitch**: Succesfully loaded. Discrete card 0000:01:00.0 is on
   52.443205] **bbswitch**: disabling discrete graphics
[13792.976681] **bbswitch**: enabling discrete graphics
[13796.362582] **bbswitch**: disabling discrete graphics
[38590.914182] **bbswitch**: enabling discrete graphics
[38594.679133] **bbswitch**: disabling discrete graphics

Watch that my Nvidia card is on at 3.800330] and bbswitch is disabling it not before 52.443205].

Happy new year to all of you and thank very much

The guess of Brunolab was correct now the video card is working correctly. This is the results of glxspheres

robber@vaio-i5:~$ optirun glxspheres 
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 640M LE/PCIe/SSE2
126.900822 frames/sec - 141.621318 Mpixels/sec
127.995682 frames/sec - 142.843181 Mpixels/sec
127.600282 frames/sec - 142.401914 Mpixels/sec
129.516248 frames/sec - 144.540133 Mpixels/sec
129.276141 frames/sec - 144.272173 Mpixels/sec
129.658812 frames/sec - 144.699235 Mpixels/sec
robber@vaio-i5:~$ glxspheres 
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0xb4
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Ivybridge Mobile 
60.236202 frames/sec - 67.223602 Mpixels/sec
60.253308 frames/sec - 67.242692 Mpixels/sec
60.249174 frames/sec - 67.238078 Mpixels/sec
60.287980 frames/sec - 67.281385 Mpixels/sec
60.259833 frames/sec - 67.249974 Mpixels/sec
robber@vaio-i5:~$