[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:hardware:nvidia_optimus [2014/04/20 22:30 (UTC)] – [Post-Installation] s/bumblebee/bumblebeed sycamorex | howtos:hardware:nvidia_optimus [2015/04/24 06:03 (UTC)] – tommyc | ||
---|---|---|---|
Line 20: | Line 20: | ||
==== Installing Bumblebee ==== | ==== Installing Bumblebee ==== | ||
---- | ---- | ||
+ | === The Automated Way === | ||
+ | There is a new, automated way of installing Bumblebee thanks to Slacker: Ryan McQuen. | ||
+ | <note warning> | ||
+ | If you have modified the SlackBuilds in any way, this script may not be for you.</ | ||
+ | |||
+ | You can run this as root: | ||
+ | < | ||
+ | curl https:// | ||
+ | </ | ||
+ | |||
+ | Alternatively you can download the script and run it as root on your system directly. | ||
+ | |||
+ | This script detects multilib, creates the necessary group, adds users and applies the necessary / | ||
+ | |||
+ | < | ||
+ | curl https:// | ||
+ | </ | ||
+ | |||
+ | It also uses upgradepkg' | ||
+ | === The Manual Way === | ||
=== Getting the SlackBuilds === | === Getting the SlackBuilds === | ||
A fellow Slacker, jgeboski, originally provided SlackBuilds that mostly follow the [[http:// | A fellow Slacker, jgeboski, originally provided SlackBuilds that mostly follow the [[http:// | ||
Line 35: | Line 55: | ||
There is a README file, but you probably won't be reading it as you're reading this instead, so we're basically going to post it here. | There is a README file, but you probably won't be reading it as you're reading this instead, so we're basically going to post it here. | ||
- | === Getting the Dependencies | + | === Getting the Source Files === |
- | The dependencies, as with all SlackBuilds, | + | The source files, as with all SlackBuilds, |
<code sh> | <code sh> | ||
./ | ./ | ||
Line 50: | Line 70: | ||
=== Building and Installing Bumblebee' | === Building and Installing Bumblebee' | ||
- | 1. Build and install: bbswitch (optional but highly recommended), libbsd and bumblebee in order as you go. | + | 1. Build and install: bbswitch (optional but highly recommended). |
< | < | ||
# cd bbswitch # You don't actually need to '' | # cd bbswitch # You don't actually need to '' | ||
# ./ | # ./ | ||
# upgradepkg --install-new bbswitch-*.t? | # upgradepkg --install-new bbswitch-*.t? | ||
+ | </ | ||
+ | |||
+ | 2. Build and install: libbsd (required). | ||
+ | < | ||
# cd ../libbsd | # cd ../libbsd | ||
# ./ | # ./ | ||
# upgradepkg --install-new libbsd-*.t? | # upgradepkg --install-new libbsd-*.t? | ||
+ | </ | ||
+ | |||
+ | 3. Build and install: bumblebee (obviously required). | ||
+ | < | ||
# cd ../ | # cd ../ | ||
# ./ | # ./ | ||
Line 69: | Line 97: | ||
< | < | ||
</ | </ | ||
+ | |||
+ | === Primus === | ||
+ | Primus, like optirun (instructions below) can be used to run your desired program via bumblebee. Primus also comes with a COMPAT32 option as well. | ||
+ | |||
+ | <note warning> | ||
+ | If you are using Slackware 14.0 or older you need to rebuild mesa. The new github repository does not offer a SlackBuild for mesa to support Slackware 14.0 or older. Therefore you must use Slackware 14.1 or newer, or rebuild mesa manually with a different script. One can choose to use the old repository and simply update the SlackBuild script appropriately, | ||
+ | < | ||
+ | # # For the old repository, one would have done: | ||
+ | # cd ../mesa | ||
+ | # ./ | ||
+ | </ | ||
+ | mesa does not have a COMPAT32 option because it is an official Slackware package, but you can easily create the compat32 package after creating the original package by using: | ||
+ | < | ||
+ | # ./ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 1. Build and install: primus | ||
+ | < | ||
+ | # cd ../primus | ||
+ | # ./ | ||
+ | # upgradepkg --install-new primus-*.t? | ||
+ | </ | ||
+ | < | ||
+ | # COMPAT32=yes ./ | ||
+ | </ | ||
=== VirtualGL === | === VirtualGL === | ||
+ | VirtualGL provides support for optirun that also allows one to run programs via bumblebee. However, it is recommended that one uses primusrun for a few reasons. | ||
<note warning> | <note warning> | ||
Although VirtualGL (and its dependency libjpeg-turbo) are still supported by the Bumblebee project and maintained by their developers, the new github repo does not include SlackBuild scripts for these packages. This section is for the old github repository that was once maintained by jgeboski. If you would like to use VirtualGL (e.g. you're in one of the rare cases where VirtualGL provides better performance than primus) then you can use your own personal SlackBuilds or the old ones (although the old SlackBuilds will be out-of-date). | Although VirtualGL (and its dependency libjpeg-turbo) are still supported by the Bumblebee project and maintained by their developers, the new github repo does not include SlackBuild scripts for these packages. This section is for the old github repository that was once maintained by jgeboski. If you would like to use VirtualGL (e.g. you're in one of the rare cases where VirtualGL provides better performance than primus) then you can use your own personal SlackBuilds or the old ones (although the old SlackBuilds will be out-of-date). | ||
Line 98: | Line 153: | ||
< | < | ||
# COMPAT32=yes ./ | # COMPAT32=yes ./ | ||
- | </ | ||
- | |||
- | === Primus === | ||
- | Primus is another program designed to be used much like optirun. However, primus does not require VirtualGL (and therefore will not require libjpeg-turbo as well) but only requires mesa with %%--%%enable-shared-glapi (Slackware 14.0 and below must have mesa rebuilt). Primus also comes with a COMPAT32 option as well. | ||
- | |||
- | <note warning> | ||
- | The new github repository does not offer a SlackBuild for mesa to support Slackware 14.0 or older. Therefore you must use Slackware 14.1 or newer, or rebuild mesa manually with a different script. One can choose to use the old repository and simply update the SlackBuild script appropriately, | ||
- | < | ||
- | # # For the old repository, one would have done: | ||
- | # cd ../mesa | ||
- | # ./ | ||
- | </ | ||
- | mesa does not have a COMPAT32 option because it is an official Slackware package, but you can easily create the compat32 package after creating the original package by using: | ||
- | < | ||
- | # ./ | ||
- | </ | ||
- | </ | ||
- | |||
- | 1. Build and install: primus | ||
- | < | ||
- | # cd ../primus | ||
- | # ./ | ||
- | # upgradepkg --install-new primus-*.t? | ||
- | </ | ||
- | < | ||
- | # COMPAT32=yes ./ | ||
</ | </ | ||
Line 129: | Line 158: | ||
If you want to use the nVidia proprietary drivers, you must not use nouveau, as the drivers interfere with each other. This can be prevented by removing nouveau, installing xf86-video-nouveau-blacklist from /extra, or blacklisting nouveau manually. | If you want to use the nVidia proprietary drivers, you must not use nouveau, as the drivers interfere with each other. This can be prevented by removing nouveau, installing xf86-video-nouveau-blacklist from /extra, or blacklisting nouveau manually. | ||
- | < | ||
This part is entirely optional. Slackware 13.37 and above comes with xf86-video-nouveau, | This part is entirely optional. Slackware 13.37 and above comes with xf86-video-nouveau, | ||
<note warning> | <note warning> | ||
- | Some nvidia driver versions are incompatible with certain kernel versions. One example is nvidia's 319.32 | + | Some nvidia driver versions are incompatible with certain kernel versions |
</ | </ | ||
- | 1. Build and install: libvdpau | + | < |
< | < | ||
# cd ../libvdpau | # cd ../libvdpau | ||
Line 142: | Line 170: | ||
# upgradepkg --install-new libvdpau-*.t? | # upgradepkg --install-new libvdpau-*.t? | ||
</ | </ | ||
+ | </ | ||
- | 2. Build and install: nvidia-bumblebee | + | 1. Build and install: nvidia-bumblebee |
<code sh> | <code sh> | ||
# cd ../ | # cd ../ | ||
Line 153: | Line 182: | ||
</ | </ | ||
- | 3. Build and install: nvidia-kernel | + | 2. Build and install: nvidia-kernel |
<code sh> | <code sh> | ||
# cd ../ | # cd ../ | ||
Line 159: | Line 188: | ||
# upgradepkg --install-new nvidia-kernel-*.t? | # upgradepkg --install-new nvidia-kernel-*.t? | ||
</ | </ | ||
- | < | ||
- | # COMPAT32=yes ./ | ||
- | </ | ||
- | </ | ||
==== Post-Installation ==== | ==== Post-Installation ==== | ||
Excellent. Now we're ready to do some post-installation setup. The bumblebee package provided us with an rc.bumblebee script in /etc/rc.d where the other startup scripts are also located. Remember to make this script executable and, if you so desire, start it! | Excellent. Now we're ready to do some post-installation setup. The bumblebee package provided us with an rc.bumblebee script in /etc/rc.d where the other startup scripts are also located. Remember to make this script executable and, if you so desire, start it! |