Nvidia driver: 470.82.00
Slackware 15.0 Kernel: 5.15.38
Project source: https://github.com/whitewolf1776/Bumblebee-SlackBuilds
Source used to build: https://github.com/ryuuzaki42/Bumblebee-SlackBuilds-Source
http://www.nvidia.com/object/unix.html
https://wiki.archlinux.org/index.php/bumblebee#Configuration
https://docs.slackware.com/howtos:hardware:nvidia_optimus
https://docs.slackware.com/howtos:hardware:proprietary_graphics_drivers
https://github.com/ryuuzaki42/14_Nvidia_Driver_Slackware_Laptop/
git clone https://github.com/ryuuzaki42/24_Bumblebee-SlackBuilds-Packages.git
https://github.com/ryuuzaki42/24_Bumblebee-SlackBuilds-Packages/archive/master.zip
su -
groupadd bumblebee
usermod -G bumblebee -a USERNAME
cd Bumblebee-SlackBuilds-Packages/final_packages/upgrade/
upgradepkg xf86-video-nouveau-blacklist-1.0-noarch-1.txz
cd ../install/
upgradepkg --install-new --reinstall *z
cd kernel_upgrade/
upgradepkg --install-new --reinstall *z
chmod +x /etc/rc.d/rc.bumblebeed
echo "/etc/rc.d/rc.bumblebeed start" >> /etc/rc.d/rc.local
Reboot to test
If you use slackpkg+ (http://slakfinder.org/slackpkg+.html), Set nouveau to greylist: echo "xf86-video-nouveau" >> /etc/slackpkg/greylist
bbswitch
nvidia-kernel
Run:
glxinfo | egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 620 (KBL GT2)
optirun glxinfo | egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce 940MX/PCIe/SSE2
Card version of the test: GeForce 940MX
https://support.steampowered.com/kb_article.php?ref=6316-GJKC-7437
primusrun %command%
optirun %command%
LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 optirun %command%
Note: due to the sync between framerate and refresh rate, you may not see any difference between primusrun and the intel card in glxgears, although you will
see drastic differences playing high end games. In the past the vblank_mode set to 0 improved framerates and helped with screen tearing, now tho this should
vblank_mode=0 primusrun
mv /usr/lib64/nvidia-bumblebee/libGL.so.1 /usr/lib64/nvidia-bumblebee/libGL.so.1.back
ln -s /usr/lib64/nvidia-bumblebee/libGL.so.1.7.0 /usr/lib64/nvidia-bumblebee/libGL.so.1
https://github.com/WhiteWolf1776/Bumblebee-SlackBuilds/issues/51
cd /usr/lib64/nvidia-bumblebee/xorg/modules/
mv libGLX.so.0 libGLX.so.0.back
ln ../libglxserver_nvidia.so.450.66 ./libGLX.so.0
Now the error glx not appears, but the card is not detected. Need to set manually the correctly card
lspci | egrep 'VGA|3D'
nano /etc/bumblebee/xorg.conf.nvidia