Cannot install nvidia-bumblebee - Proxy Error

While I configured proxy settings with the yast but still I get error for installing nvidia-bumblebee

akash:~ # zypper in nvidia-bumblebee
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  nvidia-bumblebee 

1 new package to install.
Overall download size: 13.5 KiB. Already cached: 0 B  After the operation, additional 885.0 B will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package nvidia-bumblebee-346.35-3.1.x86_64                                                             (1/1),  13.5 KiB (  885 B unpacked)
Retrieving: nvidia-bumblebee-346.35-3.1.x86_64.rpm ............................................................................................[done]
Checking for file conflicts: ..................................................................................................................[done]
(1/1) Installing: nvidia-bumblebee-346.35-3.1 ................................................................................................[error]
Installation of nvidia-bumblebee-346.35-3.1 failed:
Error: Subprocess failed. Error: RPM failed: converted 'http://us.download.nvidia.com/XFree86/Linux-x86_64/346.35/NVIDIA-Linux-x86_64-346.35.run' (ANSI_X3.4-1968) -> 'http://us.download.nvidia.com/XFree86/Linux-x86_64/346.35/NVIDIA-Linux-x86_64-346.35.run' (UTF-8)
--2015-01-31 15:55:20--  http://us.download.nvidia.com/XFree86/Linux-x86_64/346.35/NVIDIA-Linux-x86_64-346.35.run
Connecting to 172.27.16.154:3128... connected.
Proxy request sent, awaiting response... 407 Proxy Authentication Required
2015-01-31 15:55:20 ERROR 407: Proxy Authentication Required.

error: %pre(nvidia-bumblebee-346.35-3.1.x86_64) scriptlet failed, exit status 255
error: nvidia-bumblebee-346.35-3.1.x86_64: install failed


Abort, retry, ignore? [a/r/i] (a): a
Warning: %posttrans scripts skipped while aborting:
    nvidia-bumblebee-346.35-3.1.x86_64.rpm

Problem occured during or after installation or removal of packages:
Installation aborted by user

Please see the above error message for a hint.


What can I do now

Proxy request sent, awaiting response… 407 Proxy
Authentication Required 2015-01-31 15:55:20 ERROR 407: Proxy Authentication Required.

Looks like you have some proxy between you and the nvidia download site,
that requires some sort of authentification that the bumblebee download script cannot handle - a college restriction??

Can you download the file directly via your browser and the address http://us.download.nvidia.com/XFree86/Linux-x86_64/346.35/NVIDIA-Linux-x86_64-346.35.run ?
You might have success with copying the then downloaded file NVIDIA-Linux-x86_64-346.35.run into the directory /usr/src/ and rerun the installation of nvidia-bumblebee.
The script should notice that the wanted driver is already, where it should be after the script’s downloading sequence.

Ok now tHAT helps. But now I’m getting another error

akash@akash:~> optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.

akash@akash:~> optirun glxspheres 
 1577.172924] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

 1577.172971] [ERROR]Aborting because fallback start is disabled.
akash@akash:~> optirun -vv glxspheres 
 3515.741492] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
 3515.742094] [DEBUG]optirun version 3.2.1 starting...
 3515.742113] [DEBUG]Active configuration:
 3515.742118] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
 3515.742122] [DEBUG] X display: :8
 3515.742126] [DEBUG] LD_LIBRARY_PATH: /usr/lib64/nvidia:/usr/lib/nvidia
 3515.742131] [DEBUG] Socket path: /var/run/bumblebee.socket
 3515.742136] [DEBUG] Accel/display bridge: auto
 3515.742140] [DEBUG] VGL Compression: proxy
 3515.742144] [DEBUG] VGLrun extra options: 
 3515.742148] [DEBUG] Primus LD Path: /usr/lib64/primus:/usr/lib/primus
 3515.742184] [DEBUG]Using auto-detected bridge virtualgl
 3515.771077] [INFO]Response: No - error: Could not load GPU driver

 3515.771103] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

 3515.771109] [DEBUG]Socket closed.
 3515.771133] [ERROR]Aborting because fallback start is disabled.
 3515.771140] [DEBUG]Killing all remaining processes.


I don’t know weather this is relevant or not.
When I ran mkinitrd I got following errors
1.

Omitting driver i2o_scsi
Skipping udev rule: 91-permissions.rules
Skipping udev rule: 80-drivers-modprobe.rules
akash:~ # uname -r
3.16.7-7-desktop

mkinitrd only tells you about what it does and doesn’t, but as long as there is no ‘error’ within the message, it’is just for information.

After the boot process you could call ‘dmesg’ and look for error messages concerning the graphics card.

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

Please post the results and the content of the file /etc/modprobe.d/50-bbswitch.conf

Now I see some errors

akash@akash:~> dmesg | grep nvidia
   17.551608] nvidia: module license 'NVIDIA' taints kernel.
   17.985659] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
NVRM: at www.nvidia.com.
   17.985912] nvidia: probe of 0000:01:00.0 failed with error -1
   32.300784] proc_dir_entry 'driver/nvidia' already registered
   32.300785] Modules linked in: nvidia(PO+) xt_pkttype xt_LOG xt_limit af_packet vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw ipt_REJECT iptable_raw xt_CT iptable_filter ip6table_mangle nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables binfmt_misc fuse nls_iso8859_1 nls_cp437 vfat fat uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer arc4 ath9k ath9k_common ath9k_hw ath mac80211 cfg80211 iTCO_wdt iTCO_vendor_support acer_wmi sparse_keymap rfkill x86_pkg_temp_thermal intel_powerclamp snd sdhci_pci sdhci mmc_core
   32.300994]  <ffffffffa149ef1b>] nv_register_procfs+0x5b/0x210 [nvidia]
   32.301097]  <ffffffffa08642ab>] nvidia_init_module+0x2ab/0x76b [nvidia]
   32.301161]  <ffffffffa08647fc>] nvidia_frontend_init_module+0x82/0x886 [nvidia]
NVRM: at www.nvidia.com.
   32.301540] nvidia: probe of 0000:01:00.0 failed with error -1
   32.323930] proc_dir_entry 'driver/nvidia' already registered
   32.323931] Modules linked in: nvidia(PO+) xt_pkttype xt_LOG xt_limit af_packet vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw ipt_REJECT iptable_raw xt_CT iptable_filter ip6table_mangle nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables binfmt_misc fuse nls_iso8859_1 nls_cp437 vfat fat uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer arc4 ath9k ath9k_common ath9k_hw ath mac80211 cfg80211 iTCO_wdt iTCO_vendor_support acer_wmi sparse_keymap rfkill x86_pkg_temp_thermal intel_powerclamp snd sdhci_pci sdhci mmc_core
   32.324197]  <ffffffffa1c9df1b>] nv_register_procfs+0x5b/0x210 [nvidia]
   32.324279]  <ffffffffa08642ab>] nvidia_init_module+0x2ab/0x76b [nvidia]
   32.324335]  <ffffffffa08647fc>] nvidia_frontend_init_module+0x82/0x886 [nvidia]
NVRM: at www.nvidia.com.
   32.324680] nvidia: probe of 0000:01:00.0 failed with error -1
akash@akash:~> dmesg | grep NVRM
   17.985833] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1140)
NVRM: installed in this system is not supported by the 346.35
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.
   17.989217] NVRM: The NVIDIA probe routine failed for 1 device(s).
   17.989229] NVRM: None of the NVIDIA graphics adapters were initialized!
   17.989544] NVRM: NVIDIA init module failed!
   32.301468] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1140)
NVRM: installed in this system is not supported by the 346.35
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.
   32.301964] NVRM: The NVIDIA probe routine failed for 1 device(s).
   32.301968] NVRM: None of the NVIDIA graphics adapters were initialized!
   32.302155] NVRM: NVIDIA init module failed!
   32.324614] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1140)
NVRM: installed in this system is not supported by the 346.35
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.
   32.325069] NVRM: The NVIDIA probe routine failed for 1 device(s).
   32.325072] NVRM: None of the NVIDIA graphics adapters were initialized!
   32.325232] NVRM: NVIDIA init module failed!

Impossible! At page of 346.65 http://www.geforce.com/drivers/results/81252 I see, NVIDIA GEFORCE 710M in the supported list, which is my gpu.

akash@akash:~> dmesg | grep bbswitch
    2.814444] bbswitch: version 0.8
    2.814453] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
    2.814460] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
    2.814648] bbswitch: detected an Optimus _DSM function
    2.814731] bbswitch: disabling discrete graphics
    2.827413] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off
   32.300831]  mei_me mei joydev serio_raw shpchp lpc_ich mfd_core pcspkr coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd soundcore i2c_i801 battery ac processor dm_mod efivarfs tg3 ptp pps_core libphy xhci_hcd sr_mod cdrom i915 i2c_algo_bit drm_kms_helper drm wmi video button sg bbswitch(O)
   32.323989]  mei_me mei joydev serio_raw shpchp lpc_ich mfd_core pcspkr coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd soundcore i2c_i801 battery ac processor dm_mod efivarfs tg3 ptp pps_core libphy xhci_hcd sr_mod cdrom i915 i2c_algo_bit drm_kms_helper drm wmi video button sg bbswitch(O)
   33.191875] bbswitch: disabling discrete graphics
   33.192558]  shpchp lpc_ich mfd_core pcspkr coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd soundcore i2c_i801 battery ac processor dm_mod efivarfs tg3 ptp pps_core libphy xhci_hcd sr_mod cdrom i915 i2c_algo_bit drm_kms_helper drm wmi video button sg bbswitch(O)
   33.192718]  <ffffffffa00001e0>] bbswitch_off+0x90/0x250 [bbswitch]
   33.192732]  <ffffffffa00005c5>] bbswitch_proc_write+0x95/0xac [bbswitch]

bbswitch seams to be quite acceptable

akash@akash:~> cat /etc/modprobe.d/50-bbswitch.conf 
options bbswitch load_state=0 unload_state=1

How can this happen?

Sorry in previous post I mistakenly wrote 346.35 as 346.65

akash:~ # hwinfo --gfxcard
10: PCI 02.0: 0300 VGA compatible controller (VGA)              
  [Created at pci.328]
  Unique ID: _Znp.NNcgcU+UyTE
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Model: "Intel 3rd Gen Core processor Graphics Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x0166 "3rd Gen Core processor Graphics Controller"
  SubVendor: pci 0x1025 "Acer Incorporated [ALI]"
  SubDevice: pci 0x0647 
  Revision: 0x09
  Driver: "i915"
  Driver Modules: "drm"
  Memory Range: 0xb3000000-0xb33fffff (rw,non-prefetchable)
  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
  I/O Ports: 0x3000-0x303f (rw)
  IRQ: 42 (1076 events)
  Module Alias: "pci:v00008086d00000166sv00001025sd00000647bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

21: PCI 100.0: 0300 VGA compatible controller (VGA)
  [Created at pci.328]
  Unique ID: VCu0.B647AqfC3Q3
  Parent ID: vSkL.fzCX6WtQ1w8
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia VGA compatible controller"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1140 
  SubVendor: pci 0x1025 "Acer Incorporated [ALI]"
  SubDevice: pci 0x0691 
  Revision: 0xa1
  Memory Range: 0xb2000000-0xb2ffffff (rw,non-prefetchable)
  Memory Range: 0xa0000000-0xafffffff (ro,non-prefetchable)
  Memory Range: 0xb0000000-0xb1ffffff (ro,non-prefetchable)
  I/O Ports: 0x2000-0x2fff (rw)
  IRQ: 16 (99 events)
  Module Alias: "pci:v000010DEd00001140sv00001025sd00000691bc03sc00i00"
  Driver Info #0:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Driver Info #1:
    Driver Status: nvidia is not active
    Driver Activation Cmd: "modprobe nvidia"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #9 (PCI bridge)


From Appendix A. Supported NVIDIA GPU Products for 346.35 at http://in.download.nvidia.com/XFree86/Linux-x86_64/346.35/README/supportedchips.html
My model can be seen

|GeForce 710M|1140 1025 0691|C|
|---|---|---|



So, I believe my model is supported

Try changing the content of /etc/modprobe.d/50-bbswitch.conf from

options bbswitch load_state=0 unload_state=1

to

options bbswitch load_state=-1 unload_state=1

and reboot.

Again error

akash@akash:~> optirun -vv glxspheres 
   99.688530] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
   99.689093] [DEBUG]optirun version 3.2.1 starting...
   99.689110] [DEBUG]Active configuration:
   99.689115] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
   99.689121] [DEBUG] X display: :8
   99.689125] [DEBUG] LD_LIBRARY_PATH: /usr/lib64/nvidia:/usr/lib/nvidia
   99.689130] [DEBUG] Socket path: /var/run/bumblebee.socket
   99.689134] [DEBUG] Accel/display bridge: auto
   99.689138] [DEBUG] VGL Compression: proxy
   99.689142] [DEBUG] VGLrun extra options: 
   99.689146] [DEBUG] Primus LD Path: /usr/lib64/primus:/usr/lib/primus
   99.689230] [DEBUG]Using auto-detected bridge virtualgl
  100.128898] [INFO]Response: No - error: Could not load GPU driver

  100.128922] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

  100.128927] [DEBUG]Socket closed.
  100.128951] [ERROR]Aborting because fallback start is disabled.
  100.128960] [DEBUG]Killing all remaining processes.
akash@akash:~> dmesg | grep nvidia
   15.483984] nvidia: module license 'NVIDIA' taints kernel.
   15.919110] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
NVRM: at www.nvidia.com.
   15.919309] nvidia: probe of 0000:01:00.0 failed with error -1
   29.667395] proc_dir_entry 'driver/nvidia' already registered
   29.667396] Modules linked in: nvidia(PO+) ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw ipt_REJECT iptable_raw xt_CT iptable_filter ip6table_mangle nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc nls_iso8859_1 nls_cp437 fuse vfat fat uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev arc4 ath9k ath9k_common ath9k_hw ath mac80211 snd_hda_codec_hdmi cfg80211 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd acer_wmi sparse_keymap rfkill iTCO_wdt iTCO_vendor_support x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel
   29.667606]  <ffffffffa140af1b>] nv_register_procfs+0x5b/0x210 [nvidia]
   29.667674]  <ffffffffa08532ab>] nvidia_init_module+0x2ab/0x76b [nvidia]
   29.667721]  <ffffffffa08537fc>] nvidia_frontend_init_module+0x82/0x886 [nvidia]
NVRM: at www.nvidia.com.
   29.667994] nvidia: probe of 0000:01:00.0 failed with error -1
   29.689312] proc_dir_entry 'driver/nvidia' already registered
   29.689313] Modules linked in: nvidia(PO+) ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw ipt_REJECT iptable_raw xt_CT iptable_filter ip6table_mangle nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc nls_iso8859_1 nls_cp437 fuse vfat fat uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev arc4 ath9k ath9k_common ath9k_hw ath mac80211 snd_hda_codec_hdmi cfg80211 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd acer_wmi sparse_keymap rfkill iTCO_wdt iTCO_vendor_support x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel
   29.689501]  <ffffffffa1c09f1b>] nv_register_procfs+0x5b/0x210 [nvidia]
   29.689562]  <ffffffffa08532ab>] nvidia_init_module+0x2ab/0x76b [nvidia]
   29.689604]  <ffffffffa08537fc>] nvidia_frontend_init_module+0x82/0x886 [nvidia]
NVRM: at www.nvidia.com.
   29.689851] nvidia: probe of 0000:01:00.0 failed with error -1
  100.212742] proc_dir_entry 'driver/nvidia' already registered
  100.212744] Modules linked in: nvidia(PO+) bnep bluetooth 6lowpan_iphc xt_pkttype xt_LOG xt_limit af_packet ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw ipt_REJECT iptable_raw xt_CT iptable_filter ip6table_mangle nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc nls_iso8859_1 nls_cp437 fuse vfat fat uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev arc4 ath9k ath9k_common ath9k_hw ath mac80211 snd_hda_codec_hdmi cfg80211 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd acer_wmi sparse_keymap rfkill iTCO_wdt iTCO_vendor_support x86_pkg_temp_thermal intel_powerclamp
  100.213003]  <ffffffffa140af1b>] nv_register_procfs+0x5b/0x210 [nvidia]
  100.213088]  <ffffffffa09112ab>] nvidia_init_module+0x2ab/0x76b [nvidia]
  100.213146]  <ffffffffa09117fc>] nvidia_frontend_init_module+0x82/0x886 [nvidia]
NVRM: at www.nvidia.com.
  100.213525] nvidia: probe of 0000:01:00.0 failed with error -1

akash@akash:~> dmesg | grep NVRM
   15.919249] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1140)
NVRM: installed in this system is not supported by the 346.35
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.
   15.920004] NVRM: The NVIDIA probe routine failed for 1 device(s).
   15.920008] NVRM: None of the NVIDIA graphics adapters were initialized!
   15.920346] NVRM: NVIDIA init module failed!
   29.667946] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1140)
NVRM: installed in this system is not supported by the 346.35
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.
   29.669880] NVRM: The NVIDIA probe routine failed for 1 device(s).
   29.669884] NVRM: None of the NVIDIA graphics adapters were initialized!
   29.670066] NVRM: NVIDIA init module failed!
   29.689808] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1140)
NVRM: installed in this system is not supported by the 346.35
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.
   29.691260] NVRM: The NVIDIA probe routine failed for 1 device(s).
   29.691263] NVRM: None of the NVIDIA graphics adapters were initialized!
   29.691392] NVRM: NVIDIA init module failed!
  100.213442] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1140)
NVRM: installed in this system is not supported by the 346.35
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.
  100.214102] NVRM: The NVIDIA probe routine failed for 1 device(s).
  100.214106] NVRM: None of the NVIDIA graphics adapters were initialized!
  100.214376] NVRM: NVIDIA init module failed!
akash@akash:~> dmesg | grep bbswitch
    2.873935] bbswitch: version 0.8
    2.873945] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
    2.873952] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
    2.874137] bbswitch: detected an Optimus _DSM function
    2.874218] bbswitch: disabling discrete graphics
    2.887270] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off
   29.667442]  ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd soundcore joydev sdhci_pci sdhci pcspkr mmc_core i2c_i801 mei_me serio_raw mei lpc_ich mfd_core shpchp battery ac processor dm_mod efivarfs sr_mod cdrom tg3 ptp pps_core libphy i915 i2c_algo_bit drm_kms_helper drm xhci_hcd wmi video button sg bbswitch(O)
   29.689354]  ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd soundcore joydev sdhci_pci sdhci pcspkr mmc_core i2c_i801 mei_me serio_raw mei lpc_ich mfd_core shpchp battery ac processor dm_mod efivarfs sr_mod cdrom tg3 ptp pps_core libphy i915 i2c_algo_bit drm_kms_helper drm xhci_hcd wmi video button sg bbswitch(O)
   30.425108] bbswitch: disabling discrete graphics
   30.425715]  aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd soundcore joydev sdhci_pci sdhci pcspkr mmc_core i2c_i801 mei_me serio_raw mei lpc_ich mfd_core shpchp battery ac processor dm_mod efivarfs sr_mod cdrom tg3 ptp pps_core libphy i915 i2c_algo_bit drm_kms_helper drm xhci_hcd wmi video button sg bbswitch(O)
   30.425843]  <ffffffffa00001e0>] bbswitch_off+0x90/0x250 [bbswitch]
   30.425854]  <ffffffffa00005c5>] bbswitch_proc_write+0x95/0xac [bbswitch]
   99.782426] bbswitch: enabling discrete graphics
  100.212799]  coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd soundcore joydev sdhci_pci sdhci pcspkr mmc_core i2c_i801 mei_me serio_raw mei lpc_ich mfd_core shpchp battery ac processor dm_mod efivarfs sr_mod cdrom tg3 ptp pps_core libphy i915 i2c_algo_bit drm_kms_helper drm xhci_hcd wmi video button sg bbswitch(O)
akash@akash:~> cat /etc/modprobe.d/50-bbswitch.conf 
options bbswitch load_state=-1 unload_state=1

Did you reboot?

Anyway, now try it with this content of /etc/modprobe.d/50-bbswitch.conf :

options bbswitch load_state=1 unload_state=1

Problem is, that your Nvidia card is switched off power by bbswitch before the nvidia driver is able to configure its ressources properly.
If this is happening once at boot time the whole PCI graphics configuration is botched (the ressources otherwise occupied) and
you cannot mend this before rebooting with a then powered-on Nvidia card and keeping this state until the Nvidia driver is called.

I hoped that the unload_state=1 would switch on the Nvidia card while shutting down and
thus the card would stay powered on (load_state=-1 / state unchanged) while rebooting.

Now with load_sate=1 it should be forced powered on during booting.
A bumblebee restart before rebooting can’t hurt:

systemctl restart bumblebeed

Keep your fingers crossed!

of-course I rebooted it

Hey in anxiety, I forgot to do this.

Result

akash@akash:~> optirun glxspheres 
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce 710M/PCIe/SSE2
115.970429 frames/sec - 102.244169 Mpixels/sec
116.092033 frames/sec - 102.351380 Mpixels/sec
114.533665 frames/sec - 100.977461 Mpixels/sec
108.950494 frames/sec - 96.055114 Mpixels/sec
118.512338 frames/sec - 104.485217 Mpixels/sec
120.611076 frames/sec - 106.335549 Mpixels/sec
120.549066 frames/sec - 106.280878 Mpixels/sec
120.450016 frames/sec - 106.193552 Mpixels/sec
120.301448 frames/sec - 106.062569 Mpixels/sec
120.449300 frames/sec - 106.192920 Mpixels/sec
120.854144 frames/sec - 106.549848 Mpixels/sec
119.121630 frames/sec - 105.022394 Mpixels/sec
120.602076 frames/sec - 106.327615 Mpixels/sec
120.372533 frames/sec - 106.125240 Mpixels/sec

Hurray!!! Yipeeeeeeeeeee!!! rotfl!
Thanks Brunolab

Well how did you know my Nvidia card had been switched off by bbswitch.

Great it finally works!!
I had had almost the same error symptoms on my laptop and it took me quite some time to find out,
that it never had been much of a nvidia driver problem, but a problem of timing (switch on/off of the discrete graphics card) at boot time.

bbswitch is the culprit, nvidia never was, concerning at least my system.
Your

dmesg | grep NVRM

showed:

   15.920004] NVRM: The NVIDIA probe routine failed for 1 device(s). 
   15.920008] NVRM: None of the NVIDIA graphics adapters were initialized! 
   15.920346] NVRM: NVIDIA init module failed!

While

dmesg | grep bbswitch

showed:

    2.873952] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP 
    2.874137] bbswitch: detected an Optimus _DSM function
    2.874218] bbswitch: disabling discrete graphics 
    2.887270] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off

Now 2.874137 < 15.920004, that is, bbswitch recognized your Optimus system correctly,
but disabled the discrete graphics at time count 2.874218, and later, at 15.920008,
NVRAM complained about your NVIDIA graphics adapters not having been initialized,
which only works right, if the Nvidia card is powered on at time of initialization.

I don’t know, why the default values of /etc/modprobe.d/50-bbswitch.conf are set to power off
the discrete graphics card with load_state=0 while starting up.
bbswitch will take care of switching the unused card off later on, despite load_state=1.

Maybe the switched off discrete graphics card is the simplest way for getting a working operating system on first install?

Ha Ha. I didnot notice it till now altough applications can run on nvidia but when I run optirun --status, I get error

akash@akash:~> optirun --status
Bumblebee status: Error (3.2.1): [XORG] (EE) Server terminated successfully (0). Closing log file.


Now what does this mean

I have the same problem, but these solutions doesn’t work for me :’(

Please, post your problem on a separate thread and explain about your problem in brief instead of posting “I have a similar problem”

Do mention how did you installed the nvidia driver, what version of openSUSE you are using and what version of kernel you are using.

Apparently it is not enough to just change the content of /etc/modprobe.d/50-bbswitch.conf as
described above, you also have to rebuild the initrd for these changes to take effect:

mkinitrd

Reboot.

Thank you. It worked. lol!

No it didn’t help me.

akash@akash:~> optirun -status
  874.856659] [ERROR]The Bumblebee daemon has not been started yet or the socket path tatus was incorrect.
  874.856709] [ERROR]Could not connect to bumblebee daemon - is it running?

But by doing mkinitrd the cards performance increased :wink:

akash@akash:~> optirun glxspheres 
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce 710M/PCIe/SSE2
119.120441 frames/sec - 105.021346 Mpixels/sec
120.079965 frames/sec - 105.867301 Mpixels/sec
120.479275 frames/sec - 106.219348 Mpixels/sec
120.670697 frames/sec - 106.388113 Mpixels/sec
117.452633 frames/sec - 103.550939 Mpixels/sec
117.897669 frames/sec - 103.943301 Mpixels/sec

I think so this is a bug

Ok Systemd 101

any time you change a startup file ie one that runs at startup most of the time you meed to run mkinitrd.

What this is, is that systemd caches the hardware and settings so it can boot faster. but you need to tell systemd that things changed so you run mkinitrd. So until you tell systemd things changed it will use the old settings.

So this is more user confusion then a bug.

Did mkinitrd, restarted the computer. Result

akash@akash:~> optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.

akash@akash:~> optirun glxspheres 
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce 710M/PCIe/SSE2
118.399816 frames/sec - 104.386014 Mpixels/sec
119.674215 frames/sec - 105.509575 Mpixels/sec
118.492175 frames/sec - 104.467441 Mpixels/sec
111.581666 frames/sec - 98.374860 Mpixels/sec
119.234939 frames/sec - 105.122292 Mpixels/sec
119.240896 frames/sec - 105.127543 Mpixels/sec
119.260132 frames/sec - 105.144503 Mpixels/sec
akash@akash:~> optirun --status
Bumblebee status: Error (3.2.1): [XORG] (EE) Server terminated successfully (0). Closing log file.

akash@akash:~> optirun glxspheres 
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce 710M/PCIe/SSE2
117.242945 frames/sec - 103.366070 Mpixels/sec
120.447477 frames/sec - 106.191313 Mpixels/sec
120.951748 frames/sec - 106.635899 Mpixels/sec
^C  155.933782] [WARN]Received Interrupt signal.
akash@akash:~> optirun --status
Bumblebee status: Error (3.2.1): [XORG] (EE) Server terminated successfully (0). Closing log file.

Anyways not a problem atleast the programs can run on nvidia