Install NVIDIA Optimus Card Ubuntu

10:28 PM

Bumblebee project is an open source project for Nvidia graphic card that support optimus technology. I am using Nvidia GeForce GT540M that supported with optimus technology.  Here is step by step bumblebee instalation
  1. Check your vga card using command
    sudo lspci -vnn |grep '\[030[02]\]'
    VGA has been detected in my laptop, so i get message below
    00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller]) 
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108 [GeForce GT 540M] [10de:0df4] (rev a1) (prog-if 00 [VGA controller]) 
  2. Add Bumblebee Repository
    sudo apt-add-repository ppa:bumblebee/stable
    sudo apt-add-repository ppa:Ubuntu-x-swat/x-updates
  3. Update nvidia-current package if you've install optimus card before
    sudo apt-get purge nvidia-current
  4. Update repository list
    sudo apt-get update
  5. Install bumblebee with the nvidia driver
    sudo apt-get install bumblebee bumblebee-nvidia
  6. Restart your machine
    
    
After installing Bumblebee, by default we do not use the nvidia card when running a program. For that we need to add optirun command on the terminal to running an application using nvida card, for example
optirun blender 

We can display our nvidia card properties with this command

optirun nvidia-settings -c :8
nvidia gt540m
nvidia gt540m

Might be a bit complicated to run applications with the terminal, with optirun anyway. I have two tips for running applications with bumblebee.

Using Gnome Shell
If you are using gnome shell you can using shortcut Alt + F2. You will get an box and write
optirun blender
so you can run without terminal. But i think it's same with using terminal. The differences you don't need to keep terminal open

Using Bumblebee-UI
You can using UI for running an application that must use bumblebee. There is step by step install the bumblebee ui on your machine. You must connected into internet first before follow this step.

  1. Install git first
    sudo apt-get install git
  2. Create a folder for git
    mkdir git
  3. Go to the git folder with terminal
    cd git
  4. Download bumblebee-ui from git repositroy
     git clone https://github.com/Bumblebee-Project/bumblebee-ui.git
  5. Go to folder bumblebee-ui
    cd bumblebee-ui
  6. Install bumblebee-ui
    sudo ./INSTALL
  7. After install Bumblebee UI, open Startup Application menu and add bumblebee aplication that you can run when computer on with this command
    /usr/local/bin/bumblebee-indicator
  8. Restart ccomputer and you will get an icon on top (unity) and bottom (gnome-shell) that you can use to select which program that will be run using bumblebee.
If you are Blender user and want to use cycles in Ubuntu, you need more instalation i will write in next post.

Tulisan ini dalam bentuk bahasa Indonesia: Cara Install Nvidia Optimus di Ubuntu

You Might Also Like

2 comments

  1. Hello,

    I have just installed blender 2.68a 64bits under Ubuntu 13.04 64bits with the last Bumblebee drivers.

    Unfortunately when I run "optirun Blender" in the shell, it say :

    "connect failed: No such file or directory"


    and there's no cuda cards detected in blender...


    Do you know what could be the problem ? Should I must install cuda toolkit ?

    ReplyDelete
  2. optirun is package from bumblebee. if you can't run optirun, it means your bumblebee not installed correctly.



    If the problem no cuda, you need install cuda toolkit, because cuda toolkit not bumblebee package.

    ReplyDelete

Popular Posts

Subscribe