我关闭了我的 PC,但它卡在“已达到目标关机/重启”状态。
以下是我运行时的日志
journalctl -b -p err
-- 日志开始于 2020-08-06 星期四 20:32:59 +07,结束于 2020-08-07 星期五 23:17:32 +07。--
Thg 8 07 23:14:11 Joker kernel: BUG: unable to handle page fault for address: ffffa2220091ffff
Thg 8 07 23:14:11 Joker kernel: #PF: supervisor read access in kernel mode
Thg 8 07 23:14:11 Joker kernel: #PF: error_code(0x0000) - not-present page
Thg 8 07 23:14:12 Joker kernel: nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
Thg 8 07 23:14:12 Joker kernel: ucsi_ccg 0-0008: i2c_transfer failed -110
Thg 8 07 23:14:12 Joker kernel: ucsi_ccg 0-0008: ucsi_ccg_init failed - -110
Thg 8 07 23:16:55 Joker gdm-password][1601]: gkr-pam: unable to locate daemon control file
Thg 8 07 23:17:11 Joker systemd-udevd[466]: INT3450:00: Worker [512] processing SEQNUM=4314 killed
Thg 8 07 23:17:11 Joker systemd-udevd[466]: INT3450:00: Worker [495] processing SEQNUM=4477 killed
Thg 8 07 23:17:11 Joker systemd-udevd[466]: INT3450:00: Worker [512] failed
Thg 8 07 23:17:11 Joker systemd-udevd[466]: INT3450:00: Worker [495] failed
我尝试重新安装图形驱动程序,但仍然不起作用。 附加驱动程序
- - 编辑 - -
命令:free -h
total used free shared buff/cache available
Mem: 31Gi 2,2Gi 27Gi 131Mi 1,6Gi 28Gi
Swap: 2,0Gi 0B 2,0Gi
命令:swapon -show
Filename Type Size Used Priority
/swapfile file 2097148 0 -2
命令:grep -i swap /etc/fstab
/swapfile none swap sw 0 0
命令:sudo lshw -C memory
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: 0808
date: 05/14/2020
size: 64KiB
capacity: 16MiB
capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int14serial int17printer acpi usb biosbootspecification uefi
*-memory
description: System Memory
physical id: 44
slot: System board or motherboard
size: 32GiB
*-bank:0
description: [empty]
physical id: 0
slot: ChannelA-DIMM1
*-bank:1
description: DIMM DDR4 Synchronous 2666 MHz (0,4 ns)
product: F4-3000C16-16GTZR
vendor: G-Skill
physical id: 1
serial: 00000000
slot: ChannelA-DIMM2
size: 16GiB
width: 64 bits
clock: 2666MHz (0.4ns)
*-bank:2
description: [empty]
physical id: 2
slot: ChannelB-DIMM1
*-bank:3
description: DIMM DDR4 Synchronous 2666 MHz (0,4 ns)
product: F4-3000C16-16GTZR
vendor: G-Skill
physical id: 3
serial: 00000000
slot: ChannelB-DIMM2
size: 16GiB
width: 64 bits
clock: 2666MHz (0.4ns)
*-cache:0
description: L1 cache
physical id: 51
slot: L1 Cache
size: 384KiB
capacity: 384KiB
capabilities: synchronous internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: 52
slot: L2 Cache
size: 1536KiB
capacity: 1536KiB
capabilities: synchronous internal write-back unified
configuration: level=2
*-cache:2
description: L3 cache
physical id: 53
slot: L3 Cache
size: 12MiB
capacity: 12MiB
capabilities: synchronous internal write-back unified
configuration: level=3
*-memory UNCLAIMED
description: Memory controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
version: 00
width: 32 bits
clock: 33MHz (30.3ns)
configuration: latency=0
resources: memory:a2320000-a2323fff
命令:sysctl vm.swappiness
vm.swappiness = 60
命令:sudo dmidecode -s bios-version
0808
我的电脑
OS: Ubuntu 20.04.1 LTS
Kernel: Linux 5.4.0-42-generic
CPU: Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
MotherBoard: ASUS ROG STRIX B460-F GAMING Rev 1.xx
BIOS version: 0808
Memory: 02 x G-Skill F4-3000C16-16GTZR 16384 MB @ 2666MHz (DIMM DDR4)
Graphics: ASUS TUF GTX 1660 Super-6G GAMING
更新 (2020-08-11)
我已将 NVIDIA 更新至 450.57 并将交换文件增加至 4GB,但仍然出现错误。
命令:nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.57 Driver Version: 450.57 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GTX 166... Off | 00000000:01:00.0 On | N/A |
| 31% 39C P8 18W / 125W | 283MiB / 5936MiB | 1% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1018 G /usr/lib/xorg/Xorg 35MiB |
| 0 N/A N/A 1639 G /usr/lib/xorg/Xorg 91MiB |
| 0 N/A N/A 1841 G /usr/bin/gnome-shell 103MiB |
| 0 N/A N/A 2296 G ...token=7897069570677155215 32MiB |
| 0 N/A N/A 3216 G /usr/lib/firefox/firefox 2MiB |
| 0 N/A N/A 3777 G /usr/lib/firefox/firefox 2MiB |
+-----------------------------------------------------------------------------+
命令:journalctl -b -p err
-- Logs begin at Thu 2020-08-06 20:32:59 +07, end at Tue 2020-08-11 21:02:57 +07. --
Thg 8 11 21:01:46 Joker kernel: BUG: unable to handle page fault for address: ffffb1084094ffff
Thg 8 11 21:01:46 Joker kernel: #PF: supervisor read access in kernel mode
Thg 8 11 21:01:46 Joker kernel: #PF: error_code(0x0000) - not-present page
Thg 8 11 21:01:47 Joker kernel: nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
Thg 8 11 21:01:47 Joker kernel: ucsi_ccg 0-0008: i2c_transfer failed -110
Thg 8 11 21:01:47 Joker kernel: ucsi_ccg 0-0008: ucsi_ccg_init failed - -110
Thg 8 11 21:02:38 Joker gdm-password][1535]: gkr-pam: unable to locate daemon control file
解决方案
我找到了这个文章。我已经将内核更新至最新版本 5.8,并且它可以正常运行。
答案1
您遇到了页面错误和 Nvidia 错误。
BIOS
您的 BIOS 当前版本为 0808。
英伟达
您拥有 Nvidia 版本 440。
有更新的版本可用,版本 450.57,可以下载这里。
直接下载这里。
交换
让我们替换一个可能有问题的 /swapfile,并将其扩大到 4G。
笔记:命令使用不当dd
可能导致数据丢失。建议复制/粘贴。
sudo swapoff -a # turn off swap
sudo rm -i /swapfile # remove old /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 32G RAM and 4G swap
reboot # reboot and verify operation
将此行添加到 /etc/fstab...
/swapfile none swap sw 0 0
记忆
去https://www.memtest86.com/并免费下载/运行它们memtest
来测试你的记忆力。至少完成一次所有 4/4 测试以确认记忆力良好。这可能需要几个小时才能完成。
更新#1:
有一个错误。请参阅https://bugzilla.kernel.org/show_bug.cgi?id=206653。已将内核更新至 5.8 并且现在可以运行。