NVIDIA Optimus - Fedora 16 x86_64 - Installation bumblebee installation works well with cuda
This Guide is based on http://duxyng.wordpress.com/2012/01/26/finally-working-nvidia-optimus-on-fedora-16/

First install akmod-nvidia from rpmfusion.
[code]yum install kmod-nvidia[/code]

Remove following files installed by nvidia-driver
[code]rm /etc/X11/xorg.conf
rm /etc/X11/xorg.conf.d/00-nvidia.conf
rm /etc/ld.so.conf.d/nvidia-lib64.conf[/code]

Move nvidia extensions away from xorg standard path
[code]mv /usr/lib64/xorg/modules/extensions/nvidia/ /usr/lib64/nvidia-bumblebee/[/code]

--

Now download and install bbswitch
[url="https://github.com/Bumblebee-Project/bbswitch/downloads"]https://github.com/Bumblebee-Project/bbswitch/downloads[/url]

[code]yum install dkms[/code]

[code]tar xvzf bbswitch-0.4.1.tar.gz
sudo cp -Rv bbswitch-0.4.1 /usr/src
sudo dkms add -m bbswitch -v 0.4.1
sudo dkms build -m bbswitch -v 0.4.1
sudo dkms install -m bbswitch -v 0.4.1[/code]

--

Next install Bumblebee
[url="https://github.com/Bumblebee-Project/Bumblebee/downloads"]https://github.com/Bumblebee-Project/Bumblebee/downloads[/url]

[code]
tar xvzf bumblebee-3.0.tar.gz
cd bumblebee-3.0
./configure --prefix=/usr --sysconfdir=/etc
make
sudo make install
sudo cp scripts/systemd/bumblebeed.service /lib/systemd/system[/code]

--

Now configure bumblebee

Edit /lib/systemd/system/bumblebeed.service line 7 to read:

[code]ExecStart=/usr/sbin/bumblebeed --config /etc/bumblebee/bumblebee.conf[/code]

Edit /etc/bumblebee/bumblebee.conf and change:
[code]Driver=nvidia[/code]
and in section [driver-nvidia]:
[code]KernelDriver=nvidia[/code]
[code]LibraryPath=/usr/lib64/nvidia[/code]


Edit /etc/bumblebee/xorg.conf.nvidia and insert at the beginning:
[code]Section "Files"
ModulePath "/usr/lib64/nvidia-bumblebee/nvidia/"
ModulePath "/usr/lib64/xorg/modules"
EndSection[/code]
and appand at the end
[code]Section "Screen"
Identifier "Screen1"
Device "Device1"
EndSection[/code]

Now install CUDA as described here
[url="http://reset.etsii.upm.es/en/users/peque/installing-cuda-in-fedora-16/"]http://reset.etsii.upm.es/en/users/peque/installing-cuda-in-fedora-16/[/url]
This Guide is based on http://duxyng.wordpress.com/2012/01/26/finally-working-nvidia-optimus-on-fedora-16/



First install akmod-nvidia from rpmfusion.

yum install kmod-nvidia




Remove following files installed by nvidia-driver

rm /etc/X11/xorg.conf

rm /etc/X11/xorg.conf.d/00-nvidia.conf

rm /etc/ld.so.conf.d/nvidia-lib64.conf




Move nvidia extensions away from xorg standard path

mv /usr/lib64/xorg/modules/extensions/nvidia/ /usr/lib64/nvidia-bumblebee/




--



Now download and install bbswitch

https://github.com/Bumblebee-Project/bbswitch/downloads



yum install dkms




tar xvzf bbswitch-0.4.1.tar.gz

sudo cp -Rv bbswitch-0.4.1 /usr/src

sudo dkms add -m bbswitch -v 0.4.1

sudo dkms build -m bbswitch -v 0.4.1

sudo dkms install -m bbswitch -v 0.4.1




--



Next install Bumblebee

https://github.com/Bumblebee-Project/Bumblebee/downloads





tar xvzf bumblebee-3.0.tar.gz

cd bumblebee-3.0

./configure --prefix=/usr --sysconfdir=/etc

make

sudo make install

sudo cp scripts/systemd/bumblebeed.service /lib/systemd/system




--



Now configure bumblebee



Edit /lib/systemd/system/bumblebeed.service line 7 to read:



ExecStart=/usr/sbin/bumblebeed --config /etc/bumblebee/bumblebee.conf




Edit /etc/bumblebee/bumblebee.conf and change:

Driver=nvidia


and in section [driver-nvidia]:

KernelDriver=nvidia


LibraryPath=/usr/lib64/nvidia






Edit /etc/bumblebee/xorg.conf.nvidia and insert at the beginning:

Section "Files"

ModulePath "/usr/lib64/nvidia-bumblebee/nvidia/"

ModulePath "/usr/lib64/xorg/modules"

EndSection


and appand at the end

Section "Screen"

Identifier "Screen1"

Device "Device1"

EndSection




Now install CUDA as described here

http://reset.etsii.upm.es/en/users/peque/installing-cuda-in-fedora-16/

#1
Posted 03/19/2012 09:53 PM   
Nice. I hope these posts (from fedora and also other distributions ...ubuntu ) will get sticky. Many people with new optimus have no idea how to do it. (look for my posts if you use ubuntu 11.10).
Nice. I hope these posts (from fedora and also other distributions ...ubuntu ) will get sticky. Many people with new optimus have no idea how to do it. (look for my posts if you use ubuntu 11.10).

#2
Posted 03/23/2012 01:39 PM   
Scroll To Top