诊断:

诊断:

几天前,我将我的机器(Lenovo ThinkPad T510)从 Ubuntu 16.04 升级到 Ubuntu Bionic Beaver,从那时起,当我使用 LibreOffice 或使用 Image Viewer 查看图片时,我的机器会随机冻结。我想指出的是,这些不是大文件或图片,它冻结的图片小于 1MB。当它冻结时,我可以移动鼠标,但不能做其他事情,有时我可以使用 REISUB 重新启动,但有时甚至不能这样做。我已经执行了 memtest86+,它通过了 1 次完整测试,没有发现任何错误。除此之外,我不知道还能做些什么来为此提交错误。您应该如何在 Ubuntu 中提交这种类型的错误(随机冻结)?我想指出的是,我使用同一台机器在 Ubuntu 16.04 中从未遇到过这些冻结。提前感谢您的帮助。

更新 #1:我尝试执行“tail -n 99 /var/log/Xorg*.log”(带或不带 sudo),结果出现此信息:“tail:无法打开‘/var/log/Xorg*.log’进行读取:没有此文件或目录”。我需要启用某些功能才能获取这些日志吗?

更新 #2:注意:由于我已达到问题正文的最大字符数,因此删除了更新。

更新 #3:@heynnema 这是您建议的命令的结果:

free -h

              total        used        free      shared  buff/cache   available
Mem:           7.6G        2.2G        123M        205M        5.3G        4.9G
Swap:          979M         64M        915M

sysctl vm.swappiness

vm.swappiness = 60

grep -i swap /etc/fstab

/dev/mapper/ubuntu--vg-swap_1 none            swap    sw              0       0

更新 #4:@Raffa,结果如下:

lspci | grep ' VGA '

01:00.0 VGA compatible controller: NVIDIA Corporation GT218M [NVS 3100M] (rev a2)

sudo lshw -C display

  *-display                 
       description: VGA compatible controller
       product: GT218M [NVS 3100M]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:31 memory:cc000000-ccffffff memory:d0000000-dfffffff memory:ce000000-cfffffff ioport:2000(size=128) memory:c0000-dffff

apt policy xserver-xorg-input-*

xserver-xorg-input-all:
  Installed: (none)
  Candidate: 1:7.7+19ubuntu7.1
  Version table:
     1:7.7+19ubuntu7.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     1:7.7+19ubuntu7 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
xserver-xorg-input-synaptics:
  Installed: (none)
  Candidate: 1.9.0-1ubuntu1
  Version table:
     1.9.0-1ubuntu1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-libinput-hwe-18.04:
  Installed: 0.28.1-1~18.04.1
  Candidate: 0.28.1-1~18.04.1
  Version table:
 *** 0.28.1-1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
xserver-xorg-input-joystick-hwe-18.04:
  Installed: (none)
  Candidate: 1:1.6.3-1build1~18.04.1
  Version table:
     1:1.6.3-1build1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
xserver-xorg-input-libinput-dev-hwe-18.04:
  Installed: (none)
  Candidate: 0.28.1-1~18.04.1
  Version table:
     0.28.1-1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
xserver-xorg-input-joystick-dev-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-elographics:
  Installed: (none)
  Candidate: 1:1.4.1-1build6
  Version table:
     1:1.4.1-1build6 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-evdev-hwe-16.04-dbg:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-evdev-dev-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-aiptek:
  Installed: (none)
  Candidate: 1:1.4.1-2build1
  Version table:
     1:1.4.1-2build1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-wacom-hwe-18.04:
  Installed: 1:0.36.1-0ubuntu1~18.04.1
  Candidate: 1:0.36.1-0ubuntu1~18.04.1
  Version table:
 *** 1:0.36.1-0ubuntu1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
xserver-xorg-input-synaptics-dev-hwe-18.04:
  Installed: (none)
  Candidate: 1.9.1-1ubuntu1~18.04.1
  Version table:
     1.9.1-1ubuntu1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
xserver-xorg-input-multitouch:
  Installed: (none)
  Candidate: 1.0~rc3-1
  Version table:
     1.0~rc3-1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-void:
  Installed: (none)
  Candidate: 1:1.4.1-1build3
  Version table:
     1:1.4.1-1build3 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-kbd:
  Installed: (none)
  Candidate: 1:1.9.0-1
  Version table:
     1:1.9.0-1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-evdev-hwe-18.04:
  Installed: (none)
  Candidate: 1:2.10.6-1~18.04.1
  Version table:
     1:2.10.6-1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
xserver-xorg-input-evtouch:
  Installed: (none)
  Candidate: (none)
  Version table:
xserver-xorg-input-all-hwe-18.04:
  Installed: 1:7.7+19ubuntu8~18.04.3
  Candidate: 1:7.7+19ubuntu8~18.04.3
  Version table:
 *** 1:7.7+19ubuntu8~18.04.3 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
xserver-xorg-input-libinput:
  Installed: (none)
  Candidate: 0.27.1-1
  Version table:
     0.27.1-1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
xserver-xorg-input-synaptics-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-libinput-dev:
  Installed: (none)
  Candidate: 0.27.1-1
  Version table:
     0.27.1-1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://mx.archive.ubuntu.com/ubuntu bionic/main i386 Packages
xserver-xorg-input-wacom:
  Installed: (none)
  Candidate: 1:0.36.1-0ubuntu1
  Version table:
     1:0.36.1-0ubuntu1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
xserver-xorg-input-void-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-mtrack:
  Installed: (none)
  Candidate: 0.3.1-1build2
  Version table:
     0.3.1-1build2 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-vmmouse:
  Installed: (none)
  Candidate: (none)
  Version table:
xserver-xorg-input-joystick:
  Installed: (none)
  Candidate: 1:1.6.3-1build1
  Version table:
     1:1.6.3-1build1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-joystick-dev-hwe-18.04:
  Installed: (none)
  Candidate: 1:1.6.3-1build1~18.04.1
  Version table:
     1:1.6.3-1build1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
xserver-xorg-input-xwiimote:
  Installed: (none)
  Candidate: 0.5-1build3
  Version table:
     0.5-1build3 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-evdev-dev-hwe-18.04:
  Installed: (none)
  Candidate: 1:2.10.6-1~18.04.1
  Version table:
     1:2.10.6-1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
xserver-xorg-input-evdev-dbg:
  Installed: (none)
  Candidate: 1:2.10.5-1ubuntu1
  Version table:
     1:2.10.5-1ubuntu1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-evdev-dev:
  Installed: (none)
  Candidate: 1:2.10.5-1ubuntu1
  Version table:
     1:2.10.5-1ubuntu1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
xserver-xorg-input-libinput-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-joystick-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-libinput-dev-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-evdev:
  Installed: (none)
  Candidate: 1:2.10.5-1ubuntu1
  Version table:
     1:2.10.5-1ubuntu1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-mtrack-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-synaptics-hwe-18.04:
  Installed: (none)
  Candidate: 1.9.1-1ubuntu1~18.04.1
  Version table:
     1.9.1-1ubuntu1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
xserver-xorg-input-wacom-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-synaptics-dev:
  Installed: (none)
  Candidate: 1.9.0-1ubuntu1
  Version table:
     1.9.0-1ubuntu1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
xserver-xorg-input-synaptics-dev-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-mutouch:
  Installed: (none)
  Candidate: 1:1.3.0-1build9
  Version table:
     1:1.3.0-1build9 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-evdev-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-all-hwe-16.04:
  Installed: (none)
  Candidate: 3:14.1
  Version table:
     3:14.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-evdev-hwe-18.04-dbg:
  Installed: (none)
  Candidate: 1:2.10.6-1~18.04.1
  Version table:
     1:2.10.6-1~18.04.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
xserver-xorg-input-mouse:
  Installed: (none)
  Candidate: 1:1.9.2-1
  Version table:
     1:1.9.2-1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
xserver-xorg-input-joystick-dev:
  Installed: (none)
  Candidate: 1:1.6.3-1build1
  Version table:
     1:1.6.3-1build1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://mx.archive.ubuntu.com/ubuntu bionic/universe i386 Packages

更新 #5:@Raffa,我执行了您建议的命令来安装 xserver-xorg-input-all,然后重新启动了机器,之后我使用 Image Viewer 和 LibreOffice Calc 进行了测试,它再次冻结,因此我使用 REISUB 重新启动。此时我开始看到高 CPU 使用率,但 RAM 使用率保持在 2.5G 以下。首先,在 Image Viewer 中从一张图片转换到另一张图片的速度很慢,然后它冻结了大约 4 分钟,之后我继续查看图片、一个视频并在 LibreOffice Calc 中打开电子表格,然后它完全冻结了。我等了大约 15 分钟,然后我决定使用 REISUB。

更新 #6:@Raffa,我按照建议安装了 xserver-xorg-input-libinput,并按照更新 #5 重复了测试,结果相同:系统一直冻结,CPU 使用率高,RAM 内存保持在 1.7G 左右,交换内存为 0G。我执行了 REISUB 来重新启动。

更新 #7:@Raffa,我用的是笔记本电脑,所以只连接了鼠标(USB)和电源线。我重启电脑时没有连接鼠标,并按照更新 #5 和 #6 进行测试,结果相同,电脑一直死机,不过这次我没有注意到 CPU 使用率过高。以下是 的输出tail -n 400 /var/log/dpkg.log | grep "status installed"

2020-04-03 19:03:39 status installed libcilkrts5:amd64 7.5.0-3ubuntu1~18.04
2020-04-03 19:03:39 status installed libubsan0:amd64 7.5.0-3ubuntu1~18.04
2020-04-03 19:03:39 status installed libtsan0:amd64 8.4.0-1ubuntu1~18.04
2020-04-03 19:03:39 status installed linux-libc-dev:amd64 4.15.0-91.92
2020-04-03 19:03:39 status installed liblsan0:amd64 8.4.0-1ubuntu1~18.04
2020-04-03 19:03:39 status installed libmpx2:amd64 8.4.0-1ubuntu1~18.04
2020-04-03 19:03:39 status installed dpkg-dev:all 1.19.0.5ubuntu2.3
2020-04-03 19:03:40 status installed libfakeroot:amd64 1.22-2ubuntu1
2020-04-03 19:03:40 status installed libalgorithm-diff-perl:all 1.19.03-1
2020-04-03 19:03:40 status installed libc-dev-bin:amd64 2.27-3ubuntu1
2020-04-03 19:03:40 status installed manpages-dev:all 4.15-1
2020-04-03 19:03:40 status installed libc6-dev:amd64 2.27-3ubuntu1
2020-04-03 19:03:40 status installed libitm1:amd64 8.4.0-1ubuntu1~18.04
2020-04-03 19:03:40 status installed fakeroot:amd64 1.22-2ubuntu1
2020-04-03 19:03:40 status installed libgcc-7-dev:amd64 7.5.0-3ubuntu1~18.04
2020-04-03 19:03:40 status installed libstdc++-7-dev:amd64 7.5.0-3ubuntu1~18.04
2020-04-03 19:03:40 status installed libalgorithm-merge-perl:all 0.08-3
2020-04-03 19:03:40 status installed libalgorithm-diff-xs-perl:amd64 0.04-5
2020-04-03 19:03:40 status installed gcc-7:amd64 7.5.0-3ubuntu1~18.04
2020-04-03 19:03:40 status installed g++-7:amd64 7.5.0-3ubuntu1~18.04
2020-04-03 19:03:40 status installed gcc:amd64 4:7.4.0-1ubuntu2.3
2020-04-03 19:03:41 status installed g++:amd64 4:7.4.0-1ubuntu2.3
2020-04-03 19:03:41 status installed build-essential:amd64 12.4ubuntu1
2020-04-03 19:03:55 status installed man-db:amd64 2.8.3-2ubuntu0.1
2020-04-03 19:03:56 status installed libc-bin:amd64 2.27-3ubuntu1
2020-04-03 19:29:23 status installed libpugixml1v5:amd64 1.8.1-7
2020-04-03 19:29:23 status installed libwxbase3.0-0v5:amd64 3.0.4+dfsg-3
2020-04-03 19:29:23 status installed filezilla-common:all 3.28.0-1
2020-04-03 19:29:23 status installed libfilezilla0:amd64 0.11.0-1
2020-04-03 19:29:23 status installed libwxgtk3.0-0v5:amd64 3.0.4+dfsg-3
2020-04-03 19:29:23 status installed filezilla:amd64 3.28.0-1
2020-04-03 19:29:23 status installed desktop-file-utils:amd64 0.23-1ubuntu3.18.04.2
2020-04-03 19:29:24 status installed libc-bin:amd64 2.27-3ubuntu1
2020-04-03 19:29:26 status installed man-db:amd64 2.8.3-2ubuntu0.1
2020-04-03 19:29:26 status installed gnome-menus:amd64 3.13.3-11ubuntu1.1
2020-04-03 19:29:26 status installed hicolor-icon-theme:all 0.17-2
2020-04-03 19:29:26 status installed mime-support:all 3.60ubuntu1
2020-04-04 09:13:03 status installed libgd3:amd64 2.2.5-4ubuntu0.4
2020-04-04 09:13:03 status installed libc-bin:amd64 2.27-3ubuntu1
2020-04-04 13:29:59 status installed ubuntu-desktop:amd64 1.417.4
2020-04-04 13:30:00 status installed xorg:amd64 1:7.7+19ubuntu7.1
2020-04-04 13:30:00 status installed xserver-xorg-hwe-18.04:amd64 1:7.7+19ubuntu8~18.04.3
2020-04-04 13:30:00 status installed xserver-xorg-input-all-hwe-18.04:amd64 1:7.7+19ubuntu8~18.04.3
2020-04-04 13:30:01 status installed xserver-xorg-input-all:amd64 1:7.7+19ubuntu7.1
2020-04-04 14:33:29 status installed xserver-xorg-video-all-hwe-18.04:amd64 1:7.7+19ubuntu8~18.04.3
2020-04-04 14:33:29 status installed xserver-xorg-video-vmware-hwe-18.04:amd64 1:13.3.0-2build1~18.04.1
2020-04-04 14:33:29 status installed xserver-xorg-video-amdgpu-hwe-18.04:amd64 19.0.1-1ubuntu1~18.04.1
2020-04-04 14:33:29 status installed xserver-xorg-input-wacom-hwe-18.04:amd64 1:0.36.1-0ubuntu1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-video-vesa-hwe-18.04:amd64 1:2.4.0-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-video-ati-hwe-18.04:amd64 1:19.0.1-1ubuntu1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-video-radeon-hwe-18.04:amd64 1:19.0.1-1ubuntu1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:30 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-input-libinput-hwe-18.04:amd64 0.28.1-1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:31 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:32 status installed xserver-xorg-core-hwe-18.04:amd64 2:1.20.5+git20191008-0ubuntu1~18.04.1
2020-04-04 14:33:33 status installed xserver-xorg-video-fbdev-hwe-18.04:amd64 1:0.5.0-1ubuntu1~18.04.1
2020-04-04 14:33:33 status installed xserver-xorg-video-intel-hwe-18.04:amd64 2:2.99.917+git20171229-1ubuntu1~18.04.1
2020-04-04 14:33:34 status installed xserver-xorg-video-nouveau-hwe-18.04:amd64 1:1.0.16-1~18.04.1
2020-04-04 14:33:34 status installed xserver-xorg-video-qxl-hwe-18.04:amd64 0.1.5-2build2~18.04.1
2020-04-04 14:33:34 status installed xserver-common:all 2:1.19.6-1ubuntu4.4
2020-04-04 14:33:34 status installed xserver-xorg-core:amd64 2:1.19.6-1ubuntu4.4
2020-04-04 14:33:34 status installed xserver-xorg-input-libinput:amd64 0.27.1-1
2020-04-04 14:33:37 status installed man-db:amd64 2.8.3-2ubuntu0.1
2020-04-04 14:33:37 status installed libc-bin:amd64 2.27-3ubuntu1

更新 #8:@Raffa,我做了和sudo apt purge nvidia-*sudo ubuntu-drivers autoinstall到目前为止,我没有遇到任何冻结。我重复了之前的测试,以及更多,它运行良好。如果有任何其他问题,我会再次发帖。非常感谢您的耐心和建议。

答案1

诊断:

  • 通过查看Xorg日志,发现出现了一些问题(崩溃),具体涉及以下内容libinput
(**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"   
(II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
(**) SynPS/2 Synaptics TouchPad: Applying InputClass "libinput touchpad catchall" 
(II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad' 
(**) TPPS/2 IBM TrackPoint: Applying InputClass "libinput pointer catchall" 
(II) Using input driver 'libinput' for 'TPPS/2 IBM TrackPoint' 
(**) ThinkPad Extra Buttons: Applying InputClass "libinput keyboard catchall" 
(II) Using input driver 'libinput' for 'ThinkPad Extra Buttons'
  • 通过查看 的输出apt policy xserver-xorg-input-*,发现xserver-xorg-input-all和都xserver-xorg-input-libinput没有安装在应该安装的位置:
xserver-xorg-input-all:
  Installed: (none)
  Candidate: 1:7.7+19ubuntu7.1
  Version table:
     1:7.7+19ubuntu7.1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     1:7.7+19ubuntu7 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

xserver-xorg-input-libinput:
  Installed: (none)
  Candidate: 0.27.1-1
  Version table:
     0.27.1-1 500
        500 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
  • 通过查看的输出tail -n 400 /var/log/dpkg.log | grep "status installed"。一些与 VGA 相关的软件包/驱动程序似乎在上次更新期间受到了影响。

  • 通过查看输出lspci | grep ' VGA ',它sudo lshw -C display显示您有一个正在使用NVIDIA Corporation GT218M该驱动程序的显卡nouveau


解决方案:

  1. 安装xserver-xorg-input-all如下:
sudo apt install xserver-xorg-input-all
  1. 安装xserver-xorg-input-libinput如下:
sudo apt install xserver-xorg-input-libinput
  1. 像这样清除 NVIDIA 视频驱动程序:
sudo apt purge nvidia-*
  1. 使用该工具安装正确的视频驱动程序,ubuntu-drivers如下所示:
sudo ubuntu-drivers autoinstall
  1. 重新启动你的机器并祈祷好运:)。

祝你好运

相关内容