Debian 9 在新 PC 上随机冻结

Debian 9 在新 PC 上随机冻结

几个月前,在我新买的 PC 上安装 GNU/Linux 后,我遇到了越来越频繁的随机冻结。屏幕冻结,没有光标移动,也没有键盘响应。我最初在 Kubuntu 上遇到过这个问题,但几周后我还是找不到问题的根源,于是我格式化了驱动器并安装了 Debian 9,希望通过全新安装来解决问题。在我将 Android 连接到 PC 后,这种情况会持续发生,而且似乎更频繁。音频持续了几秒钟,然后断断续续地停止。我按照 Debian 9 文档安装了 nVidia 驱动程序,并尝试重新安装 GPU。Memtest86+ 无法从 Grub 启动,所以我尝试运行 memtester 几次,但没有出现任何错误。在 USB 上运行 Debian live 时,我也没有遇到崩溃问题。所有这些都让我怀疑这不是硬件问题。/var/log/syslog 在一些崩溃后显示奇怪的 \00\ 错误。我附上了崩溃前后的几行内容:

Feb 19 12:32:24 Hermes tracker-extract[2021]: Could not insert metadata for item with ID 123952: Subject `urn:uuid:d581e393-41e0-ff7d-8621-130081ea3ea2' is not in domain `nie:DataObject' of property `nie:dataSource'
Feb 19 12:32:24 Hermes tracker-extract[2021]: If the error above is recurrent for the same item/ID, consider running "tracker-extract" in the terminal with the TRACKER_VERBOSITY=3 environment variable, and filing a bug with the additional information
Feb 19 12:32:24 Hermes tracker-extract[2021]: Could not insert metadata for item with ID 123952: Subject `urn:uuid:d581e393-41e0-ff7d-8621-130081ea3ea2' is not in domain `nie:DataObject' of property `nie:dataSource'
Feb 19 12:32:24 Hermes tracker-extract[2021]: If the error above is recurrent for the same item/ID, consider running "tracker-extract" in the terminal with the TRACKER_VERBOSITY=3 environment variable, and filing a bug with the additional information
\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00Feb 19 12:36:14 Hermes systemd[1]: Mounted Debug File System.
Feb 19 12:36:14 Hermes kernel: [    0.000000] Linux version 4.9.0-5-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
Feb 19 12:36:14 Hermes systemd[1]: Mounted POSIX Message Queue File System.

另一次崩溃,更多的行和文件目录被替换为“...”,因为它们的名称可能是敏感的

Feb 19 13:54:53 Hermes systemd[1]: Started PC/SC Smart Card Daemon.
Feb 19 13:54:53 Hermes org.gnome.Documents[1099]: error: The metadata does not have a thumbnail property
Feb 19 13:54:53 Hermes gnome-documents[3512]: Error creating thumbnail for file:///...doc: Unrecognized image file format
Feb 19 13:54:53 Hermes org.gnome.Documents[1099]: error: Could not find thumbnail in zip file
Feb 19 13:54:53 Hermes gnome-documents[3512]: Error creating thumbnail for file:///....docx: Unrecognized image file format
Feb 19 13:54:53 Hermes org.gnome.Documents[1099]: error: The metadata does not have a thumbnail property
Feb 19 13:54:53 Hermes gnome-documents[3512]: Error creating thumbnail for file:///...doc: Unrecognized image file format
Feb 19 13:54:53 Hermes org.gnome.Documents[1099]: error: Could not find thumbnail in zip file
Feb 19 13:54:53 Hermes gnome-documents[3512]: Error creating thumbnail for file:///...: Unrecognized image file format
Feb 19 13:54:53 Hermes org.gnome.Documents[1099]: error: Could not find thumbnail in zip file
Feb 19 13:54:53 Hermes gnome-documents[3512]: Error creating thumbnail for file:///....docx: Unrecognized image file format
Feb 19 13:54:53 Hermes org.gnome.Documents[1099]: error: Could not find thumbnail in zip file
Feb 19 13:54:53 Hermes gnome-documents[3512]: Error creating thumbnail for file:///...: Unrecognized image file format
Feb 19 13:54:54 Hermes Main[3634]: Failed to load module "canberra-gtk-module"
Feb 19 13:54:54 Hermes tracker-extract[1398]: unable to create file '/run/user/1000/dconf/user': Permission denied.  dconf will not work properly.
Feb 19 13:54:55 Hermes org.gnome.Shell.desktop[1264]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3200048 (Open Datab)
Feb 19 13:54:59 Hermes org.gnome.Shell.desktop[1264]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3200048 (Open Datab)
Feb 19 13:54:59 Hermes org.gnome.Shell.desktop[1264]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3200017 (myPassword)
Feb 19 13:55:15 Hermes firefox-esr.desktop[2136]: console.warn: nsLoginManager: searchLogins: `formSubmitURL` or `httpRealm` is recommended
Feb 19 13:55:31 Hermes firefox-esr.desktop[2136]: console.warn: nsLoginManager: searchLogins: `formSubmitURL` or `httpRealm` is recommended
\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00Feb 19 13:56:44 Hermes kernel: [    0.000000] Linux version 4.9.0-5-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
Feb 19 13:56:44 Hermes kernel: [    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-5-amd64 root=UUID=d9147965-889b-4e4f-99b1-bb2936411c63 ro quiet splash intel_idle.max_cstate=1
Feb 19 13:56:44 Hermes kernel: [    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Feb 19 13:56:44 Hermes systemd[1]: Starting Flush Journal to Persistent Storage...

使用 Ryzen 1200、Gtx 1060 6GB 和 8GB GSkill RAM。

编辑 2018/02/23:我找到了一条可能解释该问题的线索。每次死机之前,/var/log/kern.log 中都会出现此驱动程序错误:

Feb 23 15:31:42 Hermes kernel: [   25.328836] input: HD-Audio Generic Front Mic as /devices/pci0000:00/0000:00:08.1/0000:12:00.3/sound/card1/input9
Feb 23 15:31:42 Hermes kernel: [   25.328932] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:12:00.3/sound/card1/input10
Feb 23 15:31:42 Hermes kernel: [   25.329018] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:12:00.3/sound/card1/input11
Feb 23 15:31:42 Hermes kernel: [   25.329102] input: HD-Audio Generic Line Out as /devices/pci0000:00/0000:00:08.1/0000:12:00.3/sound/card1/input12
Feb 23 15:31:42 Hermes kernel: [   25.329770] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:12:00.3/sound/card1/input13
Feb 23 15:31:42 Hermes kernel: [   25.786212] Adding 8319996k swap on /dev/sda3.  Priority:-1 extents:1 across:8319996k FS
Feb 23 15:31:42 Hermes kernel: [   25.963539] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input14
Feb 23 15:31:42 Hermes kernel: [   25.963975] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input15
Feb 23 15:31:42 Hermes kernel: [   25.965993] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input16
Feb 23 15:31:42 Hermes kernel: [   25.966456] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input17
Feb 23 15:31:45 Hermes kernel: [   30.883926] IPv6: ADDRCONF(NETDEV_UP): enp6s0: link is not ready
Feb 23 15:31:45 Hermes kernel: [   30.906709] r8169 0000:06:00.0: firmware: failed to load rtl_nic/rtl8168g-2.fw (-2)
Feb 23 15:31:45 Hermes kernel: [   30.906762] r8169 0000:06:00.0: Direct firmware load for rtl_nic/rtl8168g-2.fw failed with error -2
Feb 23 15:31:45 Hermes kernel: [   30.906769] r8169 0000:06:00.0 enp6s0: unable to load firmware patch rtl_nic/rtl8168g-2.fw (-2)
Feb 23 15:31:45 Hermes kernel: [   30.920959] r8169 0000:06:00.0 enp6s0: link down
Feb 23 15:31:45 Hermes kernel: [   30.921002] r8169 0000:06:00.0 enp6s0: link down
Feb 23 15:31:45 Hermes kernel: [   30.921043] IPv6: ADDRCONF(NETDEV_UP): enp6s0: link is not ready
Feb 23 15:31:49 Hermes kernel: [   34.752112] r8169 0000:06:00.0 enp6s0: link up
Feb 23 15:31:49 Hermes kernel: [   34.752123] IPv6: ADDRCONF(NETDEV_CHANGE): enp6s0: link becomes ready
Feb 23 15:31:50 Hermes kernel: [   35.493690] NVRM: Your system is not currently configured to drive a VGA console
Feb 23 15:31:50 Hermes kernel: [   35.493692] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
Feb 23 15:31:50 Hermes kernel: [   35.493693] NVRM: requires the use of a text-mode VGA console. Use of other console
Feb 23 15:31:50 Hermes kernel: [   35.493693] NVRM: drivers including, but not limited to, vesafb, may result in
Feb 23 15:31:50 Hermes kernel: [   35.493694] NVRM: corruption and stability problems, and is not supported.
Feb 23 15:31:50 Hermes kernel: [   35.494445] nvidia-modeset: Allocated GPU:0 (GPU-2461ba41-089f-56ba-dc6d-78e54e3662b2) @ PCI:0000:09:00.0
Feb 23 15:32:12 Hermes kernel: [   58.359483] snd_hda_codec_hdmi hdaudioC0D0: HDMI: invalid ELD data byte 11
Feb 23 15:32:13 Hermes kernel: [   60.145642] fuse init (API version 7.26)

答案1

我遇到了类似的问题,我发现其他人在网上其他地方也报告了同样的问题:

使用有问题的 Gnome 驱动程序:https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767173

缺少驱动程序:http://forums.debian.net/viewtopic.php?f=6&t=135457

ALT+F2 R 似乎可以解决某些问题。对于其他人来说,使用 Gnome 以外的其他桌面似乎可以解决问题。

您可以在这里尝试更多的事情:https://unix.stackexchange.com/questions/31818/what-to-do-when-a-linux-desktop-freezes

相关内容