如何诊断和修复每隔几分钟冻结几秒钟的问题

JDi*_*teo 8 18.04

每隔几分钟,我的 Ubuntu 桌面就会冻结几秒钟。我可以移动我的鼠标但是点击和键盘没有明显的效果。

在发生这种情况时,我在日志中看到以下内容:

May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) AIGLX: Suspending AIGLX clients for VT switch
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) NOUVEAU(0): NVLeaveVT is called.
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got pause for 13:75
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got pause for 226:0
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got pause for 13:69
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got pause for 13:66
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got pause for 13:68
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got pause for 13:67
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got pause for 13:65
May 11 15:04:07 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got pause for 13:64
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got resume for 13:75
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) systemd-logind: got resume for 226:0
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) AIGLX: Resuming AIGLX clients after VT switch
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) NOUVEAU(0): NVEnterVT is called.
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) NOUVEAU(0): EDID vendor "DEL", prod id 40976
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) NOUVEAU(0): Using hsync ranges from config file
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) NOUVEAU(0): Using vrefresh ranges from config file
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) NOUVEAU(0): Printing DDC gathered Modelines:
May 11 15:04:39 bb8 /usr/lib/gdm3/gdm-x-session[29416]: (II) NOUVEAU(0): Modeline "1920x1200"x0.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz eP)
Run Code Online (Sandbox Code Playgroud)

几天前我安装了 Ubuntu 18.04 LTS,从那时起就发生了这种情况——当我在同一台 PC 上运行 Ubuntu 14.04 时没有发生这种情况。

JDi*_*teo 5

当您的桌面冻结时,记下确切的时间。

要么等待桌面解冻,要么 ssh 进入机器,然后查看/var/log/syslog你写下它冻结的时间。

在我的情况下,日志NOUVEAU在冻结时间前后有一行,我用 NVIDIA 二进制驱动程序替换了 Nouveau 显示驱动程序,并解决了间歇性冻结问题。