当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 8 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息
帖子发表于 : 2018-06-14 18:55 

注册: 2018-06-09 17:47
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
我的笔记本是华硕堡垒第五代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
2018-06-14 18-50-54屏幕截图.png [ 72.1 KiB | 被浏览 720 次 ]

页首
 用户资料  
 
2 楼 
 文章标题 : Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息
帖子发表于 : 2018-06-14 19:13 

注册: 2009-08-04 16:33
帖子: 17890
送出感谢: 21
接收感谢: 1921
引用:
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
把指令及結果直接複製貼上來


页首
 用户资料  
 
3 楼 
 文章标题 : Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息
帖子发表于 : 2018-06-14 21:09 

注册: 2018-06-09 17:47
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
代码:
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


页首
 用户资料  
 
4 楼 
 文章标题 : Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息
帖子发表于 : 2018-06-16 13:37 

注册: 2009-08-04 16:33
帖子: 17890
送出感谢: 21
接收感谢: 1921
引用:
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 選項 請再貼文


页首
 用户资料  
 
5 楼 
 文章标题 : Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息
帖子发表于 : 2018-06-16 18:16 

注册: 2018-06-09 17:47
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
代码:
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,这两个都是必要的吗

图片


页首
 用户资料  
 
6 楼 
 文章标题 : Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息
帖子发表于 : 2018-06-16 20:45 

注册: 2009-08-04 16:33
帖子: 17890
送出感谢: 21
接收感谢: 1921
引用:
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 ... e_10_(10xx)_series_for_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


页首
 用户资料  
 
7 楼 
 文章标题 : Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息
帖子发表于 : 2018-06-17 15:04 

注册: 2018-06-09 17:47
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
安裝任何閉源驅動 需要先移除
代码:
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


以上就是我安装过程,


页首
 用户资料  
 
8 楼 
 文章标题 : Re: Ubuntu 16.04 安装NVIDIA驱动一直循环登录,百度很多方法都不管用,里面有错误信息
帖子发表于 : 2018-06-17 17:47 

注册: 2009-08-04 16:33
帖子: 17890
送出感谢: 21
接收感谢: 1921
引用:
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


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 8 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 5 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译