I have an HP Envy 17″ Laptop with the Nvidia Optimus hybrid graphics configuration. I have been trying to install the Nvidia drivers on Fedora 20 for a few weeks now.

 

NVIDIA-Optimus-Technology

 

I tried akmods and kmods from the RPM Fusion repositories and also the binary from the Nvidia website to no avail.

All I kept getting was a system hang right at the “Starting Gnome Display Manager” message, I had everything installed properly and just couldn’t get to the bottom of it.

 

So I decided to go the bumblebee route and hey presto it works flawlessly so I thought I would write a quick post on this so the information is as clear as possible and hopefully easy to find for someone who has the same problems.

 

Prerequisites

[alert-note]Please su into root or use sudo[/alert-note]

yum install -y libbsd-devel libbsd glibc-devel libX11-devel help2man autoconf git tar glib2 glib2-devel kernel-devel kernel-headers automake gcc gtk2-devel VirtualGL

If you plan on using 32bit packages on your 64bit system you will also need to do

yum install -y VirtualGL.i686

Bumblebee Installation

Install The Bumblebee Repository

yum -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora20/noarch/bumblebee-release-1.1-1.noarch.rpm

Install Bumblebee

yum -y install bbswitch bumblebee

Now Install The Bumblebee Non-Free Repository

yum -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee-nonfree/fedora20/noarch/bumblebee-nonfree-release-1.1-1.noarch.rpm

Now install the NVidia Drivers

yum -y install bumblebee-nvidia

Reboot and all should be well!

Once you have rebooted we need to check it’s all working as it should.

optirun glxgears -info | grep "GL_VENDOR"

You should see the output as below.
Screenshot from 2014-09-25 20:22:43

 

 

How Do I Run An Application Using My NVidia Device?

To use your Nvidia chip to handle an application or game just run

optirun tuxracer

 

GNOME 3 Extension

bumblebee

There is a brilliant extension which indicates when an application is using your Nvidia device

you can find it here

 

 

 

 


James Smith

Security Researcher, Penetration Tester & Linux Advocate

7 Comments

Danilo Figueiredo · November 30, 2014 at 10:31 pm

Fiz esse procedimento para eliminar alguns bugs durante o uso…

Eu segui todos os passos, porém ao reiniciar o vermelhor vicou laranja e o azul ficou vermelho.
Aparentemente os bugs foram eliminados(o computador parou de travar), porém tive que remover os pacotes instalados para voltar as cores normais…
De qualquer forma obrigado pela contribuição

Maxx Astral · April 12, 2015 at 3:27 pm

Finally.. the guide that worked to enable NVIDIA drivers in the Fedora 21 installation in a samsung laptop.. after trying for many days to get nvidia drivers to work in Fedora 21 , after trying akmod, kmod, dkms, and all other drivers, this bumblebee finally got it up and running… many many thanks to your for putting this up , it helps many dudes who are facing problems like this… Thanks a lot… 🙂

    smittix · April 12, 2015 at 8:01 pm

    Hey Maxx thanks for the feedback it’s much appreciated always nice to hear someone finding my posts useful! Take care

Rodrigo Burgos · August 4, 2015 at 3:43 pm

Thanks!!!

Samsung RC420 perfect installation in Fedora 22

Heysen Molina · October 12, 2015 at 10:32 pm

can use this guide in fedora 22? Thanks!!

    jhonroa85 · November 8, 2015 at 10:00 pm

    Perfect!! on my fedora22SAMUNG ATIV NP530U

salman khan · November 19, 2015 at 12:10 pm

Thank you so much for this post!!
I was scratching my head for last 2 days to install nvidia drivers.
Works perfect on fedora 22.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: