在全新安装 Ubuntu 16.04.4 后,我遇到了以下问题:当我正在使用它时,Xorg 突然崩溃并注销系统。我登录后,Ubuntu 报告以下内部错误:
-- Logs begin at Δευ 2018-06-11 09:08:12 EEST, end at Δευ 2018-06-11 11:39:50 EEST. --
Ιούν 11 09:08:12 capdi kernel: ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
Ιούν 11 09:08:12 capdi kernel: ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
Ιούν 11 09:08:12 capdi kernel: PCCT header not found.
Ιούν 11 09:08:12 capdi kernel: (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
Ιούν 11 09:08:13 capdi kernel: [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
Ιούν 11 09:08:24 capdi systemd-udevd[296]: unknown key 'BUS' in /etc/udev/rules.d/ft-rockey.rules:1
Ιούν 11 09:08:24 capdi systemd-udevd[296]: invalid rule '/etc/udev/rules.d/ft-rockey.rules:1'
Ιούν 11 09:08:24 capdi systemd-tmpfiles[349]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
Ιούν 11 09:08:24 capdi kernel: wmi_bus wmi_bus-PNP0C14:01: WQBC data block query control method not found
Ιούν 11 09:08:24 capdi kernel: ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20170531/utaddress-247)
Ιούν 11 09:08:24 capdi kernel: ACPI Warning: SystemIO range 0x0000000000000540-0x000000000000054F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20170531/utaddress-247)
Ιούν 11 09:08:24 capdi kernel: ACPI Warning: SystemIO range 0x0000000000000540-0x000000000000054F conflicts with OpRegion 0x0000000000000500-0x000000000000055F (\_SB.PCI0.PEG0.PEGP.GPIO) (20170531/utaddress-247)
Ιούν 11 09:08:24 capdi kernel: ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20170531/utaddress-247)
Ιούν 11 09:08:24 capdi kernel: ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053F conflicts with OpRegion 0x0000000000000500-0x000000000000055F (\_SB.PCI0.PEG0.PEGP.GPIO) (20170531/utaddress-247)
Ιούν 11 09:08:24 capdi kernel: ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20170531/utaddress-247)
Ιούν 11 09:08:24 capdi kernel: ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x0000000000000500-0x000000000000055F (\_SB.PCI0.PEG0.PEGP.GPIO) (20170531/utaddress-247)
Ιούν 11 09:08:24 capdi kernel: lpc_ich: Resource conflict(s) found affecting gpio_ich
Ιούν 11 09:08:25 capdi kernel: nvidia: loading out-of-tree module taints kernel.
Ιούν 11 09:08:25 capdi kernel: nvidia: module license 'NVIDIA' taints kernel.
Ιούν 11 09:08:25 capdi kernel: Disabling lock debugging due to kernel taint
Ιούν 11 09:08:25 capdi kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 340.104 Thu Sep 14 17:13:13 PDT 2017
Ιούν 11 09:08:25 capdi nvidia-persistenced[772]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 125 has read and write permissions for those files.
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:25 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
Ιούν 11 09:08:27 capdi kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170531/nsarguments-95)
命令的输出:
ls -ld /dev/nvidia*; file /dev/nvidia*
是:
crw-rw-rw- 1 root root 195, 0 Ιούν 11 09:08 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 Ιούν 11 09:08 /dev/nvidiactl
crw-rw-rw- 1 root root 243, 0 Ιούν 11 09:08 /dev/nvidia-uvm
/dev/nvidia0: character special (195/0)
/dev/nvidiactl: character special (195/255)
/dev/nvidia-uvm: character special (243/0)
这很奇怪,因为我从这个版本的第一个版本开始就在这个机器上使用 Ubuntu 16.04(起初是双启动),没有问题。删除 Windows 并仅安装 Ubuntu 16.04 后,我遇到了这个问题。
答案1
最后我终于解决了这个问题。我发现当我尝试在两个显示器(笔记本电脑显示器和外接显示器)上工作时,Xorg 崩溃了。问题的原因在于,在我的设置中,我将外接显示器设置在右侧,而将笔记本电脑显示器设置在左侧。当我更改设置,将外接显示器设置在左侧,将笔记本电脑显示器设置在右侧时,问题就解决了!很奇怪,我不知道为什么,但现在 xorg 运行起来很顺畅!
更新
最后,当外接显示器连接时,我禁用了笔记本电脑的显示器,问题就解决了。