NVIDIA Optimus - Fedora 16 x86_64 - Installation bumblebee installation works well with cuda

This Guide is based on Finally working Nvidia Optimus in Fedora | CORETECH

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/

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).