On Mon, 14 Mar 2016 10:10:48 +0100 Oszkó Albert wrote:
2016-03-14 08:15 keltezéssel, Per Jessen írta:
S. wrote:
Hello open SUSE group: having trouble installing Leap most recent version from a USB stick on-
MSI GE72 2QC Apache with Nvidia GTX960 series graphics card.
Freezes at various places in the installation process.
Can you advise ?
Try adding "nomodeset" to your kernel command line arguments.
Nomodeset may be a temporary solution, but at least it works, with much poorer resolution. I have a 950GTX card and met the same problem as S. Opensuse's SDB says Nvidia linux drivers work "flawlessly" with Leap and installation is "trivial". Well, it is not. First one has to install gcc, kernel-sources and kernel-devel, but it is not a big deal. But at the end of installation Nvidia tells you that it could not symlink to /usr/lib/libGL.so.1 and two other files because they exist. And it is right. I tried to delete them, but it still insists that those files exist. So I do not know what to do, and waiting for some Mesa, kernel-firmware and other upgrades in the hopefully not too remote future.
"Knurpht" (Gertjan Lettink) offered this link in an earlier thread but his reference was a little oblique: <https://forums.opensuse.org/showthread.php/512260-Leap-42-1-Optimus-system-with-nvidia-prime-instead-of-bumblebee> The package is called 'suse-prime' (not 'nvidia-prime' as indicated in the URI) created by forum member "bosim" (Bo Simonsen.) It opens with a writeup by forum member Brunolabs. On Optimus technology laptops such as yours and mine, suse-prime allows you to selectively run the X session either on the installed discreet nVidia graphics or the embedded (Intel) graphics. I followed all the links, read everything I could find and confirmed that it works. I then merged Brunolab's writeup with a few of my grammatical corrections and notes to create a 'cleaned up' set of instructions. Many thanks to Brunolab and bosim! - - - - - 8< - - - - - From: https://forums.opensuse.org/showthread.php/512260-Leap-42-1-Optimus-system-w... Leap 42.1 Optimus system with nvidia-prime instead of bumblebee I used bumblebee with my Optimus laptop (i7-3630QM, Nvidia Geforce GTX 670MX) since 13.1. It was troublesome to install, but it worked. Now forum member bosim made the offer in his thread 'Nvidia Optimus without bumblebee' (https://forums.opensuse.org/showthread.php/511230-NVIDIA-Optimus-without-bum...) to transpose the prime mechanism I first heard of from ubuntu to Opensuse Leap 42.1. I gave it a try during changing from 13.2 to Leap and it is working great, that is, the GPU performance is great. The drawback had been the lacking mechanism to switch off the Nvidia card from power, when using the intel power saving graphics. But with bbswitch installed, you can handle this problem with two small scripts you have to call as root after booting and before changing to Nvidia graphics. Though the prime implementation is still experimental, I had no problems at all with stability or suspending when using intel graphics, but also none with nvidia graphics. The system is awakening without problems. 1) Fresh Leap 42.1 installation with KDE and Plasma 5.43, kernel 4.1.12-1-default x86_64. 2) Installation of the appropriate Nvidia driver from (http://download.nvidia.com/opensuse/leap/42.1) via (http://opensuse-community.org/nvidia.ymp) I chose nvidia-glG04 for my GTX 670MX, with all dependencies chosen by Yast. 3) Next I added (http://download.opensuse.org/repositories/home:/bosim:/suse-prime/openSUSE_L...) to my repositories and installed suse-prime-0.1-8.1.noarch.rpm from there. 4) According to this instructions (https://build.opensuse.org/package/show/home:bosim:suse-prime/suse-prime) I added the following code in the script [/etc/X11/xdm/Xsetup] after the line ". /etc/sysconfig/displaymanager": if [ -f /etc/X11/xinit/xinitrc.d/prime-offload.sh ]; then . /etc/X11/xinit/xinitrc.d/prime-offload.sh fi Addendum1: "Rebooting is not wise before completing step 5." Addendum2: "You can stop after step 5 if you don't care about energy efficiency and you plan to always use the Nvidia graphics 5) I tried prime-select as described there: 'Run "prime-select nvidia" log out and login again, hopefully you are using nvidia GPU. To switch back to intel GPU run "prime-select intel" Remember to run [these commands] as root.' This worked just fine and stable, also after rebooting. But the power consumption was not as low as with bumblebee when just using the intel graphics. bosim suggested using bbswitch and I tried this way successfully. 6) I installed bbswitch and bbswitch-kmp-default from the main Oss repository and changed the default settings of bbswitch with [nano /etc/modprobe.d/50-bbswitch.conf] to: options bbswitch load_state=1 unload_state=1 so that the discrete Nvidia graphics card gets switched on by bbswitch, when booting or shutting down the system. This is important for initializing my GTX 670MX card correctly - learned from bumblebee troubles. 7) There is a way to switch off the Nvidia card by manually changing /proc/acpi/bbswitch. I am using therefore two scripts I call as root after booting, in order to a) power off the Nvidia card, or b) if I change to Nvidia graphics: switchoffNvidia.sh #!/bin/sh modprobe -r nvidia_uvm nvidia tee /proc/acpi/bbswitch <<<OFF selectNvidia.sh #!/bin/sh tee /proc/acpi/bbswitch <<<ON modprobe nvidia_uvm nvidia prime-select nvidia echo "Now you have to log out -> log in!" Now with all scripts ready, this is my modus operandi: - Usually I am using the intel graphics for everyday work and there I am right after booting into my system. To reduce power consumption under intel graphics, I have to run as root the script switchoffNvidia.sh - If I want to play X-Plane with the Nvidia graphics on, I run as root the script selectNvidia.sh and log out from KDE and in again. Performance boost for glxspheres under Nvidia graphics from 248-250 frames/sec or Mpixels/sec with bumblebee to 1318.988993 frames/sec - 1471.991717 Mpixels/sec under prime. - to switch back to intel graphics I have to run as root prime-select intel then log out from KDE, log in again and run my script switchoffNvidia.sh as root to reduce power consumption. Power consumption after switching off the Nvidia card is as low as with bumblebee using intel graphics. Thanks to bosim for his work! - - - - - 8< - - - - - hth & regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org