ubuntu 14.04 如何安装GTX960M 驱动

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
kongan
帖子: 13
注册时间: 2016-11-11 22:18
系统: ubuntu 14.04.3

ubuntu 14.04 如何安装GTX960M 驱动

#1

帖子 kongan » 2016-11-11 22:32

ThinkPad 黑将 S5 WIN10 和 ubuntu 14.04.3 升级到4.2内核 4.2.0-040200

双显卡
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

已经弄了一周了,各种问题啊。
1.通过官方安装文件安装cuda,不安装OpenGL,桌面启动没问题,deviceQuery正常,但像boxFilter这类需要显示的程序要报错,运行ROS的rviz也是非常卡,旋转图像要等几秒。
2.只安装驱动:官方安装文件安装,或者xorg-edgers/ppa源安装,或者附加驱动安装,结果都是要么黑屏要么循环登录。

真的不知道该怎么办了!!!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 如何安装GTX960M 驱动

#2

帖子 poloshiao » 2016-11-12 6:37

双显卡
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
ubuntu 14.04
升級到 Ubuntu 16.04 再試試
kongan
帖子: 13
注册时间: 2016-11-11 22:18
系统: ubuntu 14.04.3

Re: ubuntu 14.04 如何安装GTX960M 驱动

#3

帖子 kongan » 2016-11-12 9:20

ubuntu 14.04 是为了装 ROS indigo。之前在另一台笔记本上开发都是基于indigo的。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 如何安装GTX960M 驱动

#4

帖子 poloshiao » 2016-11-12 11:10

1. 把下面指令 複製 貼進終端機 執行
1-1. uname -a
1-2. sudo cat /etc/os-release
1-3. sudo lspci -knn
1-4. sudo lshw -numeric -class video
1-5. sudo ubuntu-drivers devices
1-6. dmesg | grep -i chipset
把結果全部直接 選取/複製/貼上來
kongan
帖子: 13
注册时间: 2016-11-11 22:18
系统: ubuntu 14.04.3

Re: ubuntu 14.04 如何安装GTX960M 驱动

#5

帖子 kongan » 2016-11-12 12:35

下面命令列出的是在用附近驱动安装后循环登录状态的结果。内核是 4.2.0-040200,不过是我自己编译的取名为4.2.0-64-generic+。
1-1 uname -a
Linux hkj-ThinkPad-S5 4.2.0-64-generic+ #2 SMP Tue Nov 8 22:44:05 CST 2016 x86_64 x86_64 x86_64 GNU/Linux

1-2 cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.3 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

1-3 lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Skylake Host Bridge/DRAM Registers [8086:1910] (rev 07)
Subsystem: Lenovo Device [17aa:5054]
00:01.0 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x16) [8086:1901] (rev 07)
Kernel driver in use: pcieport
00:01.1 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x8) [8086:1905] (rev 07)
Kernel driver in use: pcieport
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b] (rev 06)
Subsystem: Lenovo Device [17aa:5055]
00:08.0 System peripheral [0880]: Intel Corporation Skylake Gaussian Mixture Model [8086:1911]
Subsystem: Lenovo Device [17aa:5054]
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31)
Subsystem: Lenovo Device [17aa:5054]
Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Thermal subsystem [8086:a131] (rev 31)
Subsystem: Lenovo Device [17aa:5054]
00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31)
Subsystem: Lenovo Device [17aa:5054]
00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] [8086:a103] (rev 31)
Subsystem: Lenovo Device [17aa:5054]
Kernel driver in use: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #3 [8086:a112] (rev f1)
Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #4 [8086:a113] (rev f1)
Kernel driver in use: pcieport
00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #13 [8086:a11c] (rev f1)
Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a14e] (rev 31)
Subsystem: Lenovo Device [17aa:5054]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31)
Subsystem: Lenovo Device [17aa:5054]
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31)
Subsystem: Lenovo Device [17aa:5054]
Kernel driver in use: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31)
Subsystem: Lenovo Device [17aa:5054]
02:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 960M] [10de:139b] (rev a2)
Subsystem: Lenovo Device [17aa:5055]
Kernel driver in use: nvidia
03:00.0 Network controller [0280]: Intel Corporation Intel Dual Band Wireless-AC 3165 Plus Bluetooth [8086:3166] (rev 99)
Subsystem: Intel Corporation Device [8086:4210]
Kernel driver in use: iwlwifi
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
Subsystem: Lenovo Device [17aa:5054]
Kernel driver in use: r8169
05:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8520] (rev 01)
Subsystem: Lenovo Device [17aa:5054]
Kernel driver in use: sdhci-pci

1-4 lshw -numeric -class video
*-display
description: 3D controller
product: GM107M [GeForce GTX 960M] [10DE:139B]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:02:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=nvidia latency=0
resources: irq:17 memory:f1000000-f1ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:d000(size=128)
*-display UNCLAIMED
description: VGA compatible controller
product: HD Graphics 530 [8086:191B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: memory:f0000000-f0ffffff memory:e0000000-efffffff ioport:e000(size=64)


1-5 ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0 ==
modalias : pci:v000010DEd0000139Bsv000017AAsd00005055bc03sc02i00
vendor : NVIDIA Corporation
driver : nvidia-367 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin


1-6 dmesg | grep -i chipset
无输出
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 如何安装GTX960M 驱动

#6

帖子 poloshiao » 2016-11-12 16:34

*-display UNCLAIMED
description: VGA compatible controller
product: HD Graphics 530 [8086:191B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: memory:f0000000-f0ffffff memory:e0000000-efffffff ioport:e000(size=64)
1. 集顯 Intel HD Graphics 530 沒有合適的作用中驅動

2. Intel 從 2015Q3 才開始支援 Intel HD Graphics 530
http://ark.intel.com/products/codename/ ... ylake#@All
Launched Q3'15

3. 參考這個網頁 安裝系列套件
https://01.org/zh/linuxgraphics/downloa ... redirect=1
版本: 2015Q3
Linux Kernel - 4.2
Mesa - 10.6.7
xf86-video-intel - 2.99.917
Libdrm - 2.4.64
Libva - 1.6.1
vaapi intel-driver - 1.6.1
Cairo - 1.14.2
Xorg Xserver - 1.17.2
Intel-gpu-tools - 1.12
Linux Kernel for Upcoming Platforms (SKL) - drm-intel-testing

4. 可能需要額外安裝 firmware
https://01.org/zh/linuxgraphics/intel-l ... redirect=1

5. 額外參閱
http://askubuntu.com/questions/811554/i ... 30-drivers
Intel HD 530 Drivers
VERSION="14.04.3 LTS, Trusty Tahr"
6. 14.04.3 預設使用 Linux kernel 3.19
https://wiki.ubuntu.com/TrustyTahr/Rele ... d_Packages
Linux kernel 3.19
内核是 4.2.0-040200,不过是我自己编译的取名为4.2.0-64-generic+。
7. 要在 Ubuntu 14.04.3 中使用 4.2.0 内核
請參閱
https://wiki.ubuntu.com/TrustyTahr/Rele ... ment_Stack
LTS Hardware Enablement Stack
ubuntu 14.04 是为了装 ROS indigo。
8. 重點不在於 Ubuntu 版本 而是 Linux kernel 版本
8-1. 查證一下 ROS indigo 與 4.2.0 内核是否相容
头像
aukomn
帖子: 144
注册时间: 2008-05-03 14:09
联系:

Re: ubuntu 14.04 如何安装GTX960M 驱动

#7

帖子 aukomn » 2016-11-12 17:13

dmesg |grep gpu
kongan
帖子: 13
注册时间: 2016-11-11 22:18
系统: ubuntu 14.04.3

Re: ubuntu 14.04 如何安装GTX960M 驱动

#8

帖子 kongan » 2016-11-12 20:51

3. 參考這個網頁 安裝系列套件
https://01.org/zh/linuxgraphics/downloa ... redirect=1
版本: 2015Q3
Linux Kernel - 4.2
Mesa - 10.6.7
xf86-video-intel - 2.99.917
Libdrm - 2.4.64
Libva - 1.6.1
vaapi intel-driver - 1.6.1
Cairo - 1.14.2
Xorg Xserver - 1.17.2
Intel-gpu-tools - 1.12
Linux Kernel for Upcoming Platforms (SKL) - drm-intel-testing


这个安装起来各种依赖问题!


dmesg |grep gpu
无输出
kongan
帖子: 13
注册时间: 2016-11-11 22:18
系统: ubuntu 14.04.3

Re: ubuntu 14.04 如何安装GTX960M 驱动

#9

帖子 kongan » 2016-11-12 23:19

终于解决了 intel 驱动依赖关系安装了
Mesa - 10.6.7
xf86-video-intel - 2.99.917
Libdrm - 2.4.64
Libva - 1.6.1
vaapi intel-driver - 1.6.1
Cairo - 1.14.2
Xorg Xserver - 1.17.2
Intel-gpu-tools - 1.12

最后这个 Linux Kernel for Upcoming Platforms (SKL) - drm-intel-testing 不能获取源码,没有安装。

开机后不能进入图形界面,只有一个光标在闪。

lsmod | grep intel
kvm_intel 163840 0
kvm 503808 1 kvm_intel
ghash_clmulni_intel 16384 0
aesni_intel 167936 6
aes_x86_64 20480 1 aesni_intel
lrw 16384 1 aesni_intel
glue_helper 16384 1 aesni_intel
ablk_helper 16384 1 aesni_intel
btintel 16384 1 btusb
cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
bluetooth 512000 25 bnep,btbcm,btrtl,btusb,rfcomm,btintel
snd_hda_intel 36864 0
snd_hda_codec 135168 4 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel
snd_hda_core 65536 5 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_pcm 102400 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
snd 86016 12 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device
pinctrl_intel 20480 1 pinctrl_sunrisepoint
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 如何安装GTX960M 驱动

#10

帖子 poloshiao » 2016-11-13 7:25

开机后不能进入图形界面,只有一个光标在闪。
通常是因為顯卡驅動還未妥適安裝/設定/啟用引起的
開機選項增加合宜核心參數可以幫助你順利登入桌面
等妥適安裝/設定/啟用顯卡驅動後 重開機 就不必再增加合宜核心參數
參閱
http://apexu.com/apexu/tw/modules/publi ... ?itemid=14
多試幾個核心參數
lsmod | grep intel
如果你想查 Intel 驅動模組 參閱
search.php?keywords=i915+bpo&terms=all& ... C%E5%B0%8B
kongan
帖子: 13
注册时间: 2016-11-11 22:18
系统: ubuntu 14.04.3

Re: ubuntu 14.04 如何安装GTX960M 驱动

#11

帖子 kongan » 2016-11-13 17:05

试了acpi_osi=linux nomodeset acpi_osi=linux i915.modeset=1 acpi_osi=linux i915.modeset=0,还是只有一个光标在闪。
启动是提示snd_hda_intel 0000:00:1f.3: failed to add i915 component master (-19)
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 如何安装GTX960M 驱动

#12

帖子 poloshiao » 2016-11-13 17:14

启动是提示snd_hda_intel 0000:00:1f.3: failed to add i915 component master (-19)
UEFI 開機 ?
把 Secure Boot 關閉

參閱
http://askubuntu.com/questions/694677/s ... -master-19
kongan
帖子: 13
注册时间: 2016-11-11 22:18
系统: ubuntu 14.04.3

Re: ubuntu 14.04 如何安装GTX960M 驱动

#13

帖子 kongan » 2016-11-13 18:02

Secure Boot 已经关闭了,不然NVIDIA驱动都没法装!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 如何安装GTX960M 驱动

#14

帖子 poloshiao » 2016-11-13 20:08

试了acpi_osi=linux nomodeset acpi_osi=linux i915.modeset=1 acpi_osi=linux i915.modeset=0,还是只有一个光标在闪。
可能還沒找到合適合的核心參數組合
也可能還有別的原因
例如可能是滑鼠還沒合適驅動引起的

如果一直未解決
建議
先試試 Ubuntu 16.04
成功了
有需要再回頭降級 Linux Kernel 版本 (以配合 ROS indigo)
kongan
帖子: 13
注册时间: 2016-11-11 22:18
系统: ubuntu 14.04.3

Re: ubuntu 14.04 如何安装GTX960M 驱动

#15

帖子 kongan » 2016-11-13 21:47

现在也只有安装个16.04试试了
回复