Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
cs5117155
帖子: 25
注册时间: 2018-06-09 17:47
送出感谢: 2 次
接收感谢: 0

Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#1

帖子 cs5117155 » 2018-06-14 18:55

我的笔记本是华硕堡垒第五代FX80 1050TI显卡的,百度ubuntu 16.04安装NVIDVA前5页的方法都搞过啦,已经5天了,希望能有人解答下,网分感谢

截图里面,我去官网下载最新390版本,也不行

1. uname -a
2. sudo lspci -knn
3. sudo lshw -numeric -class video
4. sudo ubuntu-drivers devices
5. sudo efibootmgr -v


1. uname -a
Linux jingmian-TUF 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


root@jingmian-TUF:~# lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:3ec4] (rev 07)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 07)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e9b]
DeviceName: Onboard - Video
Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 07)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Skylake Processor Thermal Subsystem [1043:10c1]
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device
00:08.0 System peripheral [0880]: Intel Corporation Sky Lake Gaussian Mixture Model [8086:1911]
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Skylake Gaussian Mixture Model [1043:10c1]
00:12.0 Signal processing controller [1180]: Intel Corporation Device [8086:a379] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:14.0 USB controller [0c03]: Intel Corporation Device [8086:a36d] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:201f]
Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Device [8086:a36f] (rev 10)
DeviceName: Onboard - Other
Subsystem: Intel Corporation Device [8086:7270]
00:15.0 Serial bus controller [0c80]: Intel Corporation Device [8086:a368] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Device [8086:a360] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:17.0 SATA controller [0106]: Intel Corporation Device [8086:a353] (rev 10)
DeviceName: Onboard - SATA
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
Kernel driver in use: ahci
Kernel modules: ahci
00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:a330] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.5 PCI bridge [0604]: Intel Corporation Device [8086:a335] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.6 PCI bridge [0604]: Intel Corporation Device [8086:a336] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:a30d] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a348] (rev 10)
DeviceName: Onboard - Sound
Subsystem: ASUSTeK Computer Inc. Device [1043:15ce]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:a323] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:a324] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8c] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
Kernel modules: nvidiafb, nouveau
02:00.0 Non-Volatile memory controller [0108]: Device [1c5c:1327]
Subsystem: Device [1c5c:0000]
Kernel driver in use: nvme
Kernel modules: nvme
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]
Subsystem: AzureWave Device [1a3b:3041]
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:208f]
Kernel driver in use: r8169
Kernel modules: r8169
root@jingmian-TUF:~# lshw -numeric -class video
*-display UNCLAIMED
description: 3D controller
product: NVIDIA Corporation [10DE:1C8C]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:5000(size=128) memory:a4000000-a407ffff
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation [8086:3E9B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: memory:a2000000-a2ffffff memory:80000000-8fffffff ioport:6000(size=64) memory:c0000-dffff
root@jingmian-TUF:~# uname -a
Linux jingmian-TUF 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@jingmian-TUF:~# sudo lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:3ec4] (rev 07)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 07)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e9b]
DeviceName: Onboard - Video
Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 07)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Skylake Processor Thermal Subsystem [1043:10c1]
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device
00:08.0 System peripheral [0880]: Intel Corporation Sky Lake Gaussian Mixture Model [8086:1911]
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Skylake Gaussian Mixture Model [1043:10c1]
00:12.0 Signal processing controller [1180]: Intel Corporation Device [8086:a379] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:14.0 USB controller [0c03]: Intel Corporation Device [8086:a36d] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:201f]
Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Device [8086:a36f] (rev 10)
DeviceName: Onboard - Other
Subsystem: Intel Corporation Device [8086:7270]
00:15.0 Serial bus controller [0c80]: Intel Corporation Device [8086:a368] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Device [8086:a360] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:17.0 SATA controller [0106]: Intel Corporation Device [8086:a353] (rev 10)
DeviceName: Onboard - SATA
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
Kernel driver in use: ahci
Kernel modules: ahci
00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:a330] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.5 PCI bridge [0604]: Intel Corporation Device [8086:a335] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.6 PCI bridge [0604]: Intel Corporation Device [8086:a336] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:a30d] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a348] (rev 10)
DeviceName: Onboard - Sound
Subsystem: ASUSTeK Computer Inc. Device [1043:15ce]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:a323] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:a324] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8c] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
Kernel modules: nvidiafb, nouveau
02:00.0 Non-Volatile memory controller [0108]: Device [1c5c:1327]
Subsystem: Device [1c5c:0000]
Kernel driver in use: nvme
Kernel modules: nvme
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]
Subsystem: AzureWave Device [1a3b:3041]
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:208f]
Kernel driver in use: r8169
Kernel modules: r8169


root@jingmian-TUF:~# sudo lshw -numeric -class video
*-display UNCLAIMED
description: 3D controller
product: NVIDIA Corporation [10DE:1C8C]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:5000(size=128) memory:a4000000-a407ffff
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation [8086:3E9B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: memory:a2000000-a2ffffff memory:80000000-8fffffff ioport:6000(size=64) memory:c0000-dffff



root@jingmian-TUF:~# sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
vendor : NVIDIA Corporation
modalias : pci:v000010DEd00001C8Csv00001043sd000018FEbc03sc02i00
driver : xserver-xorg-video-nouveau - distro free builtin
driver : nvidia-396 - third-party non-free recommended
driver : nvidia-384 - distro non-free


root@jingmian-TUF:~# sudo efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...n................
Boot0001* ubuntu HD(1,GPT,8f2df4a0-d97a-495a-8193-529fae74e68b,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
附件
2018-06-14 18-50-54屏幕截图.png
poloshiao
论坛版主
帖子: 18182
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1925 次

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#2

帖子 poloshiao » 2018-06-14 19:13

root@jingmian-TUF:~#
1. Ubuntu 避免使用 root 登入 或 切換成 root 身份 特別是 執行 圖形程式

2. 請用 安裝 Ubuntu 時 創建的 使用者帳號 登入 再重新執行指令看看
sudo lshw -numeric -class video
*-display UNCLAIMED
description: 3D controller
product: NVIDIA Corporation [10DE:1C8C]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:5000(size=128) memory:a4000000-a407ffff
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation [8086:3E9B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
2. 雙顯卡 都沒有合適的驅動 作用中

3. 把下面指令 複製 貼進終端機 執行
3-1. echo $DESKTOP_SESSION
3-2. echo $XDG_SESSION_TYPE
把指令及結果直接複製貼上來
cs5117155
帖子: 25
注册时间: 2018-06-09 17:47
送出感谢: 2 次
接收感谢: 0

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#3

帖子 cs5117155 » 2018-06-14 21:09

代码: 全选

jingmian@jingmian-TUF:~$ uname -a
Linux jingmian-TUF 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

jingmian@jingmian-TUF:~$ sudo lspci -knn
[sudo] jingmian 的密码: 
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:3ec4] (rev 07)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 07)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e9b]
	DeviceName: Onboard - Video
	Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
	Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 07)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Skylake Processor Thermal Subsystem [1043:10c1]
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device
00:08.0 System peripheral [0880]: Intel Corporation Sky Lake Gaussian Mixture Model [8086:1911]
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Skylake Gaussian Mixture Model [1043:10c1]
00:12.0 Signal processing controller [1180]: Intel Corporation Device [8086:a379] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:14.0 USB controller [0c03]: Intel Corporation Device [8086:a36d] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:201f]
	Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Device [8086:a36f] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Intel Corporation Device [8086:7270]
00:15.0 Serial bus controller [0c80]: Intel Corporation Device [8086:a368] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Device [8086:a360] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:17.0 SATA controller [0106]: Intel Corporation Device [8086:a353] (rev 10)
	DeviceName: Onboard - SATA
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:a330] (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.5 PCI bridge [0604]: Intel Corporation Device [8086:a335] (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.6 PCI bridge [0604]: Intel Corporation Device [8086:a336] (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:a30d] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a348] (rev 10)
	DeviceName: Onboard - Sound
	Subsystem: ASUSTeK Computer Inc. Device [1043:15ce]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:a323] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
	Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:a324] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8c] (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
	Kernel modules: nvidiafb, nouveau
02:00.0 Non-Volatile memory controller [0108]: Device [1c5c:1327]
	Subsystem: Device [1c5c:0000]
	Kernel driver in use: nvme
	Kernel modules: nvme
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]
	Subsystem: AzureWave Device [1a3b:3041]
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:208f]
	Kernel driver in use: r8169
	Kernel modules: r8169

jingmian@jingmian-TUF:~$ sudo lshw -numeric -class video
  *-display UNCLAIMED     
       description: 3D controller
       product: NVIDIA Corporation [10DE:1C8C]
       vendor: NVIDIA Corporation [10DE]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:5000(size=128) memory:a4000000-a407ffff
  *-display UNCLAIMED
       description: VGA compatible controller
       product: Intel Corporation [8086:3E9B]
       vendor: Intel Corporation [8086]
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:a2000000-a2ffffff memory:80000000-8fffffff ioport:6000(size=64) memory:c0000-dffff

jingmian@jingmian-TUF:~$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C8Csv00001043sd000018FEbc03sc02i00
vendor   : NVIDIA Corporation
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-384 - distro non-free
driver   : nvidia-396 - third-party non-free recommended

jingmian@jingmian-TUF:~$ sudo efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000
Boot0000* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...n................
Boot0001* ubuntu	HD(1,GPT,8f2df4a0-d97a-495a-8193-529fae74e68b,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)


jingmian@jingmian-TUF:~$ echo $DESKTOP_SESSION
ubuntu

jingmian@jingmian-TUF:~$ echo $XDG_SESSION_TYPE
x11
poloshiao
论坛版主
帖子: 18182
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1925 次

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#4

帖子 poloshiao » 2018-06-16 13:37

sudo lshw -numeric -class video
*-display UNCLAIMED
description: 3D controller
product: NVIDIA Corporation [10DE:1C8C]
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation [8086:3E9B]
1. 雙顯卡
1-1. nvidia 必須使用閉源驅動 (Ubuntu 的 kernel 支援)
sudo efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...n................
Boot0001* ubuntu HD(1,GPT,8f2df4a0-d97a-495a-8193-529fae74e68b,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
2. 你是在 UEFI Sercure boot enabled 情況下 開機
2-1. 這種情況下 nvidia 閉源驅動 需要通過 認證
2-2. 如果你不確定 你的 nvidia 閉源驅動 是否能夠或已經通過認證 建議 新手 試試 把 Secure Boot 改為 disabled 並且將 SHIMX64.EFI) 改為 GRUBX64.EFI
重新開機 安裝 nvidia 閉源驅動 看看
2-2-1. 參閱
viewtopic.php?p=3205887#p3205887

3. 如果你的電腦在 UEFI 找不到 Sercure boot disabled 選項 請再貼文
cs5117155
帖子: 25
注册时间: 2018-06-09 17:47
送出感谢: 2 次
接收感谢: 0

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#5

帖子 cs5117155 » 2018-06-16 18:16

代码: 全选

jingmian@jingmian-TUF:~$ sudo efibootmgr -v
[sudo] jingmian 的密码: 
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...n................
Boot0001  ubuntu	HD(1,GPT,e768ac76-2fb3-44ba-b103-a418dea25609,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0002* \etf\guri.bim	HD(1,GPT,e768ac76-2fb3-44ba-b103-a418dea25609,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)
jingmian@jingmian-TUF:~$ 

jingmian@jingmian-TUF:~$ nvidia-smi
Sat Jun 16 18:04:14 2018       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130                Driver Version: 384.130                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   51C    P0    N/A /  N/A |      0MiB /  4041MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
BIOS已经设置UEFI Sercure boot disabled。
我已经重装了系统,然后进入crtl+alt+f1,后直接

代码: 全选

jingmian@jingmian-TUF:~$ sudo ./NVIDIA-Linux-x86_64-384.130-no-compat32.run -no-x-check -no-nouveau-check -no-opengl-files
没有安装cuda和cudnn,这两个都是必要的吗

图片
poloshiao
论坛版主
帖子: 18182
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1925 次

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#6

帖子 poloshiao » 2018-06-16 20:45

01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8c] (rev a1)
Kernel modules: nvidiafb, nouveau
1. nvidia 顯卡
1-1. http://pci-ids.ucw.cz/v2.2/pci.ids
10de NVIDIA Corporation
1c8c GP107M [GeForce GTX 1050 Ti Mobile]
1-2. https://en.wikipedia.org/wiki/GeForce_1 ... _notebooks
GeForce 10 (10xx) series for notebooks
GeForce GTX 1050 Ti (Notebook)
1-3. 可以使用驅動 nvidiafb, nouveau
注意 這裡沒有閉源驅動 nvidia
待進一步修正
nvidia-smi
2. GeForce GTX 1050 Ti (Notebook) 是否適用指令 nvidia-smi ? 須待進一步確認
2-1. http://manpages.ubuntu.com/manpages/pre ... smi.1.html
nvidia-smi - NVIDIA System Management Interface program
NVSMI provides monitoring information for each of NVIDIA's Tesla
devices and each of its high-end Fermi-based and Kepler-based Quadro
devices. It provides very limited information for other types of NVIDIA
devices.
2-2. http://forum.ubuntu.com.cn/viewtopic.ph ... 5#p3201683
没有安装cuda和cudnn,这两个都是必要的吗
3. 明天下午 待補
sudo ./NVIDIA-Linux-x86_64-384.130-no-compat32.run -no-x-check -no-nouveau-check -no-opengl-files
4. GeForce GTX 1050 Ti (Notebook) 在 384.130 版本的閉源驅動 nvidia 支援名單內
http://www.nvidia.com/Download/driverRe ... 2524/en-us
Supported products
GeForce 10 Series (Notebooks):
GeForce GTX 1050 Ti
4-1. 安裝 NVIDIA-Linux-x86_64-384.130-no-compat32.run 以前 需要先
4-1-1. 把開源驅動 例如 nouveau 列入 載入黑名單
4-1-2. 如果曾經安裝任何閉源驅動 需要先移除
4-1-3. 進一步參閱
http://us.download.nvidia.com/XFree86/L ... index.html
NVIDIA Accelerated Linux Graphics Driver README and Installation Guide
cs5117155
帖子: 25
注册时间: 2018-06-09 17:47
送出感谢: 2 次
接收感谢: 0

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#7

帖子 cs5117155 » 2018-06-17 15:04

安裝任何閉源驅動 需要先移除

代码: 全选

sudo apt-get remove --purge nvidia*

已经将nouveau 列入 載入黑名單

代码: 全选

jingmian@jingmian-TUF:~$ cat  /etc/modprobe.d/blacklist.conf
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac
blacklist nouveau
options nouveau modeset=0
已经查看nouveau是否已经关闭

代码: 全选

jingmian@jingmian-TUF:~$  lsmod | grep nouveau
jingmian@jingmian-TUF:~$ 
ctrl+alt+f1进去名命令行

代码: 全选

sudo service lightdm stop
sudo sh ./NVIDIA-Linux-64-384.run -no-x-check -no-nouveau-check -no-opengl-files
如果我缺少-no-x-check -no-nouveau-check -no-opengl-files这任意一个参数都会循环登录界面,即输入密码就会返登录状态

安装nvidia-settings和nvidia-prime,显示安装成功,但不能指定nvidia-settings-384安装,显示

代码: 全选

jingmian@jingmian-TUF:~$ sudo apt-get install nvidia-settings-384
[sudo] jingmian 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
E: 无法定位软件包 nvidia-settings-384

代码: 全选

sudo apt-get install nvidia-settings
sudo apt-get install nvidia-prime

代码: 全选

jingmian@jingmian-TUF:~$ sudo apt-get install nvidia-settings
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
nvidia-settings 已经是最新版 (361.42-0ubuntu1)。
下列软件包是自动安装的并且现在不需要了:
  lib32gcc1 libc6-i386
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
jingmian@jingmian-TUF:~$ sudo apt-get install nvidia-prime
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
nvidia-prime 已经是最新版 (0.8.2)。
下列软件包是自动安装的并且现在不需要了:
  lib32gcc1 libc6-i386
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
nvidia-settings版本只能给我安装361的,

通过glxinfo查看是否安装驱动,已经显示安装成功

代码: 全选

jingmian@jingmian-TUF:~$  lsmod | grep nouveau
jingmian@jingmian-TUF:~$ glxinfo |grep rendering
direct rendering: Yes
jingmian@jingmian-TUF:~$ 
jingmian@jingmian-TUF:~$ glxinfo |grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 5.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.2.8
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.2.8
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
jingmian@jingmian-TUF:~$ 

最后我通过命令切换nvidia失败了

代码: 全选

jingmian@jingmian-TUF:~$ sudo prime-select nvidia
Info: the current GL alternatives in use are: ['mesa', None]
Info: the current EGL alternatives in use are: ['mesa-egl', None]
Error: the installed packages do not support PRIME
Error: nvidia mode can't be enabled
jingmian@jingmian-TUF:~$ sudo prime-select query
unknown

以上就是我安装过程,
poloshiao
论坛版主
帖子: 18182
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1925 次

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#8

帖子 poloshiao » 2018-06-17 17:47

sudo apt-get install nvidia-settings-384
E: 无法定位软件包 nvidia-settings-384
sudo apt-get install nvidia-settings
nvidia-settings 已经是最新版 (361.42-0ubuntu1)。
1. Ubuntu 16.06 只有 nvidia-settings 沒有 nvidia-settings-384
https://packages.ubuntu.com/search?suit ... a-settings
Package nvidia-settings
1-1. nvidia-settings-3xx 在 Ubuntu 14.04 才有
https://packages.ubuntu.com/search?suit ... a-settings
sudo service lightdm stop
2. 要切換到 tty1
在 Ubuntu 16.04 應該使用
sudo systemctl isolate multi-user.target
2-1. 要重新切換到 tty7
在 Ubuntu 16.04 應該使用
sudo systemctl isolate graphical.target
sudo ./NVIDIA-Linux-x86_64-384.130-no-compat32.run -no-x-check -no-nouveau-check -no-opengl-files
sudo sh ./NVIDIA-Linux-64-384.run -no-x-check -no-nouveau-check -no-opengl-files
3. http://us.download.nvidia.com/XFree86/L ... eInst6624e
Starting the Installer
cd yourdirectory
sudo sh ./NVIDIA-Linux-x86_64-384.130.run
3-1. --no-opengl-files 參數
http://us.download.nvidia.com/XFree86/L ... timus.html
3-2. 還找不到 --no-x-check --no-nouveau-check 參數
3-3. 請提供你使用這些參數的連結
1. nvidia 顯卡
1-1. http://pci-ids.ucw.cz/v2.2/pci.ids
10de NVIDIA Corporation
1c8c GP107M [GeForce GTX 1050 Ti Mobile]
4. GeForce GTX 1050 Ti Mobile 具備 Optimus 功能
https://www.geforce.com/hardware/techno ... orted-gpus
Optimus
GeForce GTX 10-Series Notebooks
GeForce GTX 1050 Ti Mobile
1. 具備 Optimus 功能 雙顯卡
1-1. nvidia 必須使用閉源驅動 (Ubuntu 的 kernel 支援)
sudo ubuntu-drivers devices
...
driver : nvidia-396 - third-party non-free recommended
driver : nvidia-384 - distro non-free
4-1. 建議 優先安裝 Ubuntu 套件庫提供的閉源驅動 nvidia-396 退而求其次 再試試 nvidia-384
4-2. 你上面使用
sudo sh ./NVIDIA-Linux-x86_64-384.130.run
安裝的閉源驅動 要先移除
4-2-1. 移除方法 參見
http://us.download.nvidia.com/XFree86/L ... resOfd7638
nvidia-installer options
--uninstall
没有安装cuda和cudnn,这两个都是必要的吗
4-3. https://packages.ubuntu.com/xenial/nvidia-384
Package: nvidia-384 (384.130-0ubuntu0.16.04.1)
安裝套件 nvidia-384 時
預設會同時安裝 depends 及 recommends 套件
包含
libgl1
virtual package provided by libgl1-mesa-glx
libcuda1-384
nvidia-opencl-icd-384
nvidia-prime (>= 0.5)
nvidia-settings (>= 331.20)

5. 安裝妥適後 重新開機
把下面指令 複製 貼進終端機 執行
5-1. nvidia-settings --glxinfo | grep "OpenGL version string"
5-2. sudo lshw -numeric -class video
5-3. sudo prime-select query
把指令及結果直接 選取/複製 貼上來

6. 進階參閱
6-1. https://help.ubuntu.com/community/Binar ... wto/Nvidia
6-2. http://us.download.nvidia.com/XFree86/L ... index.html

7. PPA : 較新的閉源驅動
7-1. http://www.webupd8.org/2016/06/how-to-i ... rs-in.html
7-2. https://launchpad.net/~graphics-drivers ... ubuntu/ppa
cs5117155
帖子: 25
注册时间: 2018-06-09 17:47
送出感谢: 2 次
接收感谢: 0

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#9

帖子 cs5117155 » 2018-06-18 11:27

今天我又重装16.04.4的LTS版本

代码: 全选

sudo apt-get update

确保我安装前没有安装过nvidia,这时我不需要使用4-2-1的卸载方法nvidia-install options --uninstall吧?因为我还无运行过./NVIDIA-Linux-x86_64.384.130.run

代码: 全选

jingmian@jingmian-TUF:~$ sudo apt-get remove --purge nvidia*
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
注意,根据Glob 'nvidia*' 选中了 'nvidia-325-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-346-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-driver-binary'
注意,根据Glob 'nvidia*' 选中了 'nvidia-331-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-304-updates-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-384-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-346-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-340-updates-uvm'
注意,根据Glob 'nvidia*' 选中了 'nvidia-331-updates-uvm'
注意,根据Glob 'nvidia*' 选中了 'nvidia-glx'
注意,根据Glob 'nvidia*' 选中了 'nvidia-cg-toolkit'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-340-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia'
注意,根据Glob 'nvidia*' 选中了 'nvidia-driver'
注意,根据Glob 'nvidia*' 选中了 'nvidia-modprobe'
注意,根据Glob 'nvidia*' 选中了 'nvidia-texture-tools'
注意,根据Glob 'nvidia*' 选中了 'nvidia-legacy-340xx-vdpau-driver'
注意,根据Glob 'nvidia*' 选中了 'nvidia-349-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-kernel-686-pae'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-304-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-310-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-331-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-352-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-vdpau-driver'
注意,根据Glob 'nvidia*' 选中了 'nvidia-346-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-331-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-smi'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-361-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-313-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-334-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-331-uvm'
注意,根据Glob 'nvidia*' 选中了 'nvidia-prime'
注意,根据Glob 'nvidia*' 选中了 'nvidia-kernel-dkms'
注意,根据Glob 'nvidia*' 选中了 'nvidia-current-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-340-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-nsight'
注意,根据Glob 'nvidia*' 选中了 'nvidia-common'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-346-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-352-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-kernel-amd64'
注意,根据Glob 'nvidia*' 选中了 'nvidia-current-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-352-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-355-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-375-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-current'
注意,根据Glob 'nvidia*' 选中了 'nvidia-profiler'
注意,根据Glob 'nvidia*' 选中了 'nvidia-337-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-367-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-cuda-toolkit'
注意,根据Glob 'nvidia*' 选中了 'nvidia-340-updates-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-319-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-304-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-331-updates-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-visual-profiler'
注意,根据Glob 'nvidia*' 选中了 'nvidia-persistenced'
注意,根据Glob 'nvidia*' 选中了 'nvidia-current-updates-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-361-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-settings-binary'
注意,根据Glob 'nvidia*' 选中了 'nvidia-361-updates-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-304'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-331'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-340'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-346'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-352'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-361'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-367'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-375'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-384'
注意,根据Glob 'nvidia*' 选中了 'nvidia-kernel-486'
注意,根据Glob 'nvidia*' 选中了 'nvidia-352-updates-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-331-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-352-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-304-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-340-uvm'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-304-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-cuda-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-cuda-doc'
注意,根据Glob 'nvidia*' 选中了 'nvidia-340-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-361-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-cg-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-cg-doc'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-340-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-libopencl1-361-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-304'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-331'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-340'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-346'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-352'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-361'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-367'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-375'
注意,根据Glob 'nvidia*' 选中了 'nvidia-cuda-gdb'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-304'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd-384'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-310'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-313'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-319'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-325'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-331'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-334'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-337'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-340'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-343'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-346'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-349'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-352'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-355'
注意,根据Glob 'nvidia*' 选中了 'nvidia-experimental-304-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-343-updates'
注意,根据Glob 'nvidia*' 选中了 'nvidia-304'
注意,根据Glob 'nvidia*' 选中了 'nvidia-310'
注意,根据Glob 'nvidia*' 选中了 'nvidia-313'
注意,根据Glob 'nvidia*' 选中了 'nvidia-319'
注意,根据Glob 'nvidia*' 选中了 'nvidia-325'
注意,根据Glob 'nvidia*' 选中了 'nvidia-331'
注意,根据Glob 'nvidia*' 选中了 'nvidia-334'
注意,根据Glob 'nvidia*' 选中了 'nvidia-337'
注意,根据Glob 'nvidia*' 选中了 'nvidia-340'
注意,根据Glob 'nvidia*' 选中了 'nvidia-343'
注意,根据Glob 'nvidia*' 选中了 'nvidia-346'
注意,根据Glob 'nvidia*' 选中了 'nvidia-349'
注意,根据Glob 'nvidia*' 选中了 'nvidia-352'
注意,根据Glob 'nvidia*' 选中了 'nvidia-355'
注意,根据Glob 'nvidia*' 选中了 'nvidia-361'
注意,根据Glob 'nvidia*' 选中了 'nvidia-367'
注意,根据Glob 'nvidia*' 选中了 'nvidia-375'
注意,根据Glob 'nvidia*' 选中了 'nvidia-384'
注意,根据Glob 'nvidia*' 选中了 'nvidia-346-updates-dev'
注意,根据Glob 'nvidia*' 选中了 'nvidia-settings'
注意,根据Glob 'nvidia*' 选中了 'nvidia-opencl-icd'
注意,选中 'nvidia-settings' 而非 'nvidia-settings-binary'
软件包 nvidia-libopencl1-dev 未安装,所以不会被卸载
软件包 nvidia-libopencl1 未安装,所以不会被卸载
软件包 nvidia-vdpau-driver 未安装,所以不会被卸载
软件包 nvidia-legacy-340xx-vdpau-driver 未安装,所以不会被卸载
软件包 nvidia-driver 未安装,所以不会被卸载
软件包 nvidia-glx 未安装,所以不会被卸载
软件包 nvidia-kernel-dkms 未安装,所以不会被卸载
软件包 nvidia-kernel-amd64 未安装,所以不会被卸载
软件包 nvidia-kernel-686-pae 未安装,所以不会被卸载
软件包 nvidia-kernel-486 未安装,所以不会被卸载
软件包 nvidia 未安装,所以不会被卸载
软件包 nvidia-310 未安装,所以不会被卸载
软件包 nvidia-310-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-310 未安装,所以不会被卸载
软件包 nvidia-313 未安装,所以不会被卸载
软件包 nvidia-313-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-313 未安装,所以不会被卸载
软件包 nvidia-319 未安装,所以不会被卸载
软件包 nvidia-319-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-319 未安装,所以不会被卸载
软件包 nvidia-325 未安装,所以不会被卸载
软件包 nvidia-325-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-325 未安装,所以不会被卸载
软件包 nvidia-experimental-331 未安装,所以不会被卸载
软件包 nvidia-334 未安装,所以不会被卸载
软件包 nvidia-334-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-334 未安装,所以不会被卸载
软件包 nvidia-337 未安装,所以不会被卸载
软件包 nvidia-337-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-337 未安装,所以不会被卸载
软件包 nvidia-experimental-340 未安装,所以不会被卸载
软件包 nvidia-343 未安装,所以不会被卸载
软件包 nvidia-343-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-343 未安装,所以不会被卸载
软件包 nvidia-experimental-346 未安装,所以不会被卸载
软件包 nvidia-349 未安装,所以不会被卸载
软件包 nvidia-349-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-349 未安装,所以不会被卸载
软件包 nvidia-experimental-352 未安装,所以不会被卸载
软件包 nvidia-355 未安装,所以不会被卸载
软件包 nvidia-355-updates 未安装,所以不会被卸载
软件包 nvidia-experimental-355 未安装,所以不会被卸载
注意,选中 'nvidia-384' 而非 'nvidia-smi'
注意,选中 'libnvtt-bin' 而非 'nvidia-texture-tools'
软件包 nvidia-prime 未安装,所以不会被卸载
软件包 nvidia-settings 未安装,所以不会被卸载
软件包 nvidia-340-updates-uvm 未安装,所以不会被卸载
软件包 nvidia-346 未安装,所以不会被卸载
软件包 nvidia-346-dev 未安装,所以不会被卸载
软件包 nvidia-346-updates 未安装,所以不会被卸载
软件包 nvidia-346-updates-dev 未安装,所以不会被卸载
软件包 nvidia-352 未安装,所以不会被卸载
软件包 nvidia-352-dev 未安装,所以不会被卸载
软件包 nvidia-352-updates 未安装,所以不会被卸载
软件包 nvidia-352-updates-dev 未安装,所以不会被卸载
软件包 nvidia-361-updates 未安装,所以不会被卸载
软件包 nvidia-361-updates-dev 未安装,所以不会被卸载
软件包 nvidia-current-updates 未安装,所以不会被卸载
软件包 nvidia-current-updates-dev 未安装,所以不会被卸载
软件包 nvidia-experimental-304 未安装,所以不会被卸载
软件包 nvidia-experimental-304-dev 未安装,所以不会被卸载
软件包 nvidia-cg-dev 未安装,所以不会被卸载
软件包 nvidia-cg-doc 未安装,所以不会被卸载
软件包 nvidia-cg-toolkit 未安装,所以不会被卸载
软件包 nvidia-cuda-dev 未安装,所以不会被卸载
软件包 nvidia-cuda-doc 未安装,所以不会被卸载
软件包 nvidia-cuda-gdb 未安装,所以不会被卸载
软件包 nvidia-cuda-toolkit 未安装,所以不会被卸载
软件包 nvidia-libopencl1-346 未安装,所以不会被卸载
软件包 nvidia-libopencl1-346-updates 未安装,所以不会被卸载
软件包 nvidia-libopencl1-352 未安装,所以不会被卸载
软件包 nvidia-libopencl1-352-updates 未安装,所以不会被卸载
软件包 nvidia-libopencl1-361-updates 未安装,所以不会被卸载
软件包 nvidia-modprobe 未安装,所以不会被卸载
软件包 nvidia-nsight 未安装,所以不会被卸载
软件包 nvidia-opencl-dev 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-346 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-346-updates 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-352 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-352-updates 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-361-updates 未安装,所以不会被卸载
软件包 nvidia-persistenced 未安装,所以不会被卸载
软件包 nvidia-profiler 未安装,所以不会被卸载
软件包 nvidia-visual-profiler 未安装,所以不会被卸载
软件包 nvidia-304 未安装,所以不会被卸载
软件包 nvidia-304-dev 未安装,所以不会被卸载
软件包 nvidia-304-updates 未安装,所以不会被卸载
软件包 nvidia-304-updates-dev 未安装,所以不会被卸载
软件包 nvidia-331 未安装,所以不会被卸载
软件包 nvidia-331-dev 未安装,所以不会被卸载
软件包 nvidia-331-updates 未安装,所以不会被卸载
软件包 nvidia-331-updates-dev 未安装,所以不会被卸载
软件包 nvidia-331-updates-uvm 未安装,所以不会被卸载
软件包 nvidia-331-uvm 未安装,所以不会被卸载
软件包 nvidia-340 未安装,所以不会被卸载
软件包 nvidia-340-dev 未安装,所以不会被卸载
软件包 nvidia-340-updates 未安装,所以不会被卸载
软件包 nvidia-340-updates-dev 未安装,所以不会被卸载
软件包 nvidia-340-uvm 未安装,所以不会被卸载
软件包 nvidia-361 未安装,所以不会被卸载
软件包 nvidia-361-dev 未安装,所以不会被卸载
软件包 nvidia-367 未安装,所以不会被卸载
软件包 nvidia-367-dev 未安装,所以不会被卸载
软件包 nvidia-375 未安装,所以不会被卸载
软件包 nvidia-375-dev 未安装,所以不会被卸载
软件包 nvidia-384 未安装,所以不会被卸载
软件包 nvidia-384-dev 未安装,所以不会被卸载
软件包 nvidia-current 未安装,所以不会被卸载
软件包 nvidia-current-dev 未安装,所以不会被卸载
软件包 nvidia-libopencl1-367 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-304 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-304-updates 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-340 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-361 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-367 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-384 未安装,所以不会被卸载
软件包 nvidia-common 未安装,所以不会被卸载
软件包 nvidia-libopencl1-304 未安装,所以不会被卸载
软件包 nvidia-libopencl1-304-updates 未安装,所以不会被卸载
软件包 nvidia-libopencl1-331 未安装,所以不会被卸载
软件包 nvidia-libopencl1-331-updates 未安装,所以不会被卸载
软件包 nvidia-libopencl1-340 未安装,所以不会被卸载
软件包 nvidia-libopencl1-340-updates 未安装,所以不会被卸载
软件包 nvidia-libopencl1-361 未安装,所以不会被卸载
软件包 nvidia-libopencl1-375 未安装,所以不会被卸载
软件包 nvidia-libopencl1-384 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-331 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-331-updates 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-340-updates 未安装,所以不会被卸载
软件包 nvidia-opencl-icd-375 未安装,所以不会被卸载
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 191 个软件包未被升级。
jingmian@jingmian-TUF:~$ sudo apt-get upgrade
这里升级软件包省略一下

jingmian@jingmian-TUF:~$ sudo add-apt-repository ppa:graphics-drivers/ppa
 Fresh drivers from upstream, currently shipping Nvidia.

## Current Status

Current short-lived branch release: `nvidia-396` (396.24)
Dropped support for Fermi series (https://nvidia.custhelp.com/app/answers/detail/a_id/4656)

Current long-lived branch release: `nvidia-390` (390.48)
Old long-lived branch release: `nvidia-384` (384.130)

For G8x, G9x and GT2xx GPUs use `nvidia-340` (340.106)
For NV4x and G7x GPUs use `nvidia-304` (304.137) End-Of-Life!

Support timeframes for Unix legacy GPU releases:
https://nvidia.custhelp.com/app/answers/detail/a_id/3142

## What we're working on right now:

- Normal driver updates
- Help Wanted: Mesa Updates for Intel/AMD users, ping us if you want to help do this work, we're shorthanded.

## WARNINGS:

This PPA is currently in testing, you should be experienced with packaging before you dive in here:

Volunteers welcome! See also: https://github.com/mamarley/nvidia-graphics-drivers/

### How you can help:

## Install PTS and benchmark your gear:

    sudo apt-get install phoronix-test-suite

Run the benchmark:

    phoronix-test-suite default-benchmark openarena xonotic tesseract gputest unigine-valley

and then say yes when it asks you to submit your results to openbechmarking.org. Then grab a cup of coffee, it takes a bit for the benchmarks to run. Depending on the version of Ubuntu you're using it might preferable for you to grabs PTS from upstream directly: http://www.phoronix-test-suite.com/?k=downloads

## Share your results with the community:

Post a link to your results (or any other feedback to): https://launchpad.net/~graphics-drivers-testers

Remember to rerun and resubmit the benchmarks after driver upgrades, this will allow us to gather a bunch of data on performance that we can share with everybody.

If you run into old documentation referring to other PPAs, you can help us by consolidating references to this PPA.

If someone wants to go ahead and start prototyping on `software-properties-gtk` on what the GUI should look like, please start hacking!

## Help us Help You!

We use the donation funds to get the developers hardware to test and upload these drivers, please consider donating to the "community" slider on the donation page if you're loving this PPA:

http://www.ubuntu.com/download/desktop/contribute
 更多信息: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
按回车继续或者 Ctrl+c 取消添加

gpg: 钥匙环‘/tmp/tmpqbn2c03b/secring.gpg’已建立
gpg: 钥匙环‘/tmp/tmpqbn2c03b/pubring.gpg’已建立
gpg: 下载密钥‘1118213C’,从 hkp 服务器 keyserver.ubuntu.com
gpg: /tmp/tmpqbn2c03b/trustdb.gpg:建立了信任度数据库
gpg: 密钥 1118213C:公钥“Launchpad PPA for Graphics Drivers Team”已导入
gpg: 没有找到任何绝对信任的密钥
gpg: 合计被处理的数量:1
gpg:               已导入:1  (RSA: 1)
OK

jingmian@jingmian-TUF:~$ sudo vim /etc/modprobe.d/blacklist.conf
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac
blacklist nouveau
options nouveau modeset=0

更新系统

代码: 全选

jingmian@jingmian-TUF:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.13.0-36-generic
jingmian@jingmian-TUF:~$ reboot;
重启后查看nouveau是否禁用成功
jingmian@jingmian-TUF:~$ lsmod | grep nouveau
jingmian@jingmian-TUF:~$

代码: 全选

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
搜索开源nvidia

代码: 全选

jingmian@jingmian-TUF:~$ apt-cache search nvidia
bbswitch-dkms - Interface for toggling the power on NVIDIA Optimus video cards
dmraid - Device-Mapper Software RAID support tool
libvdpau-dev - Video Decode and Presentation API for Unix (development files)
libvdpau-doc - Video Decode and Presentation API for Unix (documentation)
libvdpau1 - Video Decode and Presentation API for Unix (libraries)
libvdpau1-dbg - Video Decode and Presentation API for Unix (debug symbols)
libxnvctrl-dev - NV-CONTROL X extension (development files)
libxnvctrl0 - NV-CONTROL X extension (runtime library)
nvidia-prime - Tools to enable NVIDIA's Prime
nvidia-settings - Tool for configuring the NVIDIA graphics driver
ubuntu-drivers-common - Detect and install additional Ubuntu driver packages
vdpau-driver-all - Video Decode and Presentation API for Unix (driver metapackage)
xserver-xorg-video-nouveau - X.Org X server -- Nouveau display driver
xserver-xorg-video-nouveau-dbg - X.Org X server -- Nouveau display driver (debug symbols)
nvidia-304-dev - NVDIA 二进制 Xorg 驱动程序开发文件
nvidia-340-dev - NVDIA 二进制 Xorg 驱动程序开发文件
libcuda1-304 - NVIDIA CUDA runtime library
libcuda1-340 - NVIDIA CUDA runtime library
nvidia-331 - Transitional package for nvidia-331
nvidia-331-dev - Transitional package for nvidia-340-dev
nvidia-331-updates - Transitional package for nvidia-340
nvidia-331-updates-dev - Transitional package for nvidia-340-dev
nvidia-331-updates-uvm - Transitional package for nvidia-340
nvidia-331-uvm - Transitional package for nvidia-340
nvidia-340-updates - Transitional package for nvidia-340
nvidia-340-updates-dev - Transitional package for nvidia-340-dev
nvidia-340-updates-uvm - Transitional package for nvidia-340-updates
nvidia-340-uvm - Transitional package for nvidia-340
nvidia-346 - Transitional package for nvidia-346
nvidia-346-dev - Transitional package for nvidia-352-dev
nvidia-346-updates - Transitional package for nvidia-346-updates
nvidia-346-updates-dev - Transitional package for nvidia-352-updates-dev
nvidia-352 - Transitional package for nvidia-361
nvidia-352-dev - Transitional package for nvidia-361-dev
nvidia-352-updates - Transitional package for nvidia-361
nvidia-352-updates-dev - Transitional package for nvidia-361-dev
nvidia-361-updates - Transitional package for nvidia-361
nvidia-361-updates-dev - Transitional package for nvidia-361-dev
nvidia-current - Transitional package for nvidia-current
nvidia-current-dev - Transitional package for nvidia-current-dev
nvidia-current-updates - Transitional package for nvidia-current-updates
nvidia-current-updates-dev - Transitional package for nvidia-current-updates-dev
nvidia-experimental-304 - Transitional package for nvidia-experimental-304
nvidia-experimental-304-dev - Transitional package for nvidia-experimental-304-dev
nvidia-opencl-icd-304 - NVIDIA OpenCL ICD
nvidia-opencl-icd-340 - NVIDIA OpenCL ICD
conky-all - highly configurable system monitor (all features enabled)
conky-all-dbg - highly configurable system monitor (all features enabled - debug)
boinc-client-nvidia-cuda - metapackage for CUDA-savvy BOINC client and manager
bumblebee-dbg - NVIDIA Optimus support - debugging symbols
bumblebee-nvidia - NVIDIA Optimus support using the proprietary NVIDIA driver
cpufreqd - fully configurable daemon for dynamic frequency and voltage scaling
flashrom - Identify, read, write, erase, and verify BIOS/ROM/flash chips
gimp-normalmap - Normal map plugin for GIMP
hobbit-plugins - plugins for the Xymon network monitor
kubuntu-driver-manager - Driver Manager for Kubuntu
kubuntu-driver-manager-dbg - Driver Manager for Kubuntu -- debug symbols
libnvtt-bin - NVIDIA Texture Tools (Binaries)
libnvtt-dev - NVIDIA Texture Tools (Header)
libnvtt2 - NVIDIA Texture Tools
mate-optimus - MATE Desktop applet for controlling NVIDIA Optimus graphics cards
mate-sensors-applet - Display readings from hardware sensors in your MATE panel
mate-sensors-applet-nvidia - Display readings from hardware sensors in your MATE panel (NVIDIA sensors)
mate-sensors-applet-nvidia-dbg - Display readings from hardware sensors in your MATE panel (NVIDIA, dbg package)
nvidia-common - transitional package for ubuntu-drivers-common
nvtv - tool to control TV chips on NVidia cards under Linux
primus - client-side GPU offloading for NVIDIA Optimus
psensor - display graphs for monitoring hardware temperature
psensor-server - Psensor server for monitoring hardware sensors remotely
pyrit - GPGPU-driven WPA/WPA2-PSK key cracker
pyrit-opencl - OpenCL extension module for Pyrit
sensors-applet - Display readings from hardware sensors in your Gnome panel
sysinfo - display computer and system information
trigger-rally-data - free 3D rally racing car game - data files
vdpauinfo - Video Decode and Presentation API for Unix (vdpauinfo utility)
libcg - Nvidia Cg core runtime library
libcggl - Nvidia Cg Opengl runtime library
libcublas7.5 - NVIDIA cuBLAS Library
libcudart7.5 - NVIDIA CUDA Runtime Library
libcufft7.5 - NVIDIA cuFFT Library
libcufftw7.5 - NVIDIA cuFFTW Library
libcuinj64-7.5 - NVIDIA CUINJ Library (64-bit)
libcupti-dev - NVIDIA CUDA Profiler Tools Interface development files
libcupti-doc - NVIDIA CUDA Profiler Tools Interface documentation
libcupti7.5 - NVIDIA CUDA Profiler Tools Interface runtime library
libcurand7.5 - NVIDIA cuRAND Library
libcusolver7.5 - NVIDIA cuSOLVER Library
libcusparse7.5 - NVIDIA cuSPARSE Library
libnppc7.5 - NVIDIA Performance Primitives core runtime library
libnppi7.5 - NVIDIA Performance Primitives for image processing runtime library
libnpps7.5 - NVIDIA Performance Primitives for signal processing runtime library
libnvblas7.5 - NVBLAS runtime library
libnvrtc7.5 - CUDA Runtime Compilation (NVIDIA NVRTC Library)
libnvtoolsext1 - NVIDIA Tools Extension Library
libnvvm3 - NVIDIA NVVM Library
nouveau-firmware - Firmware for nVidia graphics cards
nvidia-cg-dev - Cg Toolkit - GPU Shader Authoring Language (headers)
nvidia-cg-doc - Cg Toolkit - GPU Shader Authoring Language (documentation)
nvidia-cg-toolkit - Cg Toolkit - GPU Shader Authoring Language
nvidia-cuda-dev - NVIDIA CUDA development files
nvidia-cuda-doc - NVIDIA CUDA and OpenCL documentation
nvidia-cuda-gdb - NVIDIA CUDA Debugger (GDB)
nvidia-cuda-toolkit - NVIDIA CUDA development toolkit
nvidia-libopencl1-304 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-libopencl1-331 - Transitional package for nvidia-libopencl1-340
nvidia-libopencl1-331-updates - Transitional package for nvidia-libopencl1-340
nvidia-libopencl1-340 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-libopencl1-340-updates - Transitional package for nvidia-libopencl1-340
nvidia-libopencl1-346 - Transitional package for nvidia-libopencl1-352
nvidia-libopencl1-346-updates - Transitional package for nvidia-libopencl1-352-updates
nvidia-libopencl1-352 - Transitional package for nvidia-libopencl1-361
nvidia-libopencl1-352-updates - Transitional package for nvidia-libopencl1-361
nvidia-libopencl1-361-updates - Transitional package for nvidia-libopencl1-361
nvidia-modprobe - utility to load NVIDIA kernel modules and create device nodes
nvidia-nsight - NVIDIA Nsight Eclipse Edition
nvidia-opencl-dev - NVIDIA OpenCL development files
nvidia-opencl-icd-331 - Transitional package for nvidia-opencl-icd-340
nvidia-opencl-icd-331-updates - Transitional package for nvidia-opencl-icd-340
nvidia-opencl-icd-340-updates - Transitional package for nvidia-opencl-icd-340
nvidia-opencl-icd-346 - Transitional package for nvidia-opencl-icd-352
nvidia-opencl-icd-346-updates - Transitional package for nvidia-opencl-icd-352-updates
nvidia-opencl-icd-352 - Transitional package for nvidia-opencl-icd-361
nvidia-opencl-icd-352-updates - Transitional package for nvidia-opencl-icd-361
nvidia-opencl-icd-361-updates - Transitional package for nvidia-opencl-icd-361
nvidia-persistenced - daemon to maintain persistent software state in the NVIDIA driver
nvidia-profiler - NVIDIA Profiler for CUDA and OpenCL
nvidia-visual-profiler - NVIDIA Visual Profiler for CUDA and OpenCL
python-pycuda - Python module to access Nvidia‘s CUDA parallel computation API
python-pycuda-dbg - Python module to access Nvidia‘s CUDA API (debug extensions)
python-pycuda-doc - module to access Nvidia‘s CUDA computation API (documentation)
python3-pycuda - Python 3 module to access Nvidia‘s CUDA parallel computation API
python3-pycuda-dbg - Python 3 module to access Nvidia‘s CUDA API (debug extensions)
tegrarcm - Tool to upload payloads in Tegra SoC recovery mode
xserver-xorg-video-nouveau-hwe-16.04 - X.Org X server -- Nouveau display driver
xserver-xorg-video-nouveau-hwe-16.04-dbg - X.Org X server -- Nouveau display driver (debug symbols)
libcuda1-384 - NVIDIA CUDA runtime library
nvidia-304-updates - Transitional package for nvidia-304
nvidia-304-updates-dev - Transitional package for nvidia-304-dev
nvidia-361 - Transitional package for nvidia-367
nvidia-361-dev - Transitional package for nvidia-367-dev
nvidia-367 - Transitional package for nvidia-375
nvidia-367-dev - Transitional package for nvidia-375-dev
nvidia-375 - Transitional package for nvidia-384
nvidia-375-dev - Transitional package for nvidia-384-dev
nvidia-384 - NVIDIA binary driver - version 384.130
nvidia-384-dev - NVIDIA binary Xorg driver development files
nvidia-libopencl1-367 - Transitional package for nvidia-libopencl1-375
nvidia-opencl-icd-304-updates - Transitional package for nvidia-opencl-icd-304
nvidia-opencl-icd-361 - Transitional package for nvidia-opencl-icd-367
nvidia-opencl-icd-367 - Transitional package for nvidia-opencl-icd-375
nvidia-opencl-icd-384 - NVIDIA OpenCL ICD
nvidia-libopencl1-304-updates - Transitional package for nvidia-libopencl1-304
nvidia-libopencl1-361 - Transitional package for nvidia-libopencl1-367
nvidia-libopencl1-375 - Transitional package for nvidia-libopencl1-384
nvidia-libopencl1-384 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-opencl-icd-375 - Transitional package for nvidia-opencl-icd-384
bumblebee - NVIDIA Optimus support for Linux
nvidia-304 - NVIDIA legacy binary driver - version 304.137
nvidia-340 - NVIDIA binary driver - version 340.107
nvidia-387-dev - Transitional package for nvidia-390-dev
nvidia-387 - Transitional package for nvidia-390
nvidia-libopencl1-387 - Transitional package for nvidia-libopencl1-390
nvidia-opencl-icd-387 - Transitional package for nvidia-opencl-icd-390
libcuda1-390 - NVIDIA CUDA runtime library
nvidia-390-dev - NVIDIA binary Xorg driver development files
nvidia-390 - NVIDIA binary driver - version 390.67
nvidia-libopencl1-390 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-opencl-icd-390 - NVIDIA OpenCL ICD
libcuda1-396 - NVIDIA CUDA runtime library
nvidia-396-dev - NVIDIA binary Xorg driver development files
nvidia-396 - NVIDIA binary driver - version 396.24.02
nvidia-libopencl1-396 - NVIDIA OpenCL Driver and ICD Loader library
nvidia-opencl-icd-396 - NVIDIA OpenCL ICD
接着按照你的方法要切換到 tty1

代码: 全选

sudo systemctl isolate multi-user.target
这时屏幕会跳进一个黑屏报错
/dev/nvme0n1pe:clean,199213/7274496 files,1791832/29067264 blocks
这时候我能再按一次crtl+alt+f1才能进入命令行模式
再执行

代码: 全选

sudo service lightdm stop
接着安装nvidia-396

代码: 全选

sudo apt-get install nvidia-396
reboot;
然后界面停留到登入界面,即使输入密码正确,依然返回登入界面

所以我在tty1命令行模式下运行

代码: 全选

jingmian@jingmian-TUF:~$ nvidia-settings --glxinfo | grep "OpenGL version string"
ERROR: Unable to find display on any available system

代码: 全选

jingmian@jingmian-TUF:~$ sudo lshw -numeric -class video
  *-display
       description: 3D controller
       product: NVIDIA Corporation [10DE:1C8C]
       vendor: NVIDIA Corporation [10DE]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:16 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:5000(size=128) memory:a4000000-a407ffff
  *-display UNCLAIMED
       description: VGA compatible controller
       product: Intel Corporation [8086:3E9B]
       vendor: Intel Corporation [8086]
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:a2000000-a2ffffff memory:80000000-8fffffff ioport:6000(size=64) memory:c0000-dffff

代码: 全选

jingmian@jingmian-TUF:~$ sudo prime-select query
nvidia

代码: 全选

jingmian@jingmian-TUF:~$ sudo efibootmgr -v
[sudo] jingmian 的密码: 
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0007,0001,0003,0004,0000,0002,0006,0005
Boot0000* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...n................
Boot0001* ubuntu	HD(1,GPT,cdbbf0d7-2c63-469f-b942-33e5d2aaa2ca,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0002* \etf\guri.bim	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0003* grubx64	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* grubx64	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0005  grubx64	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0006* grubx64	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0007* grubx64	HD(1,GPT,cdbbf0d7-2c63-469f-b942-33e5d2aaa2ca,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)
jingmian@jingmian-TUF:~$ 
 
所以只能卸载nvidia396返回界面,查看报错信息
这里我先备份一个.xsession-errors,以防丢失,名字xsession.log

代码: 全选

jingmian@jingmian-TUF:~$ cat xsession.log
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
openConnection: connect: 没有那个文件或目录
cannot connect to brltty at :0
upstart: gnome-session (Unity) main 进程 (1436)以状态 1 结束
upstart: unity-settings-daemon main 进程 (1424)已经被TERM 信号杀死
upstart: 从告知的D-Bus总线断开
upstart: logrotate main 进程 (1129)已经被TERM 信号杀死
upstart: hud main 进程 (1422)已经被TERM 信号杀死
upstart: unity-panel-service main 进程 (1444)已经被TERM 信号杀死
upstart: bamfdaemon main 进程 (1212)已经被TERM 信号杀死

jingmian@jingmian-TUF:~$ cat .xsession-errors.old 
openConnection: connect: 没有那个文件或目录
cannot connect to brltty at :0
upstart: 从告知的D-Bus总线断开
upstart: bamfdaemon main 进程 (1211)以状态 1 结束
upstart: hud main 进程 (1432)以状态 1 结束
upstart: unity-settings-daemon main 进程 (1434)以状态 1 结束
upstart: gnome-session (Unity) main 进程 (1446)以状态 1 结束
upstart: unity-panel-service main 进程 (1456)以状态 1 结束
upstart: indicator-bluetooth main 进程 (1541)已经被TERM 信号杀死
upstart: indicator-power main 进程 (1542)已经被TERM 信号杀死
upstart: indicator-datetime main 进程 (1543)已经被TERM 信号杀死
upstart: indicator-keyboard main 进程 (1546)以状态 1 结束
upstart: indicator-printers main 进程 (1552)以状态 1 结束
upstart: indicator-session main 进程 (1553)已经被TERM 信号杀死
upstart: indicator-application main 进程 (1557)已经被TERM 信号杀死
upstart: unity7 main 进程 (1577)以状态 1 结束
jingmian@jingmian-TUF:~$ 


另外你说sudo sh ./NVIDIA-Linux-x86_64-384.130.run
3-2. 還找不到 --no-x-check --no-nouveau-check 參數
这是安装这编文章操作,所以加的
https://blog.csdn.net/u010159842/articl ... s/54344683

现在我驱动具体是什么原因导致的,谢谢
poloshiao
论坛版主
帖子: 18182
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1925 次

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#10

帖子 poloshiao » 2018-06-18 16:26

jingmian@jingmian-TUF:~$ reboot;
1. Ubuntu 16.04 重啟的指令

代码: 全选

sudo systemctl reboot
1-1. 如果不是使用這個指令重啟 可能會受到一些關閉前進程未正常關閉的影響
这时屏幕会跳进一个黑屏报错
/dev/nvme0n1pe:clean,199213/7274496 files,1791832/29067264 blocks
2. 這個訊息 應該沒關係
2-1. 如果還會經常不正常出現 請再貼文
nvidia-settings --glxinfo | grep "OpenGL version string"
ERROR: Unable to find display on any available system
3. 這個指令 nvidia-settings 必須在 tty7 圖形環境進程執行
3-1. http://manpages.ubuntu.com/manpages/pre ... ngs.1.html
nvidia-settings - configure the NVIDIA graphics driver
It operates by communicating with the NVIDIA X driver, ...
sudo efibootmgr -v
BootCurrent: 0007
Boot0007* grubx64 HD(1,GPT,cdbbf0d7-2c63-469f-b942-33e5d2aaa2ca,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)
4. 你的開機模式 成功在 UEFI Secure Boot disabled 啟動
sudo lshw -numeric -class video
*-display
description: 3D controller
product: NVIDIA Corporation [10DE:1C8C]
...
configuration: driver=nvidia latency=0
sudo prime-select query
nvidia
5. 目前 閉源驅動 nvidia 應該已啟用
sudo lshw -numeric -class video
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation [8086:3E9B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: memory:a2000000-a2ffffff memory:80000000-8fffffff ioport:6000(size=64) memory:c0000-dffff
6. 但是 你的 內建顯卡 Intel 尚未成功啟用
lspci -knn
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e9b]
DeviceName: Onboard - Video
Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
Kernel modules: i915
6-1. Product ID : 3E9B 在下述 lspci 專屬登錄 ID 網頁 還找不到
http://pci-ids.ucw.cz/v2.2/pci.ids
可能原因 : 還太新 (相對於 Ubuntu 16.04 發行時間來說)
影響 : 找不到合適驅動
6-2. 請你提供詳細的 Intel 顯卡型號 及 CPU 型號
sudo ./NVIDIA-Linux-x86_64-375.20.run --no-x-check --no-nouveau-check --no-opengl-files
https://blog.csdn.net/u010159842/articl ... s/54344683
--no-x-check 安装驱动时关闭X服务
--no-nouveau-check 安装驱动时禁用nouveau
--no-opengl-files 只安装驱动文件,不安装OpenGL文件
7. 如果你直接從 Ubuntu 套件庫安裝閉源驅動 nvidia
這三個參數 可以不理它
今天我又重装16.04.4的LTS版本
sudo apt-get remove --purge nvidia*
8. 全新安裝 16.04.4 後
還沒安裝 閉源驅動 nvidia 前
不需要執行這個指令
cs5117155
帖子: 25
注册时间: 2018-06-09 17:47
送出感谢: 2 次
接收感谢: 0

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#11

帖子 cs5117155 » 2018-06-18 18:00

我刚刚我已经通过sudo apt-get remove --purge nvidia*卸载,重新安装后,使用sudo systemctl reboot命令,
依然跟上面情况一样,无法正确进入界面,输入密码就会返回登陆界面,死循环
3. 這個指令 nvidia-settings 必須在 tty7 圖形環境進程執行
nvidia-settings --glxinfo | grep "OpenGL version string"
ERROR: Unable to find display on any available system
可是我压根进入不到 tty7 圖形啊,输入密码,就会返回登陆界面,又让我输入密码,一直无法登陆的
6-1. Product ID : 3E9B 在下述 lspci 專屬登錄 ID 網頁 還找不到
http://pci-ids.ucw.cz/v2.2/pci.ids
可能原因 : 還太新 (相對於 Ubuntu 16.04 發行時間來說)
影響 : 找不到合適驅動
6-2. 請你提供詳細的 Intel 顯卡型號 及 CPU 型號
我本机集显 Intel UHD Graphics 630,CPU是i7-8750h,内存:DDR4 2666的,
https://www.asus.com.cn/Laptops/FX80/specifications/


我看网上说要找升级内核4.15,我更换后,再一次重装

代码: 全选

sudo apt-get remove --purge nvidia*
sudo apt-get install nvidia-390     #想换换390版本行不行
结果安装最后,有两个地方报错了,而且重启也是在登陆首页,输入密码也不能正常登陆
附件
QQ图片20180609175150.jpg
poloshiao
论坛版主
帖子: 18182
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1925 次

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#12

帖子 poloshiao » 2018-06-18 20:20

我本机集显 Intel UHD Graphics 630, CPU是i7-8750h
1. Intel 為了給予 Linux 使用者 更到位的支援 在這個網頁
https://01.org/linuxgraphics/downloads
提供 Intel 專屬 Intel Graphics Stack Recipe for Linux
給 Linux 使用者 下載安裝
1-1. 直到 Apr 27, 2018 發行的最新版本 2018Q1 Intel Graphics Stack Recipe
才把
Intel Core i7-8750H Processor
納入支援名單
1-1-1. https://01.org/linuxgraphics/downloads/ ... ack-recipe
2018Q1 Intel Graphics Stack Recipe
1-1-2. https://ark.intel.com/products/codename ... offee-Lake
Intel Core i7-8750H Processor
我看网上说要找升级内核4.15
1-2. 看看 該網頁
Linux Kernel - 4.16
1-2-1. 目前
Ubuntu 16.04 的 Linux Kernel 版本還是 4.4.0.128.134
Ubuntu 18.04 的 Linux Kernel 版本還是 4.15.0.23.25
1-2-2. https://packages.ubuntu.com/search?suit ... chon=names
1-2-3. 意思是
你要學會 升級 Linux Kernel 到 4.16
1-2-4. 或者 等 Ubuntu 18.04 / 18.10 的 Linux Kernel 升級到 4.16 時 再來體驗 2018Q1 Intel Graphics Stack Recipe
這個時候 才能支援
Intel Core i7-8750H Processor

2. 建議試試 是否能夠生效
sudo prime-select intel
2-1. 細節參閱
https://askubuntu.com/q/879856
cs5117155
帖子: 25
注册时间: 2018-06-09 17:47
送出感谢: 2 次
接收感谢: 0

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#13

帖子 cs5117155 » 2018-06-18 22:30

我已经更换内核到4.17了

代码: 全选

jingmian@jingmian-TUF:~$ uname --all
Linux jingmian-TUF 4.17.0-041700rc1-generic #201804152230 SMP Mon Apr 16 02:33:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
jingmian@jingmian-TUF:~$ 


按照你的sudo prime-select intel可以生效,成功进入界面,可是intel驱动我还是没有,分辨率都是800*640那种

代码: 全选

jingmian@jingmian-TUF:~$ nvidia-settings --glxinfo | grep "OpenGL version string"

ERROR: Unable to load info from any available system

jingmian@jingmian-TUF:~$  sudo lshw -numeric -class video
[sudo] jingmian 的密码: 
  *-display               
       description: 3D controller
       product: NVIDIA Corporation [10DE:1C8C]
       vendor: NVIDIA Corporation [10DE]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:16 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:5000(size=128) memory:a4000000-a407ffff
  *-display UNCLAIMED
       description: VGA compatible controller
       product: Intel Corporation [8086:3E9B]
       vendor: Intel Corporation [8086]
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:a2000000-a2ffffff memory:80000000-8fffffff ioport:6000(size=64) memory:c0000-dffff
jingmian@jingmian-TUF:~$ sudo prime-select query
intel
jingmian@jingmian-TUF:~$  sudo lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:3ec4] (rev 07)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 07)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e9b]
	DeviceName: Onboard - Video
	Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
	Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 07)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Skylake Processor Thermal Subsystem [1043:10c1]
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device
00:08.0 System peripheral [0880]: Intel Corporation Sky Lake Gaussian Mixture Model [8086:1911]
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Skylake Gaussian Mixture Model [1043:10c1]
00:12.0 Signal processing controller [1180]: Intel Corporation Device [8086:a379] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
	Kernel driver in use: intel_pch_thermal
	Kernel modules: intel_pch_thermal
00:14.0 USB controller [0c03]: Intel Corporation Device [8086:a36d] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:201f]
	Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Device [8086:a36f] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Intel Corporation Device [8086:7270]
00:15.0 Serial bus controller [0c80]: Intel Corporation Device [8086:a368] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Device [8086:a360] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:17.0 SATA controller [0106]: Intel Corporation Device [8086:a353] (rev 10)
	DeviceName: Onboard - SATA
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:a330] (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.5 PCI bridge [0604]: Intel Corporation Device [8086:a335] (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.6 PCI bridge [0604]: Intel Corporation Device [8086:a336] (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:a30d] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a348] (rev 10)
	DeviceName: Onboard - Sound
	Subsystem: ASUSTeK Computer Inc. Device [1043:15ce]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:a323] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
	Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:a324] (rev 10)
	DeviceName: Onboard - Other
	Subsystem: ASUSTeK Computer Inc. Device [1043:10c1]
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8c] (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device [1043:18fe]
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_390, nvidia_390_drm
02:00.0 Non-Volatile memory controller [0108]: Device [1c5c:1327]
	Subsystem: Device [1c5c:0000]
	Kernel driver in use: nvme
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]
	Subsystem: AzureWave Device [1a3b:3041]
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:208f]
	Kernel driver in use: r8169
	Kernel modules: r8169
jingmian@jingmian-TUF:~$ sudo prime-select query
intel


然后我根据这编文章安装驱动,是图形化安装,
https://www.cnblogs.com/EasonJim/p/7383131.html

代码: 全选

wget https://download.01.org/gfx/ubuntu/16.04/main/pool/main/i/intel-graphics-update-tool/intel-graphics-update-tool_2.0.2_amd64.deb
sudo dpkg -i intel-graphics-update-tool_2.0.2_amd64.deb
sudo intel-graphics-update-tool 
我执行上面3个代码就成功安装并重启,没有提示错误,可是驱动仍然不生效
图片
poloshiao
论坛版主
帖子: 18182
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1925 次

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#14

帖子 poloshiao » 2018-06-19 11:18

sudo lshw -numeric -class video
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation [8086:3E9B]
...
configuration: latency=0
我执行上面3个代码就成功安装并重启,没有提示错误,可是驱动仍然不生效
1. 猜想 問題還是在這裡
6-1. Product ID : 3E9B 在下述 lspci 專屬登錄 ID 網頁 還找不到
http://pci-ids.ucw.cz/v2.2/pci.ids
可能原因 : 還太新 (相對於 Ubuntu 16.04 發行時間來說)
影響 : 找不到合適驅動
6-2. 請你提供詳細的 Intel 顯卡型號 及 CPU 型號
2. 你安裝 Ubuntu 時 在你的電腦內安裝了 /usr/share/misc/pci.ids
2-1. http://manpages.ubuntu.com/manpages/xen ... pci.8.html
lspci - list all PCI devices
/usr/share/misc/pci.ids
2-1-1. /usr/share/misc/pci.ids 跟
http://pci-ids.ucw.cz/v2.2/pci.ids
應該是 幾乎同步的
2-2. 你的 nVidia 顯卡
sudo cat /usr/share/misc/pci.ids | grep -i 1C8C
1c8c GP107M [GeForce GTX 1050 Ti Mobile]
2-3. 你的 Intel 顯卡
sudo cat /usr/share/misc/pci.ids | grep -i 3E9B
沒有
2-3-1. 這個原因 可能造成 驱动仍然不生效 無法成功啟動你的 Intel 顯卡

3. 暫時解決方案
把 你的 Intel 顯卡 lspci [8086:3E9B] ID 碼 手動添加進 /usr/share/misc/pci.ids
或其它 lspci 會讀取的檔案
3-1. 方法參閱
3-1-1. http://manpages.ubuntu.com/manpages/xen ... ids.8.html
搜尋這一行
/sys/bus/pci/drivers/.../new_id
3-1-2. https://www.kernel.org/doc/Documentation/PCI/pci.txt
How To Write Linux PCI Drivers
使用 new_id 搜尋
3-1-2-1. 特別是這兩行
New PCI IDs may be added to a device driver pci_ids table at runtime
as shown below:
echo "vendor device subvendor subdevice class class_mask driver_data" > /sys/bus/pci/drivers/{driver}/new_id
3-1-2-2. 上面的 {driver} 可以試試 agpgart-intel
資料來源
https://www.x.org/archive/current/doc/m ... l#heading5
cs5117155
帖子: 25
注册时间: 2018-06-09 17:47
送出感谢: 2 次
接收感谢: 0

Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息

#15

帖子 cs5117155 » 2018-06-19 17:53

今天通过安装18.04后,启动的时候按e进去选项模式,添加quiet splash $vt_handoff acpi_osi=linux nomodeset,启动后,再附加驱动,自动安装nvidia 390驱动。重启后就成功了,请问 $vt_handoff acpi_osi=linux nomodeset,请问这句代码有什么作用的,我现在能正常进去了,驱动也得到支持.那我还需要EFI\UBUNTU\GRUBX64.EFI模式引导启动吗
回复

回到 “常用硬件支持”