That does look like the best option. Just be sure to delete cuda 10.1/downgrade if you intend to use it.
There is some progress, after remove nvidia driver 440, remove cuda, and install 340.107
optirun nvidia-settings -c :8
this start nvidia x server settings with this error
Failed to open VDPAU backend libvdpau_nvidia.so: cannot share file with shared object: No such file or directory
optirun -vvv glxinfo
1468.710345] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
1468.710761] [INFO]Configured driver: nvidia
1468.711020] [DEBUG]optirun version 3.2.1 starting...
1468.711046] [DEBUG]Active configuration:
1468.711067] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
1468.711096] [DEBUG] X display: :8
1468.711115] [DEBUG] LD_LIBRARY_PATH: /usr/lib64/:/usr/lib/
1468.711135] [DEBUG] Socket path: /var/run/bumblebee.socket
1468.711153] [DEBUG] Accel/display bridge: auto
1468.711172] [DEBUG] VGL Compression: proxy
1468.711191] [DEBUG] VGLrun extra options:
1468.711209] [DEBUG] Primus LD Path: /usr/lib64/primus:/usr/lib/primus
1468.711310] [DEBUG]Using auto-detected bridge virtualgl
1469.496607] [INFO]Response: Yes. X is active.
1469.496632] [INFO]Running application using virtualgl.
1469.496844] [DEBUG]Process vglrun started, PID 7069.
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
[VGL] ERROR: in glXGetConfig--
[VGL] 1115: Could not obtain RGB visual on the server suitable for off-screen rendering
1469.547234] [DEBUG]SIGCHILD received, but wait failed with No child processes
1469.547305] [DEBUG]Socket closed.
1469.547352] [DEBUG]Killing all remaining processes.
● bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2020-03-27 19:25:56 EET; 25min ago
Main PID: 1106 (bumblebeed)
Tasks: 1
CGroup: /system.slice/bumblebeed.service
└─1106 /usr/sbin/bumblebeed
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496236] [ERROR][XORG] (EE) Failed to load module "glx" (loader failed, 0)
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496254] [WARN][XORG] (WW) Unresolved symbol: fbGetGCPrivateKey
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496270] [ERROR][XORG] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496278] [ERROR][XORG] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496287] [ERROR][XORG] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496295] [ERROR][XORG] (EE) NVIDIA(0): you continue to encounter problems, Please try
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496306] [ERROR][XORG] (EE) NVIDIA(0): reinstalling the NVIDIA driver.
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496318] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496352] [ERROR][XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)
мар 27 19:50:14 linux-4j1s bumblebeed[1106]: 1469.496368] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
now what…
You have to install bumblebee from and the associated kernel from the same nvidia driver package you found.
I remove bbswitch, because it have conflict whit “dkms-bbswitch” from http://download.opensuse.org/repositories/home:/Bumblebee-Project:/Bumblebee3/openSUSE_Leap_15.1/ over 50-bbswitch.conf file. This repo contains “dkms”, “dkms-bbswitch” and “bumblebee”. Now I install “bumblebee” and “dkms-bbwsitch” from that repo. And then “dkms” and all nvidia drivers from http://download.opensuse.org/repositories/home:/Bumblebee-Project:/nVidia:/340.107/openSUSE_Leap_15.1/ Bumblebee work, whit same errors from previos post, when dkms is from first repo. And if I switch it whit nvidia repo it stop working, even if I reinstall every mesa, GL, prime packet. For every new try is it need to remove everything whit “dkms”, “nvidia driver”, “primus” and start installing from beginning and reinstall every mesa, GL, prime packet, or just remove what is needed.
URL: https://paste.opensuse.org/11202663 Here is info about link in lib64 folder
By your opinion if We make bumblebee working, will it be possible to use my laptop smother, or it is only for games, because I dont’t play any. I only use vlc for movie and music and Mozilla for surfing and YouTube .
PS: When I install everyting there is no
/usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so
for this
sudo mkdir -p /usr/lib64/nvidia/xorg/modules/extensions
sudo ln -s /usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so /usr/lib64/nvidia/xorg/modules/extensions/libglx.so
Also libglx.so is containing in /usr/lib64/nvidia/xorg/modules/updates/extensions/
Hi
Can you switch to suse-prime instead, see https://lists.opensuse.org/opensuse-factory/2020-04/msg00091.html
In my opinion, I used to use nouveau, but nouveau seems to have its own issues, and only using the Intel integrated GPU, I’ve had some weird issues. Some laptops port HDMI/VGA to specifically only one GPU integrated/Nvidia. So, if I only had intel installed, couldn’t use HDMI port. If I only had Nvidia working, couldn’t use VGA port. Nouveau crashed often and bumblebee for me was the best way to go at the end.
For others they use bumblebee for power saving/gaming etc. I use it because it’s the only way to get everything working properly, especially cuda.
Regarding your nvidia-libglx.so it certainly looks like a support issue and symlinks aren’t set up properly from the repo installer.
As malcolmlewis showed, apparently bumbleebee is out of support right now (I found out less than an hour ago) and you should try suse-prime.
I try Bumblebee for the last time, and it work 100% for a while. The sequence is:
- Remove every bumblebee, dkms and dkms-bbswitch, nvidia driver 340.107, primus, bbswitch;
- First install “dkms” and all nvidia drivers from http://download.opensuse.org/repositories/home:/Bumblebee-Project:/nVidia:/340.107/openSUSE_Leap_15.1/
- mkinitrd and reboot
- Then install primus, bumblebee and dkms-bbswitch from http://download.opensuse.org/repositories/home:/Bumblebee-Project:/Bumblebee3/openSUSE_Leap_15.1/ (no not
install dkms from this repo, check in version tab in YaST to be sure it will break bubmlebee) ```
sudo usermod -aG bumblebee $USER
sudo usermod -aG video $USER
gpasswd -a bumblebee
gpasswd -a video
echo “blacklist nouveau” >> /etc/modprobe.d/50-blacklist.conf
sudo systemctl enable bumblebeed
sudo systemctl start bumblebeed
1. This packets was install before, but i update/reinstall them
Mesa-libGL1-32bit libX11-6-32bit primus-32bit
1. This packets was install before, but i update/reinstall them as well
Mesa-demo-x Mesa-demo
1. Configure /etc/bumblebee/bumblebee.conf
TurnCardOffAtExit=true
Driver=nvidia
lines under [driver-nvidia] is the same as needed.
1. mkinitrd and reboot
1. Test with
optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.
1. Test with
optirun glxgears
Output 850 FPS
1. Test with
optirun glxspheres
Output 161 FPS - 180Mpixels/sec
1. Test with
optirun -b none nvidia-settings -c :8
Open Nvidia settings and it seem to work correctly.
1. Immediately after that test I reboot again and test with
optirun --status
67.430313] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
67.430359] [ERROR]Could not connect to bumblebee daemon - is it running?
Try to disable, enable, start and then status bumblebeed but it is not responsding. What to do next.
Where is the problem now
It seems like you have it working and the reboot messed it up. Did you remember to configure
/etc/modprobe.d/50-bbswitch.conf
to
options bbswitch load_state=-1 unload_state=1
?
No, i will try that now.
Just be sure to recompile with
mkinitrd
and reboot after you change the configurations.
I do that, change 0 → -1, mkinitrd, than restart and test. No response from bumblebee, now i will remove it and start all over again.
Something very strange: Remove everyting, start the sequence from start to finish with bbswitch 0–>1, mkinitrd and **reboot, **test fail. No response from bumblebee, immediately after that shutdown and start the laptop, test
optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.
linux-4j1s:/home/hristokz # sudo systemctl status bumblebeed
● bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-04-09 21:29:16 EEST; 1min 17s ago
Main PID: 3330 (bumblebeed)
Tasks: 1
CGroup: /system.slice/bumblebeed.service
└─3330 /usr/sbin/bumblebeed
апр 09 21:29:16 linux-4j1s systemd[1]: Started Bumblebee C Daemon.
апр 09 21:29:16 linux-4j1s bumblebeed[3330]: 18.233601] [INFO]/usr/sbin/bumblebeed 3.2.1 started
linux-4j1s:/home/hristokz # optirun glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 325M/PCIe/SSE2
162.978551 frames/sec - 181.884063 Mpixels/sec
The only error is that
Failed to open VDPAU backend libvdpau_nvidia.so: cannot share file with shared object: No such file or directory
after start
optirun -b none nvidia-settings -c :8
On that working state of bumblebee (checked with every test), I **reboot **and voala bumblebee not responding, **shut down **and start laptop, bumblebee working again.
Error from **working **bumblebee
20.145722] [INFO]/usr/sbin/bumblebeed 3.2.1 started
апр 09 22:02:21 linux-4j1s bumblebeed[3365]: modprobe: FATAL: Module nvidia_drm not found in directory /lib/modules/4.12.14-lp151.28.44-default
66.430816] [ERROR]Module nvidia_drm could not be loaded (timeout?)
[3365]: modprobe: FATAL: Module nvidia_uvm not found in directory /lib/modules/4.12.14-lp151.28.44-default
[3365]: 66.434735] [ERROR]Module nvidia_uvm could not be loaded (timeout?)
67.848707] [ERROR][XORG] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
67.848741] [WARN][XORG] (WW) Unresolved symbol: fbGetGCPrivateKey
67.848755] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
67.848779] [ERROR][XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)
67.848791] [ERROR][XORG] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
There is some error form dkms as well, if you want i will paste it here.
This permission error confuses me. Can you explain exactly what you did in the following line?
1. Code:
gpasswd -a <USER> bumblebee
gpasswd -a <USER> video
- Also, are you saying that when you boot, you can run bumblebee, and run glxspheres/glxgears, then at somepoint it stops working?
Can you also who how you configured
/etc/bumblebee/bumblebee.conf
?
This is part from postscript output from bumblebee in YaST, after install it, it display a message
INFO: Please ensure that users using bublebee/video card are in following group(s):
INFO: gpasswd -a <USER> bumblebee
INFO: If going to use nvidia binary driver:
INFO: gpasswd -a <USER> video
INFO: Also ensure the nouveau module is blacklisted (even if you plan to use it):
INFO: echo "blacklist nouveau" >> /etc/modprobe.d/50-blacklist.conf
INFO: mkinitrd
And I type in terminal as Superuser “gpasswd -a hristokz video” and output form terminal is “Adding user hristokz to group video” and same for bumblebee.
then at somepoint it stops working
Install and make all step 0–>-1, mkinitrd, not start any test, reboot, test, it work like a charm. Then reboot, no working, only reboot no intervention. Then shutdown and test, it work.
This is the nvidia part form bumblebee.conf
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib64/nvidia:/usr/lib/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib64/nvidia/xorg/,/usr/lib64/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
When I open the file the line is like that I don’t make any changes in here, I only change
TurnCardOffAtExit=false-->**true**
Driver=**nvidia**
Your library path seems wrong. It should be instead
LibraryPath=/usr/lib64/:/usr/lib/
Also, be sure to set the symbollic links
sudo mkdir -p /usr/lib64/nvidia/xorg/modules/extensions
sudo ln -sf /usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so /usr/lib64/nvidia/xorg/modules/extensions/libglx.so
recompile with
mkinitrd
and reboot.
- Today I start the laptop test optirun --status -->OK and optirun glxspheres -->working
- Than I change the LibraryPath in conf file
LibraryPath=/usr/lib64/:/usr/lib/
- I don’t have that file
usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so
or that folder. But I did set the symbollic links (execute the 2 lines anyway). Here is files form that folder.
#ll /usr/lib64/xorg/modules/extensions/
lrwxrwxrwx 1 libglx.so -> /etc/alternatives/libglx.so
-rwxr-xr-x 1 libvnc.so
drwxr-xr-x xorg
# ll /etc/alternatives/libglx.so
lrwxrwxrwx /etc/alternatives/libglx.so -> /usr/lib64/xorg/modules/extensions/xorg/xorg-libglx.so
#ll /usr/lib64/xorg/modules/extensions/xorg/
-rwxr-xr-x 1 xorg-libglx.so
- mkinitrd and reboot.
- bumblebee not working
- **Shutdown **
and than that happen
**optirun glxgears**
Error: couldn't get an RGB, Double-buffered visual
**optirun --status**
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.
**sudo systemctl status bumblebeed**
● bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
Active: **active (running)** since Fri 2020-04-10 18:40:55 EEST; 5min ago
Main PID: 3323 (bumblebeed)
Tasks: 1
CGroup: /system.slice/bumblebeed.service
└─3323 /usr/sbin/bumblebeed
[ERROR][XORG] (EE) Failed to load module "glx" (loader failed, 0)
[WARN][XORG] (WW) Unresolved symbol: fbGetGCPrivateKey
[ERROR][XORG] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ERROR][XORG] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ERROR][XORG] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ERROR][XORG] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ERROR][XORG] (EE) NVIDIA(0): reinstalling the NVIDIA driver.
[WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[ERROR][XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate io>
[ERROR][XORG] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
Don’t forget the first forwardslash
/usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so
not
usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so
If you don’t have this file, you need to dig it up and find it within your nvidia modules. The regular OpenSUSE libglx is not the same as nor compatible with nvidia libglx.