当我播放带声音的视频时,计算机经常会立即冻结,但如果我播放不带声音的视频,则一切正常。我使用的是 NVIDIA GeForce GTX 650、8gb 内存、Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz。
这是来自 journalctl -b-1 的日志
Mei 22 14:59:15 coding-desktop kernel: NVRM: GPU at PCI:0000:01:00: GPU-905179a7-c314-5633-72d0-2751abc5bdf3
Mei 22 14:59:15 coding-desktop kernel: NVRM: Xid (PCI:0000:01:00): 79, pid=1769, GPU has fallen off the bus.
Mei 22 14:59:15 coding-desktop kernel: NVRM: GPU 0000:01:00.0: GPU has fallen off the bus.
Mei 22 14:59:15 coding-desktop kernel: NVRM: A GPU crash dump has been created. If possible, please run
NVRM: nvidia-bug-report.sh as root to collect this data before
NVRM: the NVIDIA kernel module is unloaded.
Mei 22 14:59:15 coding-desktop kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Mei 22 14:59:15 coding-desktop kernel: CPU: 2 PID: 0 Comm: swapper/2 Tainted: P OE 5.13.0-41-generic #46~20.04.1-Ubuntu
Mei 22 14:59:15 coding-desktop kernel: Hardware name: Gigabyte Technology Co., Ltd. H81M-DS2/H81M-DS2, BIOS FC 01/20/2014
Mei 22 14:59:15 coding-desktop kernel: Call Trace:
Mei 22 14:59:15 coding-desktop kernel: <IRQ>
Mei 22 14:59:15 coding-desktop kernel: dump_stack+0x7d/0x9c
Mei 22 14:59:15 coding-desktop kernel: __report_bad_irq+0x3a/0xaf
Mei 22 14:59:15 coding-desktop kernel: note_interrupt.cold+0xb/0x60
Mei 22 14:59:15 coding-desktop kernel: handle_irq_event_percpu+0x73/0x80
Mei 22 14:59:15 coding-desktop kernel: handle_irq_event+0x3b/0x60
Mei 22 14:59:15 coding-desktop kernel: handle_fasteoi_irq+0x9c/0x150
Mei 22 14:59:15 coding-desktop kernel: __common_interrupt+0x43/0xa0
Mei 22 14:59:15 coding-desktop kernel: common_interrupt+0x85/0xa0
Mei 22 14:59:15 coding-desktop kernel: </IRQ>
Mei 22 14:59:15 coding-desktop kernel: <TASK>
Mei 22 14:59:15 coding-desktop kernel: asm_common_interrupt+0x1e/0x40
Mei 22 14:59:15 coding-desktop kernel: RIP: 0010:poll_idle+0x69/0xbb
Mei 22 14:59:15 coding-desktop kernel: Code: f0 41 80 4f 02 20 49 8b 07 a8 08 75 3b 4c 89 ef 4c 89 e6 e8 09 85 d5 ff 49 89 c5 b8 c9 00 00 00 49 8b 17 83 e2 08 75 20 f3 90 <83> e8 01 75 f1 65 8b 3d 63 09>
Mei 22 14:59:15 coding-desktop kernel: RSP: 0018:ffffaacfc00afe10 EFLAGS: 00000246
Mei 22 14:59:15 coding-desktop kernel: RAX: 000000000000003a RBX: 000004738eaa4e52 RCX: 000000000000001f
Mei 22 14:59:15 coding-desktop kernel: RDX: 0000000000000000 RSI: 000000002962cdac RDI: fffffffd5d5e348e
Mei 22 14:59:15 coding-desktop kernel: RBP: ffffaacfc00afe38 R08: 000004738eaa6d05 R09: ffffffffadc50e60
Mei 22 14:59:15 coding-desktop kernel: R10: ffff99ac67333864 R11: ffff99ac67333844 R12: ffff99ac67340b00
Mei 22 14:59:15 coding-desktop kernel: R13: 0000000000004e20 R14: 0000000000000000 R15: ffff99ab40a3b080
Mei 22 14:59:15 coding-desktop kernel: cpuidle_enter_state+0x8d/0x360
Mei 22 14:59:15 coding-desktop kernel: cpuidle_enter+0x2e/0x40
Mei 22 14:59:15 coding-desktop kernel: call_cpuidle+0x23/0x40
Mei 22 14:59:15 coding-desktop kernel: do_idle+0x1e6/0x260
Mei 22 14:59:15 coding-desktop kernel: cpu_startup_entry+0x20/0x30
Mei 22 14:59:15 coding-desktop kernel: start_secondary+0x11f/0x160
Mei 22 14:59:15 coding-desktop kernel: secondary_startup_64_no_verify+0xc2/0xcb
Mei 22 14:59:15 coding-desktop kernel: </TASK>
Mei 22 14:59:15 coding-desktop kernel: handlers:
Mei 22 14:59:15 coding-desktop kernel: [<0000000052fa2d23>] usb_hcd_irq
Mei 22 14:59:15 coding-desktop kernel: Disabling IRQ #16
据我所知,Xid (PCI:0000:01:00): 79, pid=1769,GPU 已从总线上掉下来,可能是由多种原因造成的。如能得到任何帮助,我们将不胜感激
免费 -h 结果
total used free shared buff/cache available
Mem: 7,7Gi 2,0Gi 3,6Gi 70Mi 2,1Gi 5,4Gi
Swap: 2,0Gi 0B 2,0Gi
sysctl vm.swappiness 结果:vm.swappiness = 60
swapon -s 结果:
Filename Type Size Used Priority
/swapfile file 2097148 0 -2
答案1
您的 BIOS 非常旧,需要先更新。如果这不能解决问题,我们可以进一步排除故障。
Gigabyte Technology Co., Ltd. H81M-DS2, BIOS FC 01/20/2014
此主板有 5 个修订版本,我怀疑您使用的是 2.0 修订版本,因此 BIOS 更新页面是这里。除其他修复外,此修复还修复了“支持新的第四代英特尔酷睿处理器”,这就是您所拥有的...英特尔(R) 酷睿(TM) i5-4440 CPU。
笔记:确认您有 2.0 版主板
笔记:更新 BIOS 前请做好备份
更新#1:
在里面terminal
...
我们将您的 /swapfile 从 2G 增加到 4G。
sudo swapoff -a # turn off swap
head -c 4G /dev/zero | sudo tee /swapfile # create a new /swapfile
sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 8G RAM and 4G swap
sudo -H gedit /etc/fstab
使用或编辑 /etc/fstab sudo pico /etc/fstab
。
确认 /etc/fstab 中的 /swapfile 行...并确认没有其他“swap”行存在。
/swapfile none swap sw 0 0
reboot # reboot and verify operation