NVIDIA video driver stops working after update

The proprietary driver may give a bit better performance with 3D. But in any case if you use it you must use the nvidia-bumblebee package not the normal NVIDIA packages

You are apparently lucky enough: nouveau support for Kepler chips (GK107 among others) seems not that bad.
If you are not a heavy gamer, maybe you are good to go with nouveau.
A quick search gave these two benchmarks among others, so you can form an idea yourself:

Anyway, if you have again a stable system and bumblebee works as expected, installing nvidia-bumblebee 367.27 should not be that difficult.

HI
I’m very sorry. Probably I left active the nvidia repository and the yesterday update to kernel 4.1.31.30-2 start to download and install the nvidia driver, although I didn’t have them installed.

Now my VIdeo is again broken I deinstalled the nvidia driver but the X11 is still broken

the repository:


#  | Alias                           | Nome                        | abilitato | Controllo GPG | Attualizza | Priorità | Tipo   | URI                                                               | Servizio
---+---------------------------------+-----------------------------+-----------+---------------+------------+----------+--------+-------------------------------------------------------------------+---------
 1 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)   | Sì        | (r ) Sì       | Sì         |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/ |         
 2 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss) | Sì        | (r ) Sì       | Sì         |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/non-oss/            |         
 3 | download.opensuse.org-oss       | Main Repository (OSS)       | Sì        | (r ) Sì       | Sì         |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/oss/     |         
 4 | download.opensuse.org-oss_1     | Main Update Repository      | Sì        | (r ) Sì       | Sì         |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/oss                 |         
 5 | ftp.gwdg.de-suse                | Packman Repository          | Sì        | (r ) Sì       | Sì         |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_42.1/     |         
 6 | linuxdownload.adobe.com-linux   | Adobe Flash Plugin          | Sì        | ( p) Sì       | Sì         |   99     | rpm-md | http://linuxdownload.adobe.com/linux/x86_64/                      |         
13 | repo-update                     | openSUSE-Leap-42.1-Update   | Sì        | (r ) Sì       | Sì         |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/oss/                |  

the package installed



S | Nome                           | Tipo    | Versione                      | Arch.  | Archivio                 
--+--------------------------------+---------+-------------------------------+--------+--------------------------
i | bumblebee                      | package | 3.2.1-10.2                    | x86_64 | Main Update Repository   
i | bumblebee                      | package | 3.2.1-10.2                    | x86_64 | openSUSE-Leap-42.1-Update
i | devel_kernel                   | pattern | 20150918-12.1                 | x86_64 | Main Update Repository   
i | devel_kernel                   | pattern | 20150918-12.1                 | x86_64 | openSUSE-Leap-42.1-Update
i | kernel-default                 | package | 4.1.31-30.2                   | x86_64 | Main Update Repository   
i | kernel-default                 | package | 4.1.31-30.2                   | x86_64 | openSUSE-Leap-42.1-Update
i | kernel-default                 | package | 4.1.27-27.1                   | x86_64 | Main Update Repository   
i | kernel-default                 | package | 4.1.27-27.1                   | x86_64 | openSUSE-Leap-42.1-Update
i | kernel-default                 | package | 4.1.21-14.2                   | x86_64 | Main Update Repository   
i | kernel-default                 | package | 4.1.21-14.2                   | x86_64 | openSUSE-Leap-42.1-Update
i | kernel-default                 | package | 4.1.20-11.1                   | x86_64 | Main Update Repository   
i | kernel-default                 | package | 4.1.20-11.1                   | x86_64 | openSUSE-Leap-42.1-Update
i | kernel-default                 | package | 4.1.15-8.1                    | x86_64 | Main Update Repository   
i | kernel-default                 | package | 4.1.15-8.1                    | x86_64 | openSUSE-Leap-42.1-Update
i | kernel-default-devel           | package | 4.1.31-30.2                   | x86_64 | Main Update Repository   
i | kernel-default-devel           | package | 4.1.31-30.2                   | x86_64 | openSUSE-Leap-42.1-Update
i | kernel-default-devel           | package | 4.1.27-27.1                   | x86_64 | Main Update Repository   
i | kernel-default-devel           | package | 4.1.27-27.1                   | x86_64 | openSUSE-Leap-42.1-Update
i | kernel-devel                   | package | 4.1.31-30.1                   | noarch | Main Update Repository   
i | kernel-devel                   | package | 4.1.31-30.1                   | noarch | openSUSE-Leap-42.1-Update
i | kernel-devel                   | package | 4.1.27-27.1                   | noarch | Main Update Repository   
i | kernel-devel                   | package | 4.1.27-27.1                   | noarch | openSUSE-Leap-42.1-Update
i | kernel-firmware                | package | 20160503-3.1                  | noarch | Main Update Repository   
i | kernel-firmware                | package | 20160503-3.1                  | noarch | openSUSE-Leap-42.1-Update
i | kernel-macros                  | package | 4.1.31-30.1                   | noarch | Main Update Repository   
i | kernel-macros                  | package | 4.1.31-30.1                   | noarch | openSUSE-Leap-42.1-Update
i | libXxf86dga1                   | package | 1.1.4-5.1                     | x86_64 | Main Repository (OSS)    
i | libXxf86misc1                  | package | 1.0.3-12.1                    | x86_64 | Main Repository (OSS)    
i | libXxf86vm-devel               | package | 1.1.4-1.1                     | x86_64 | Main Repository (OSS)    
i | libXxf86vm1                    | package | 1.1.4-1.1                     | x86_64 | Main Repository (OSS)    
i | libXxf86vm1-32bit              | package | 1.1.4-1.1                     | x86_64 | Main Repository (OSS)    
i | libxcb-xf86dri0                | package | 1.11.1-1.1                    | x86_64 | Main Repository (OSS)    
i | patterns-openSUSE-devel_kernel | package | 20150918-12.1                 | x86_64 | Main Update Repository   
i | patterns-openSUSE-devel_kernel | package | 20150918-12.1                 | x86_64 | openSUSE-Leap-42.1-Update
i | texlive-l3kernel               | package | 2013.84.svn_4469svn29409-17.5 | noarch | Main Repository (OSS)    
i | texlive-l3kernel-doc           | package | 2013.84.svn_4469svn29409-17.5 | noarch | Main Repository (OSS)    
i | xf86-input-evdev               | package | 2.9.2-5.2                     | x86_64 | Main Repository (OSS)    
i | xf86-input-joystick            | package | 1.6.2-12.2                    | x86_64 | Main Repository (OSS)    
i | xf86-input-keyboard            | package | 1.8.1-6.2                     | x86_64 | Main Repository (OSS)    
i | xf86-input-mouse               | package | 1.9.1-6.2                     | x86_64 | Main Repository (OSS)    
i | xf86-input-synaptics           | package | 1.8.2-5.2                     | x86_64 | Main Repository (OSS)    
i | xf86-input-vmmouse             | package | 13.1.0-6.1                    | x86_64 | Main Repository (OSS)    
i | xf86-input-void                | package | 1.4.1-5.2                     | x86_64 | Main Repository (OSS)    
i | xf86-input-wacom               | package | 0.30.0-4.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-ark                 | package | 0.7.5-12.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-ast                 | package | 1.1.5-1.1                     | x86_64 | Main Repository (OSS)    
i | xf86-video-ati                 | package | 7.5.0-5.3                     | x86_64 | Main Repository (OSS)    
i | xf86-video-chips               | package | 1.2.5-13.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-cirrus              | package | 1.5.3-5.2                     | x86_64 | Main Repository (OSS)    
i | xf86-video-dummy               | package | 0.3.7-9.2                     | x86_64 | Main Repository (OSS)    
i | xf86-video-fbdev               | package | 0.4.4-5.2                     | x86_64 | Main Repository (OSS)    
i | xf86-video-glint               | package | 1.2.8-11.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-i128                | package | 1.3.6-11.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-intel               | package | 2.99.917-15.1                 | x86_64 | Main Update Repository   
i | xf86-video-intel               | package | 2.99.917-15.1                 | x86_64 | openSUSE-Leap-42.1-Update
i | xf86-video-mach64              | package | 6.9.5-3.2                     | x86_64 | Main Repository (OSS)    
i | xf86-video-mga                 | package | 1.6.4-5.2                     | x86_64 | Main Repository (OSS)    
i | xf86-video-neomagic            | package | 1.2.9-2.2                     | x86_64 | Main Repository (OSS)    
i | xf86-video-nouveau             | package | 1.0.11-7.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-qxl                 | package | 0.1.4-4.2                     | x86_64 | Main Repository (OSS)    
i | xf86-video-r128                | package | 6.10.0-5.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-savage              | package | 2.3.8-5.1                     | x86_64 | Main Update Repository   
i | xf86-video-savage              | package | 2.3.8-5.1                     | x86_64 | openSUSE-Leap-42.1-Update
i | xf86-video-siliconmotion       | package | 1.7.8-4.1                     | x86_64 | Main Repository (OSS)    
i | xf86-video-sis                 | package | 0.10.8-2.1                    | x86_64 | Main Repository (OSS)    
i | xf86-video-sisusb              | package | 0.9.6-11.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-tdfx                | package | 1.4.6-3.2                     | x86_64 | Main Repository (OSS)    
i | xf86-video-tga                 | package | 1.2.2-11.2                    | x86_64 | Main Repository (OSS)    
i | xf86-video-vesa                | package | 2.3.4-6.1                     | x86_64 | Main Repository (OSS)    
i | xf86-video-voodoo              | package | 1.2.5-12.2                    | x86_64 | Main Repository (OSS)    
i | xf86vidmodeproto-devel         | package | 2.3.1-8.2                     | x86_64 | Main Repository (OSS)

the error in the Xorg.0.log is

    21.827] (II) LoadModule: "nvidia"
    21.828] (WW) Warning, couldn't open module nvidia
    21.828] (II) UnloadModule: "nvidia"
    21.828] (II) Unloading nvidia
    21.828] (EE) Failed to load module "nvidia" (module does not exist, 0)
    21.828] (EE) No drivers available.
    21.828] (EE)
Fatal server error:
    21.828] (EE) no screens found(EE)
    21.828] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
    21.828] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    21.828] (EE)

is it possible that the nvidia module is still blacklisted? How can I check for this?

Please check that no leftovers from the nvidia install are still on your system (how did you uninstall it?).
Check that NO /etc/X11/xorg.conf file exists (if it is there, please delete it);
check that in the /etc/modprobe.d/50-blacklist.conf file you still have a line reading “blacklist nouveau”;
check that in the /etc/X11/xorg.conf.d/ directory you have nothing mentioning “nvidia” in the device.conf, monitor.conf or screen.conf files;
uninstall, then reinstall “bumblebee” (should not be necessary, but does no harm);
in a terminal with superuser rights issue “dracut --hostonly --force” to rebuild the initrd;
reboot: you should be good to go using the nouveau driver.

thanks to this post

https://forums.opensuse.org/showthread.php/487400-Trying-to-reenable-Nouveau-after-failed-nVidia-install#10

I solved the problem issuing the command

sudo rm /etc/modprobe.d/nvidia.conf

/etc/modprobe.d/nvidia.conf

was the file that slipped me out from the excellent advice of Orsobruno.
Thank you very much

Dear all
I installed the nvidia-bumblebee and now the X interface seems working, but I get the following error

@vaio-i5:~$ optirun --status
   96.635688] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
   96.635721] [ERROR]Could not connect to bumblebee daemon - is it running?
vaio-i5:~$ sudo /sbin/lspci -nnk | grep VGA -A2
root's password:
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

Seems like service bumblebeed is not active and/or nouveau is still engaged.
Please check in Yast2-Services manager that bumblebeed is “Enabled” and “Active”: if not so, activate it.
Then check that you really added “blacklist nouveau” either to /etc/modprobe.d/50-blacklist.conf or to /etc/modprobe.d/50-blacklist-nouveau.conf
A reboot is needed.

I followed your plain indication and bumblebee now is working. I bag your pardon for further assistance because trying to test optirun I got the following:

robber@vaio-i5:~$ bumblebee --status 
If 'bumblebee' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf bumblebee
robber@vaio-i5:~$ optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.

robber@vaio-i5:~$ optirun glxspheres
  144.826563] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

  144.826628] [ERROR]Aborting because fallback start is disabled.
robber@vaio-i5:~$ 

Have I to set the card in /etc/modprobe.d/50-bbswitch.conf"?


robber@vaio-i5:~$ bumblebee --status 
If 'bumblebee' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf bumblebee

bumblebee is a package, not a command.


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

That’s OK.


robber@vaio-i5:~$ optirun glxspheres
  144.826563] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

  144.826628] [ERROR]Aborting because fallback start is disabled.
robber@vaio-i5:~$

Apparently you didn’t follow exactly some details in the guide https://en.opensuse.org/SDB:NVIDIA_Bumblebee#OPTIONAL:_Install_NVIDIA_driver
The nvidia driver either was not built or installed or is not engaged for other reasons apparently. Try:


LT_B:~ # optirun -b none lsmod |grep nvidia
nvidia_uvm            675840  0 
nvidia_drm             49152  1 
nvidia_modeset        765952  2 nvidia_drm
nvidia              11091968  40 nvidia_modeset,nvidia_uvm
drm_kms_helper        139264  2 i915,nvidia_drm
drm                   385024  7 i915,drm_kms_helper,nvidia_drm
LT_B:~ #

If you get something different, try reinstalling nvidia-bumblebee.
Or post the result of:


zypper se -iv nvidia bumblebee bbswitch

I got something different the error

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

[14066.053774] [ERROR]Aborting because fallback start is disabled.
robber@vaio-i5:~$ 

I post the result of the code

S | Nome                   | Tipo    | Versione           | Arch.  | Archivio                              
--+------------------------+---------+--------------------+--------+---------------------------------------
i | bbswitch               | package | 0.8-7.17           | x86_64 | Main Repository (OSS)                 
    name: bbswitch
i | bbswitch               | package | 0.8-7.17           | x86_64 | (Pacchetti di Sistema)                
    name: bbswitch
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 | bumblebee              | package | 3.2.1-10.2         | x86_64 | Main Update Repository                
    name: bumblebee
i | bumblebee              | package | 3.2.1-10.2         | x86_64 | openSUSE-Leap-42.1-Update             
    name: bumblebee
i | bumblebee              | package | 3.2.1-10.2         | x86_64 | (Pacchetti di Sistema)                
    name: bumblebee
i | nvidia-bumblebee       | package | 367.44-2.1         | x86_64 | Bumblebee project (openSUSE_Leap_42.1)
    name: nvidia-bumblebee
i | nvidia-bumblebee       | package | 367.44-2.1         | x86_64 | (Pacchetti di Sistema)                
    name: nvidia-bumblebee
i | nvidia-bumblebee-32bit | package | 367.44-2.1         | x86_64 | Bumblebee project (openSUSE_Leap_42.1)
    name: nvidia-bumblebee-32bit
i | nvidia-bumblebee-32bit | package | 367.44-2.1         | x86_64 | (Pacchetti di Sistema)                
    name: nvidia-bumblebee-32bit

Something is preventing the nvidia driver from engaging properly.
Please check:

  1. that the nvidia kernel modules are indeed in place: you should see something like:

# ls -l /lib/modules/4.1.31-30-default/updates/
total 17132
-rw-r--r-- 1 root root    84760 Aug 13 13:13 nvidia-drm.ko
-rw-r--r-- 1 root root 15292920 Aug 13 13:13 nvidia.ko
-rw-r--r-- 1 root root  1050784 Aug 13 13:13 nvidia-modeset.ko
-rw-r--r-- 1 root root  1107864 Aug 13 13:13 nvidia-uvm.ko
#

  1. check that your user is a member of “bumblebee” and “video” groups.
  2. check (again) that nouveau is blacklisted: you should NEVER see “nouveau” when running “lsmod”.
  3. rebuild the initrd (maybe you forgot that step in the guide?):

dracut --hostonly --force

  1. reboot.

Please avoid suspend or hibernate, at least until you have all this sorted out: that might have similar effects on some HW.

If that doesn’t work I’m running out of ideas…

This one was the right advice. I removed nvidia-bumblebee then I reinstalled it and automagically everything is working.
One more advice:
leaving active re X11:Bumblebee repo at the next kernel update have I to perform anything to have a working system?

If you have installed dkms, it should take care of everything.
Be aware that the first reboot after a kernel upgrade might take as long as 3-10 minutes to allow for rebuilding the nvidia kernel modules.

I just upgraded the nvidia drivers to 367.44-26.1 and after a restart it will not open X.
I tried to reinstall the nvidia drivers, but still not working.
The Xorg.0.log mention nvidia 367.35 drivers

Also from the log it seems it tries to load nouveau, but fails, even though it is blacklisted.
Could not open module nouveau.

My Xorg.0.log
http://paste.opensuse.org/24001958

I cannot see anything wrong in this log.

I noticed some warnings when I reinstalled the nvidia drivers
depmod: WARNING: could not open /lib/modules/4.1.12-1-default/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/4.1.12-1-default/builtin: No such file or directory

There is only
/lib/modules/4.1.12-1-default/builtin.bin

Hmm the OP here in this thread had a Optimus based system. DO you? Best start a new thread and give more details like card used and if notebook etc

As usual after a kernel upgrade nvidia driver is no more working correctly:
I had blacklisted the nouveau driver now I found a strange “51-blacklist-nouveau.conf” with the following contents:

blacklist nouveau
blacklist nvidia

I renamed it “50-blacklist-nouveau.conf”

but:

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

and

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


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


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

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

I have to reinstall the nvidia-bumblebee from the repo

[home:dirtycold](https://build.opensuse.org/package/show?project=home%3Adirtycold&package=nvidia-bumblebee)    

because the X11/Bumblebee gave an error, due to not existing file, after attempting to reinstall the package

Did you install the KMS package?? You should not have to manually disable nouveau the install of the NVIDIA package doe this