我们遇到了 ubuntu 22.04 系统挂起问题。当我们搜索日志时,我们可以看到以下错误。有人能帮我解决一下吗?这个问题每天都会发生。系统配置:8 GB RAM、i3 第 11 代、2GB 显卡、256 GB SSD。
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051370] INFO: task kworker/u8:6:74464 blocked for more than 483 seconds.
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051385] Not tainted 5.15.0-39-generic #42-Ubuntu
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051391] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051394] task:kworker/u8:6 state:D stack: 0 pid:74464 ppid: 2 flags:0x00004000
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051406] Workqueue: events_unbound nv50_disp_atomic_commit_work [nouveau]
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051665] Call Trace:
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051669] <TASK>
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051675] __schedule+0x23d/0x590
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051686] schedule+0x4e/0xb0
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051693] schedule_timeout+0xfb/0x140
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051701] ? nouveau_fence_enable_signaling+0x31/0x70 [nouveau]
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051928] dma_fence_default_wait+0x1c4/0x1f0
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051937] ? dma_fence_free+0x20/0x20
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051943] dma_fence_wait_timeout+0xb7/0xd0
Jun 18 17:35:35 mathu-nv09 kernel: [30572.051951] drm_atomic_helper_wait_for_fences+0x89/0xe0 [drm_kms_helper]
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052003] nv50_disp_atomic_commit_tail+0x8a/0x8e0 [nouveau]
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052222] ? psi_task_switch+0xc6/0x220
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052232] nv50_disp_atomic_commit_work+0x12/0x20 [nouveau]
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052446] process_one_work+0x22b/0x3d0
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052458] worker_thread+0x53/0x410
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052468] ? process_one_work+0x3d0/0x3d0
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052478] kthread+0x12a/0x150
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052487] ? set_kthread_struct+0x50/0x50
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052496] ret_from_fork+0x22/0x30
Jun 18 17:35:35 mathu-nv09 kernel: [30572.052509] </TASK>
答案1
您需要安装 Nvidia 驱动程序。可以通过以下方式完成
sudo ubuntu-drivers install
之后重新启动。
答案2
在 Debian 或类似系统上,你会看到同样的事情。在这种情况下,sudo apt install nvidia-driver
就可以解决问题了。