Skip to content

intel 내장 그래픽 / CUDA

조회 수 2281 추천 수 0 2018.05.12 12:35:56


This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:

lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)

A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly. In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers. This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.

The solution is described in the answer from this post.

Install the NVIDIA drivers

Download the driver installation runfile from their website (e.g. the 375.26 driver runfile). Run the script with the option --no-opengl-files:

sudo ./ --no-opengl-files


Install CUDA

Download the CUDA installation runfile from their website. It's important to download the "runfile (local)" file so that we can explicitly prevent from overwriting the driver that was just installed. Run the script:

sudo ./ 

Respond "no" when asked "Install NVIDIA accelerated Graphics Driver for Linux-x86_65 375.26?".

Configure xorg.conf

Modify or create the file /etx/X11/xorg.conf to specify that the NVIDIA GPU should be used for a secondary screen so that it has entries in nvidia-settings. Mine looks like this:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "intel"
    Screen 1 "nvidia"

Section "Device"
    Identifier "intel"
    Driver "intel"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "SNA"

Section "Screen"
    Identifier "intel"
    Device "intel"

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"

The BusID should match what the lspci command above returned.


Miscellaneous tips

If installing the NVIDIA drivers messes up the OS (e.g. it gets stuck in a login loop or it shows a black screen before the login step), you can uninstall the drivers by openning a console with Ctrl-Alt-F1 and running:

sudo apt-get remove --purge nvidia-*
sudo apt-get autoremove
echo "nouveau" | sudo tee -a /etc/modules


List of Articles
번호 제목 글쓴이 날짜 조회 수
» intel 내장 그래픽 / CUDA WHRIA 2018-05-12 2281
1536 당좌대월이자율 WHRIA 2018-03-06 1821
1535 security 0 WHRIA 2018-03-02 1086
1534 IEEE Spectrum WHRIA 2018-02-27 225
1533 kakao WHRIA 2018-02-25 118
1532 reverse VNC WHRIA 2018-02-14 195
1531 let's encrypt 받는법 WHRIA 2018-01-11 1212
1530 mxnet WHRIA 2018-01-08 338
1529 Deep neural networks show a superior performance to all 42 dermatologists in onychomycosis diagnosis WHRIA 2018-01-08 1221
1528 Windows Subsystem Linux WHRIA 2018-01-01 395
1527 Model Dermatology file WHRIA 2017-12-22 389
1526 https redirect [1] WHRIA 2017-08-13 496
1525 미래가 보이지 않는다. WHRIA 2017-07-01 239
1524 record IP camera [1] WHRIA 2017-06-22 1326
1523 aws xrdp WHRIA 2017-05-29 1164

Powered by Xpress Engine / Designed by Sketchbook

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내

이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소