[opensuse] What's the recommended way to setup Bumblebee with the proprietary NVIDIA driver on Tumbleweed?
I've been using the nvidia-bumblebee package from the X11:Bumblebee repository for a while now and it's still on version 375.66. Is any of the info in <https://en.opensuse.org/SDB:NVIDIA_Bumblebee> out of date? I installed the driver from the official nvidia repository and tried to set it up with Bumblebee like that article suggested I do with Leap on Tumbleweed and I also tried to do it based on <https://wiki.archlinux.org/index.php/Bumblebee>, but I had no luck. I went back to using the nvidia-bumblebee package. I'm using a GTX 960m, btw. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
17.09.2017 01:22, Noah Davis пишет:
I've been using the nvidia-bumblebee package from the X11:Bumblebee repository for a while now and it's still on version 375.66.
Is any of the info in <https://en.opensuse.org/SDB:NVIDIA_Bumblebee> out of date? I installed the driver from the official nvidia repository and tried to set it up with Bumblebee like that article suggested I do with Leap on Tumbleweed and I also tried to do it based on <https://wiki.archlinux.org/index.php/Bumblebee>, but I had no luck.
"No luck" is rather poor problem description which does not leave much to start with. Tell what packages you actually installed, what additional steps you did after installation and what does not work (as you expected). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Yes, you're right. I was hoping someone already knew the right way to do it. I'm following the instructions for Leap from the article in the openSUSE wiki since the Tumbleweed instructions use the X11:Bumblebee repository. Installation: 1. Added this repository: https://download.nvidia.com/opensuse/tumbleweed 2. Installed: nvidia-glG04, x11-video-nvidiaG04, nvidia-computeG04, nvidia-gfxG04-kmp-default Removed: nvidia-bumblebee, nvidia-bumblebee-32bit, libOpenCL1 Preparation & Install Bumblebee: 1. bumblebee and bbswitch are already installed 2. My user is already in the bumblebee group 3. bumblebeed is already enabled and started, so I do: $ sudo systemctl restart bumblebeed 4. nouveau is already blacklisted: $ cat /etc/modprobe.d/99-local.conf # # please add local extensions to this file # blacklist nouveau 5. I already have these packages: Mesa-libGL1-32bit, libX11-6-32bit, primus-32bit OPTIONAL: Install NVIDIA driver - Leap releases: 1. /etc/ld.so.conf.d does not have any files starting with "nvidia-gfxG" $ ls /etc/ld.so.conf.d graphviz.conf kid3.conf wxWidgets.conf There is no /usr/X11R6/ folder anyway. 2. Doing this did not change anything: $ sudo ldconfig 3. Blacklisted nvidia $ cat /etc/modprobe.d/99-local.conf # # please add local extensions to this file # blacklist nouveau blacklist nvidia 4. /usr/lib64/nvidia/xorg/modules/extensions already existed Created a symlink from /usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so to /usr/lib64/nvidia/xorg/modules/extensions/libglx.so 5. /etc/bumblebee/bumblebee.conf is already configured how the article says, except for this: LibraryPath=/usr/X11R6/lib64:/usr/X11R6/lib because /usr/X11R6/ does not exist 6. If I try to run `optirun glxgears` or `optirun glxspheres`, I get this: X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 22 Current serial number in output stream: 23 I did not get these errors with nvidia-bumblebee `primusrun` did did not use the Nvidia GPU at all with either driver. On Sun, Sep 17, 2017 at 12:50 AM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
17.09.2017 01:22, Noah Davis пишет:
I've been using the nvidia-bumblebee package from the X11:Bumblebee repository for a while now and it's still on version 375.66.
Is any of the info in <https://en.opensuse.org/SDB:NVIDIA_Bumblebee> out of date? I installed the driver from the official nvidia repository and tried to set it up with Bumblebee like that article suggested I do with Leap on Tumbleweed and I also tried to do it based on <https://wiki.archlinux.org/index.php/Bumblebee>, but I had no luck.
"No luck" is rather poor problem description which does not leave much to start with. Tell what packages you actually installed, what additional steps you did after installation and what does not work (as you expected).
-- 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
Noah Davis wrote:
I've been using the nvidia-bumblebee package from the X11:Bumblebee repository for a while now and it's still on version 375.66.
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... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
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
participants (3)
-
Andrei Borzenkov
-
Noah Davis
-
Peter Suetterlin