Skip to content

intel 내장 그래픽 / CUDA

2018.05.12 12:35

WHRIA 조회 수:3113

https://gist.github.com/alexlee-gk/76a409f62a53883971a18a11af93241b

 

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 ./NVIDIA-Linux-x86_64-375.26.run --no-opengl-files

Reboot.

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 ./cuda_8.0.44_linux.run 

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"
EndSection

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

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

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

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

The BusID should match what the lspci command above returned.

Reboot.

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

Reboot.

번호 제목 글쓴이 날짜 조회 수
1671 개업 WHRIA 2009.11.03 9403
1670 내가 거래하는 은행에서 firefox 를 지원하다. WHRIA 2011.03.07 9396
1669 내년 피부과 개원 예정 WHRIA 2009.06.15 9317
1668 MBC 최강연승 퀴즈쇼 [2] WHRIA 2012.08.13 9300
1667 파일의 magic number WHRIA 2012.12.26 9272
1666 NEWTYPE 2003.11.18 9263
1665 홈페이지 이전 WHRIA 2010.12.12 9251
1664 승석아.. 안녕... 최평균 2000.05.31 9228
1663 GomPhoto 만들었음 [2] WHRIA 2012.12.31 9207
1662 clonezilla WHRIA 2011.05.10 9205
1661 우연히..... 이임숙 2000.05.30 9195
1660 계획 WHRIA 2009.10.05 9146
1659 bjam WHRIA 2008.02.29 9107
1658 Release MedicalPhoto 1.0.4 WHRIA 2008.05.14 9103
1657 기장, 간편장부 WHRIA 2008.08.30 9029

Powered by Xpress Engine / Designed by Sketchbook

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소