最近安装的ubuntu16.04系统 老卡机,每次都得重新启动
发表于 : 2017-05-10 14:58
在公司安装了ubuntu16.04系统,经常卡死重启,找了好多方法都不行,更新了内核也不行,问问大家有什么好的方法吗,在不重新装系统的情况下如何能不死机呢
代码: 全选
# smile @ smile-TT in ~/下载 [18:06:55]
$ uname -a
Linux smile-TT 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# smile @ smile-TT in ~/下载 [18:12:05]
$ sudo lspci -knn
[sudo] smile 的密码:
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:591f] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 05)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:14.0 USB controller [0c03]: Intel Corporation Device [8086:a2af]
Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation Device [8086:a2ba]
Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 SATA controller [0106]: Intel Corporation Device [8086:a282]
Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:a294] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.7 PCI bridge [0604]: Intel Corporation Device [8086:a297] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:a298] (rev f0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:a2c8]
Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
00:1f.2 Memory controller [0580]: Intel Corporation Device [8086:a2a1]
Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a2f0]
Subsystem: ASUSTeK Computer Inc. Device [1043:86c7]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:a2a3]
Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
Kernel modules: i2c_i801
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208 [GeForce GT 730] [10de:1287] (rev a1)
Subsystem: NVIDIA Corporation GK208 [GeForce GT 730] [10de:0000]
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation GK208 HDMI/DP Audio Controller [10de:0e0f] (rev a1)
Subsystem: NVIDIA Corporation GK208 HDMI/DP Audio Controller [10de:0000]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
03: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:8677]
Kernel driver in use: r8169
Kernel modules: r8169
# smile @ smile-TT in ~/下载 [18:12:16]
$ sudo lshw -numeric -class video
*-display
description: VGA compatible controller
product: GK208 [GeForce GT 730] [10DE:1287]
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 vga_controller bus_master cap_list rom
configuration: driver=nouveau latency=0
resources: irq:124 memory:f6000000-f6ffffff memory:e8000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff
# smile @ smile-TT in ~/下载 [18:12:26]
$ sudo ubuntu-drivers devices
== cpu-microcode.py ==
driver : intel-microcode - distro non-free
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
vendor : NVIDIA Corporation
model : GK208 [GeForce GT 730]
modalias : pci:v000010DEd00001287sv000010DEsd00000000bc03sc00i00
driver : nvidia-384 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
driver : nvidia-340 - distro non-free
# smile @ smile-TT in ~/下载 [18:12:40]
$ sudo efibootmgr -v
efibootmgr: EFI variables are not supported on this system.
1. 顯卡硬件 product: GK208 [GeForce GT 730] [10DE:1287]sudo lshw -numeric -class video
product: GK208 [GeForce GT 730] [10DE:1287]
...
configuration: driver=nouveau latency=0
2. 推薦 安裝 Ubuntu 套件庫 提供的 閉源驅動 nvidia-384sudo ubuntu-drivers devices
driver : nvidia-384 - distro non-free recommended
1. 顯卡硬件 Radeon HD 6950sudo lshw -numeric -class video
product: Cayman PRO [Radeon HD 6950] [1002:6719]
...
configuration: driver=radeon latency=0
1. 是 Ubuntu 17.10 ?uname -a
Linux pan-ThinkPad-X260 4.13.0-37-generic #42~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
2. 查看看 你的 CPU 型號 是否在此名單中sudo lshw -numeric -class video
*-display
description: VGA compatible controller
product: Sky Lake Integrated Graphics [8086:1916]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 07
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:124 memory:d0000000-d0ffffff memory:c0000000-cfffffff ioport:e000(size=64) memory:c0000-dffff
這是很新的開源驅動vulkan
代码: 全选
luhengtong@luhengtong-MS-7A39:~$ uname -a
Linux luhengtong-MS-7A39 4.15.18-041518-generic #201804190330 SMP Thu Apr 19 07:34:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
luhengtong@luhengtong-MS-7A39:~$ sudo lspci -knn
[sudo] password for luhengtong:
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1450]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7a39]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Device [1022:1451]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1451]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
Kernel driver in use: pcieport
Kernel modules: shpchp
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
Kernel driver in use: pcieport
Kernel modules: shpchp
00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1454]
Kernel driver in use: pcieport
Kernel modules: shpchp
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1454]
Kernel driver in use: pcieport
Kernel modules: shpchp
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 59)
Subsystem: Micro-Star International Co., Ltd. [MSI] FCH SMBus Controller [1462:7a39]
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
Subsystem: Micro-Star International Co., Ltd. [MSI] FCH LPC Bridge [1462:7a39]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1460]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1461]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1462]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1463]
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1464]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1465]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1466]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1467]
03:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43bb] (rev 02)
Subsystem: ASMedia Technology Inc. Device [1b21:1142]
Kernel driver in use: xhci_hcd
03:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b7] (rev 02)
Subsystem: ASMedia Technology Inc. Device [1b21:1062]
Kernel driver in use: ahci
Kernel modules: ahci
03:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b2] (rev 02)
DeviceName: Broadcom 5762
Kernel driver in use: pcieport
Kernel modules: shpchp
16:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02)
Kernel driver in use: pcieport
Kernel modules: shpchp
16:05.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02)
Kernel driver in use: pcieport
Kernel modules: shpchp
16:06.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02)
Kernel driver in use: pcieport
Kernel modules: shpchp
16:07.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02)
Kernel driver in use: pcieport
Kernel modules: shpchp
1b:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1462:7a39]
Kernel driver in use: r8169
Kernel modules: r8169
1f:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1c03] (rev a1)
Subsystem: NVIDIA Corporation Device [10de:11d7]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_396, nvidia_396_drm
1f:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10f1] (rev a1)
Subsystem: NVIDIA Corporation Device [10de:11d7]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
20:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device [1022:145a]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:145a]
20:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Device [1022:1456]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1456]
Kernel driver in use: ccp
Kernel modules: ccp
20:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:145c]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7a39]
Kernel driver in use: xhci_hcd
21:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device [1022:1455]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1455]
21:00.2 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
Subsystem: Micro-Star International Co., Ltd. [MSI] FCH SATA Controller [AHCI mode] [1462:7a39]
Kernel driver in use: ahci
Kernel modules: ahci
21:00.3 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Device [1022:1457]
DeviceName: Realtek ALC898
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:fa39]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
luhengtong@luhengtong-MS-7A39:~$ sudo lshw -numeric -class video
*-display
description: VGA compatible controller
product: NVIDIA Corporation [10DE:1C03]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:1f:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:65 memory:fc000000-fcffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff
luhengtong@luhengtong-MS-7A39:~$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:03.1/0000:1f:00.0 ==
modalias : pci:v000010DEd00001C03sv000010DEsd000011D7bc03sc00i00
vendor : NVIDIA Corporation
driver : nvidia-396 - third-party free recommended
driver : nvidia-384 - third-party non-free
driver : nvidia-390 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
luhengtong@luhengtong-MS-7A39:~$ sudo efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0000,0001
Boot0000* Windows Boot Manager HD(1,GPT,0a891c06-f7ef-4b93-8cce-eca0abc1f523,0x1000,0x31000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)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.}....................
Boot0001 Hard Drive BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0200)..GO..NO..........W.D.C. .W.D.1.0.E.Z.E.X.-.2.1.W.N.4.A.0...................\.,.@.r.d.=.X..........A.................................>..Gd-.;.A..MQ..L. . . . . . . . .C.W.6.C.0.Y.D.L.7.N.D.2........BO..NO..........T.O.S.H.I.B.A. .Q.2.0.0. .E.X. .M...2...................\.,.@.r.d.=.X..........A.................................>..Gd-.;.A..MQ..L. . . . . . . . .7.X.S.J.0.1.9.4.6.T.T.5........BO
Boot0003* ubuntu HD(1,GPT,0a891c06-f7ef-4b93-8cce-eca0abc1f523,0x1000,0x31000)/File(\EFI\UBUNTU\SHIMX64.EFI)..BO
1. 你的 Secure Boot 有沒有 設定為 disabled ?sudo efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0000,0001
Boot0003* ubuntu HD(1,GPT,0a891c06-f7ef-4b93-8cce-eca0abc1f523,0x1000,0x31000)/File(\EFI\UBUNTU\SHIMX64.EFI)
2. 單顯卡 nvidiasudo lshw -numeric -class video
*-display
description: VGA compatible controller
product: NVIDIA Corporation [10DE:1C03]
vendor: NVIDIA Corporation [10DE
configuration: driver=nvidia latency=0