Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

On my desktop, I have a GTX560Ti which I use for CUDA and display I have installed the installed the nvidia driver and everything works fine

I have an Intel HD Graphics 3000 integrated in my CPU. I want to use this graphic card for my display, instead of my Nvidia card.

How to proceed ? How to install Intel Driver vithout breaking CUDA ?

My ubuntu is 12.04

share|improve this question
A brief summary if you start with a clean Ubuntu (13.10, but should generalize): osdf.github.io/blog/… –  osdf Mar 12 '14 at 8:52

2 Answers 2

The trick is to load nvidia card in to the device without module nvidia, because nsight don't need this module to debug. And I don't need nvidia module as a display.

Here is what I did:

I add the file named nvidia_cuda into /etc/init.d and make it executive by chmod +X

This is given by nvidia, but I commented the line /sbin/modprobe nvidia


# /sbin/modprobe nvidia

if [ "$?" -eq 0 ]; then
  # Count the number of NVIDIA controllers found.
  NVDEVS=`lspci | grep -i NVIDIA`
  N3D=`echo "$NVDEVS" | grep "3D controller" | wc -l`
  NVGA=`echo "$NVDEVS" | grep "VGA compatible controller" | wc -l`

   N=`expr $N3D + $NVGA - 1`
   for i in `seq 0 $N`; do
     mknod -m 666 /dev/nvidia$i c 195 $i

   mknod -m 666 /dev/nvidiactl c 195 255

   exit 1

This file is from http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/#runfile-installation 2.5.2. Runfile Installation, Step 6.

But first you need to verify that you have both cards as pci device. I enabled intel multi-display in BIOS to get this.

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 635] (rev a1)
share|improve this answer

install common Graphics driver package: It will select appropriate file for the display:

sudo apt-get install xserver-xorg-video-all
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.