Git Product home page Git Product logo

24_bumblebee-slackbuilds-packages's Introduction

Bumblebee-SlackBuilds compiled to Slackware 15.0

Version

Nvidia driver: 470.82.00
Slackware 15.0 Kernel: 5.15.38

Links

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

Alternative - Support with the nVidia Proprietary Driver

https://github.com/ryuuzaki42/14_Nvidia_Driver_Slackware_Laptop/

How Install

0 - clone the repository or donwload

git clone https://github.com/ryuuzaki42/24_Bumblebee-SlackBuilds-Packages.git

Or download

https://github.com/ryuuzaki42/24_Bumblebee-SlackBuilds-Packages/archive/master.zip

1 Create group bumblebee:

su -
groupadd bumblebee

2 Add users to the group: # Change USERNAME to your user name

usermod -G bumblebee -a USERNAME

3 Install - upgrade packages

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

4 Add bumblebee to start

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

After a Kernel update need to rebuilt

bbswitch
nvidia-kernel

Test - Note: you need to re-login (or rebbot) to update take effect

Run:

glxinfo | egrep "OpenGL vendor|OpenGL renderer"

Result example:

OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 620 (KBL GT2)

Now test the NVidia card:

optirun glxinfo | egrep "OpenGL vendor|OpenGL renderer"

Result example:

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce 940MX/PCIe/SSE2

Card version of the test: GeForce 940MX

Steam run game with bumblebee video card

https://support.steampowered.com/kb_article.php?ref=6316-GJKC-7437

Try

primusrun %command%

Sometimes optirun is more stable

optirun %command%

In some cases, neither of those work (e.g. in Team Fortress 2) so I use:

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

only be used for benchmarks or tests:

vblank_mode=0 primusrun

Errors

Error - fatal: failed to load any of the libraries .../libGL.so.1

Backup libGL.so.1

mv /usr/lib64/nvidia-bumblebee/libGL.so.1 /usr/lib64/nvidia-bumblebee/libGL.so.1.back

Create a link simbolic from libGL.so.1.7.0

ln -s /usr/lib64/nvidia-bumblebee/libGL.so.1.7.0 /usr/lib64/nvidia-bumblebee/libGL.so.1

Error: Module glx does not have a glxModuleData data object

https://github.com/WhiteWolf1776/Bumblebee-SlackBuilds/issues/51

Sometimes just need the last part, with set the card in /etc/bumblebee/xorg.conf.nvidia

Go to the modules folder:

cd /usr/lib64/nvidia-bumblebee/xorg/modules/

Backup the old version of libGLX.so.0

mv libGLX.so.0 libGLX.so.0.back

Create a link simbolic from libglxserver_nvidia.XXX from the up folder

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

See the card ID

lspci | egrep 'VGA|3D'

Uncomment the line with "BusID ..." and set the value in the last command

I my case the value is "BusID "PCI:01:00:0"

nano /etc/bumblebee/xorg.conf.nvidia

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.