I've already switched to using the dkms-nvidia package from the Bumblebee-Project repo using a guide I found on Reddit <https://www.reddit.com/r/openSUSE/comments/3slh7e/tumbleweed_how_to_set_up_nvidia_optimus_with_the/>, but I appreciate the detailed explanation. I'll probably find the information quite useful in the future. What's will all these different packages for the Nvidia driver? Are there advantages and disadvantages in the way each of them works or is there much of a difference at all? On Mon, Sep 25, 2017 at 8:40 AM, Peter Suetterlin <P.Suetterlin@royac.iac.es> wrote:
Noah Davis wrote:
On Mon, Sep 18, 2017 at 9:39 AM, Peter Suetterlin <P.Suetterlin@royac.iac.es> wrote:
I installed the src.rpm for it, and changed the spec file to use the latest(?) version of the driver, and created a new package myself with 'rpmbuild -bb'
Only issue is that for new kernels the update script doesn't properly propagate the modules to the newly installed kernel, I'm manually re-installing the package after having booted the new kernel...
So does this mean you've found something that works? I'm not familiar with package building.
Sorry, I was offline for some days...
Depends on what you call 'works'. As I said, after a kernel update I have to reboot first, and then do a zypper in -f nvidia-bumblebee
But as the main system runs on the intel card that doesn't cause much trouble, as the GUI does come up.
As a quick guide:
zypper si nvidia-bumblebee
This will install the 'source files' for the rpm (in your case that should be the older ones for version 375.66. Next install things needed to build rpms.
zypper in -t pattern devel_rpm_build
Now you can try
cd /usr/src/packaged rpmbuild -bb nvidia-bumblebee.spec
It will likely complain about some missing packages - install those, too. At some point it should finish the build.
Now open the spec file in an editor. Change the line
Version: 375.66
to your liking. I'm using 375.82 at the moment. Also check the Source?: line(s). There might be some patches defined that are probably no longer needed (375.82 compiles without any patches for me) If you comment out a Sources1 line, you also need to remove corresponding PATCH* entries that refer to the removed entry.
Then try the rpmbuild command again. Also, the sources of the driver will be pulled from nvidia when you compile. Be sure you have internet connection. If not, download the run file yourself (e.g., NVIDIA-Linux-x86_64-375.82.run) and place it in /usr/src before running rpmbuild.
Now you should be left with
nvidia-bumblebee-375.82-1.1.x86_64.rpm nvidia-bumblebee-32bit-375.82-1.1.x86_64.rpm
in the directory /usr/src/packages/RPMS/x86_64
Install those.
And most likely you do not have to do the re-install at all after a kernel change (just realized this myself while typing the reply). It should be enough to run
/usr/sbin/dkms build -m nvidia -v 375.82
after you installed a new kernel using zypper...
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org