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.
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.
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!
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!
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:
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?
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:
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
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
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.