Ubuntu 升级到 20.10 后,我遇到了一个错误,我的桌面变得模糊,除了我用光标选择的东西(有时只需将鼠标悬停即可)。
例如,我是这样看待如何启用子像素提示问题与答案:
请注意,我已尝试通过 gsettings 将抗锯齿和提示更改为所有可能的组合,但都无济于事。
启动系统后,一切都正常,直到某一时刻,整个系统冻结了几秒钟,所有窗口都刷新了,桌面背景闪烁,然后所有图形都变得模糊。不仅仅是文本,甚至图标和图像都模糊了。
我搜索了 dmesg 并且只看到两个不同的错误:
[ 5.138737] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
[ 5.139272] ucsi_ccg 0-0008: i2c_transfer failed -110
[ 5.139877] ucsi_ccg 0-0008: ucsi_ccg_init failed - -110
[ 5.140370] ucsi_ccg: probe of 0-0008 failed with error -110
[ 3422.483442] ACPI Error: No handler for Region [VRTC] (00000000b7abfcfe) [SystemCMOS] (20200528/evregion-127)
[ 3422.483456] ACPI Error: Region SystemCMOS (ID=5) has no handler (20200528/exfldio-261)
[ 3422.483474] No Local Variables are initialized for Method [_Q9A]
[ 3422.483477] No Arguments are initialized for method [_Q9A]
[ 3422.483482] ACPI Error: Aborting method \_SB.PCI0.LPCB.EC._Q9A due to previous error (AE_NOT_EXIST) (20200528/psparse-529)
但我发现了一些相当有趣的东西/var/log/syslog
:
Oct 26 23:06:02 anonymous gnome-shell[4223]: Window manager warning: MetaSyncRing: Sync object is not ready -- were events handled properly?
Oct 26 23:06:09 anonymous /usr/libexec/gdm-x-session[4084]: (WW) NVIDIA: Wait for channel idle timed out.
Oct 26 23:06:19 anonymous gnome-shell[4223]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Oct 26 23:06:19 anonymous gnome-shell[4223]: Object Meta.BackgroundActor (0x555e4a6b4e00), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Oct 26 23:06:19 anonymous gnome-shell[4223]: == Stack trace for context 0x555e4747e220 ==
Oct 26 23:06:19 anonymous gnome-shell[4223]: #0 7ffcb4ac9580 b resource:///org/gnome/gjs/modules/core/overrides/GObject.js:574 (2924ac7a4060 @ 25)
Oct 26 23:06:19 anonymous gnome-shell[4223]: #1 555e4870e928 i /usr/share/gnome-shell/extensions/desktop-icons@csoriano/desktopGrid.js:212 (1f25c3497880 @ 85)
Oct 26 23:06:19 anonymous gnome-shell[4223]: #2 555e4870e8a0 i /usr/share/gnome-shell/extensions/desktop-icons@csoriano/desktopGrid.js:148 (1f25c34979c0 @ 12)
Oct 26 23:06:19 anonymous gnome-shell[4223]: #3 555e4870e818 i resource:///org/gnome/shell/ui/main.js:251 (2924ac7bed30 @ 12)
Oct 26 23:06:19 anonymous gnome-shell[4223]: invalid (NULL) pointer instance
Oct 26 23:06:19 anonymous gnome-shell[4223]: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oct 26 23:06:19 anonymous gnome-shell[4223]: JS ERROR: TypeError: actor.get_meta_window() is null#012_destroyWindowDone@resource:///org/gnome/shell/ui/windowManager.js:1616:32#012onStopped@resource:///org/gnome/shell/ui/windowManager.js:1586:39#012_makeEaseCallback/<@resource:///org/gnome/shell/ui/environment.js:82:22#012_easeActor/<@resource:///org/gnome/shell/ui/environment.js:165:64#012_initializeUI/<@resource:///org/gnome/shell/ui/main.js:251:16
Oct 26 23:06:19 anonymous gnome-shell[4223]: JS ERROR: TypeError: actor.get_meta_window() is null#012_destroyWindowDone@resource:///org/gnome/shell/ui/windowManager.js:1616:32#012onStopped@resource:///org/gnome/shell/ui/windowManager.js:1586:39#012_makeEaseCallback/<@resource:///org/gnome/shell/ui/environment.js:82:22#012_easeActor/<@resource:///org/gnome/shell/ui/environment.js:165:64#012_initializeUI/<@resource:///org/gnome/shell/ui/main.js:251:16
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-0: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-1: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-2: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-3: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-3: Internal DisplayPort
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-3: 2660.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-4: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-0: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-1: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-2: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-3: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-3: Internal DisplayPort
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-3: 2660.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-4: disconnected
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
Oct 26 23:06:19 anonymous /usr/libexec/gdm-x-session[4084]: (--) NVIDIA(GPU-0):
- 这是否意味着我将通过恢复到 20.04 来修复它? 似乎 gnome 窗口管理器引入了一些重大更改。
我的nvidia-smi
输出:
# nvidia-smi
Mon Oct 26 23:49:11 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce RTX 207... Off | 00000000:01:00.0 Off | N/A |
| N/A 47C P8 2W / N/A | 311MiB / 7982MiB | 10% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
先感谢您。 :)
答案1
如果您有 gnome 扩展,请将其全部禁用,然后注销,然后再次登录并逐一重新启用每个扩展。
答案2
通过实验,我发现除了重新启动整个系统外,只需重新启动systemd-login.service
(这显然会将您注销):
sudo systemctl restart systemd-login.service
由于这几乎相当于系统重启,因此我认为这不是一个适当的补救措施。
它再次发生了,所以我重新启动了gdm.service
(它起作用了,但也使我退出了,所以这也不是一个好的解决方案):
sudo systemctl restart gdm.service
它又出现了,所以我注销并重新登录,这有效,但我也丢失了我的工作会话,所以这也不是一个好的解决方案。
再次发生后,我尝试暂停系统,但是这并不能解决桌面模糊的问题。
当它再次发生时,我尝试按照描述的方式让系统休眠这里.但我没法让它工作。
但是,我发现仅当我启动了 Mattermost 桌面应用程序时才会出现该错误,我在工具栏中单击它并选择聊天,这应该聚焦窗口并将聊天切换到选定的聊天,但却出现了模糊的桌面错误。
- 自从我停止使用该工具栏图标后,我就不再遇到此错误