-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathREADME
More file actions
118 lines (74 loc) · 3.32 KB
/
Copy pathREADME
File metadata and controls
118 lines (74 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
This set of SlackBuilds should get Bumblebee up and running on a
Slackware based NVIDIA Optimus setup.
Slackware Docs:
A wiki page on the Slackware docs has been put to gether by another
slacker, TommyC. I recommend you follow the wiki page for a more
in-depth guide.
http://docs.slackware.com/howtos:hardware:nvidia_optimus
HowTo:
If you have never used a SlackBuild before, please refer to the HowTo
on SlackBuilds.org: http://slackbuilds.org/howto/
Note:
Several of these SlackBuilds support a COMPAT32 option which
allows 32-bit binaries to be built and packaged. This does
require that the system is multilibbed, otherwise the
SlackBuilds will fail.
For more information on multilibbing, visit AlienBOB's wiki:
http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:multilib
1. Download the sources:
$ ./download.sh
2. Create group: bumblebee:
# groupadd bumblebee
Add users to the group:
# usermod -G bumblebee -a USERNAME
Note: you will need to re-login as the user for this to take effect
3. Build and install: libbsd
4. Build and install: bumblebee
5. Build and install: bbswitch (Optional)
This in an optional requirement. If you do not need power management
or the ability to turn off the nVidia chip, you can skip this.
6. Build and install: libvdpau (Optional, if using nouveau)
7. Build and install: nvidia-bumblebee (Optional, if using nouveau)
If the system is x86_64 based, 32-bit compatible binaries and
libraries can be built via:
# COMPAT32=yes ./nvidia-bumblebee.SlackBuild
8. Build and install: nvidia-kernel (Optional, if using nouveau)
9. Build and install: primus, VirtualGL, or both
Primus:
1. Rebuild and reinstall: mesa
Slackware 14.0 mesa does not come with libglapi which is needed by
primus during runtime.
Slackware-current does now include the libglapi.
If the system is x86_64 based, a 32-bit compatible package can
be built via:
# ./mesa-compat32.SlackBuild
2. Build and install: primus
If the system is x86_64 based, 32-bit compatible binaries and
libraries can be built via:
# COMPAT32=yes ./primus.SlackBuild
primus speeds can be much improved by running:
vblank_mode=0 primusrun
VirtualGL:
1. Build and install: libjpeg-turbo
If the system is x86_64 based, 32-bit compatible binaries and
libraries can be built via:
# COMPAT32=yes ./libjpeg-turbo.SlackBuild
2. Build and install: VirtualGL
If the system is x86_64 based, 32-bit compatible binaries and
libraries can be built via:
# COMPAT32=yes ./VirtualGL.SlackBuild
10. Run the rc.bumblebee script:
# chmod +x /etc/rc.d/rc.bumblebeed
# /etc/rc.d/rc.bumblebeed start
If you'd like to have bumblebee autostart with the system, you will
need to add the following lines to: /etc/rc.d/rc.local:
if [ -x /etc/rc.d/rc.bumblebeed ]; then
/etc/rc.d/rc.bumblebeed start
fi
You can also go a step further by having bumblebeed stop with your
system by adding the following lines to: /etc/rc.d/rc.local_shutdown:
if [ -x /etc/rc.d/rc.bumblebeed ]; then
/etc/rc.d/rc.bumblebeed stop
fi
Now an application can run with optirun:
$ optirun glxgears