当 GNOME Shell 扩展被激活时,Ubuntu 会冻结,第一次出现该问题是在我从 升级到 时20.04
,并且在双启动中安装21.10
最新版本后问题仍然存在。22.04
当系统冻结时,我必须重新启动登录并Xorg
停用扩展,然后再次使用 Ubuntu 登录。
sudo journalctl -b -1 -e
日志:
... gnome-shell[4088]: Device '/dev/dri/card1' prefers shadow buffer
... snapd-desktop-integration.snapd-desktop-integration[4304]: Unable to init server: Could not connect: Connection refused
... snapd-desktop-i[4304]: cannot open display:
... systemd[3802]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
... systemd[3802]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
... gnome-shell[4088]: Added device '/dev/dri/card1' (i915) using atomic mode setting.
... gnome-shell[4088]: Created gbm renderer for '/dev/dri/card0'
... gnome-shell[4088]: Created gbm renderer for '/dev/dri/card1'
... gnome-shell[4088]: Boot VGA GPU /dev/dri/card1 selected as primary
... systemd[3802]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Scheduled restart job, restart counter is at 5.
... systemd[3802]: Stopped Service for snap application snapd-desktop-integration.snapd-desktop-integration.
... systemd[3802]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
... snapd-desktop-integration.snapd-desktop-integration[4376]: Unable to init server: Could not connect: Connection refused
... snapd-desktop-i[4376]: cannot open display:
... systemd[3802]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
... systemd[3802]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
... gnome-shell[4088]: Using public X11 display :0, (using :1 for managed services)
... gnome-shell[4088]: Using Wayland display name 'wayland-0'
... systemd[3802]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Scheduled restart job, restart counter is at 6.
... systemd[3802]: Stopped Service for snap application snapd-desktop-integration.snapd-desktop-integration.
... systemd[3802]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Start request repeated too quickly.
... systemd[3802]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
... systemd[3802]: Failed to start Service for snap application snapd-desktop-integration.snapd-desktop-integration.
答案1
- 系统扩展不太可能是罪魁祸首。它们是使用 Ubuntu 存储库中的 APT 安装的,因此针对特定发行版进行了一些测试。
- 用户安装的扩展来自您的发行版之外,因此更有可能出现问题。
禁用所有用户扩展,注销然后重新登录。如果问题仍然存在,请禁用系统扩展。然后启用扩展并测试运行系统。激活另一个扩展,这样您就可以识别导致问题的扩展。
这假设您确信它正在有效激活导致问题的扩展,正如您所指出的。