自从我上次重启(我猜也是自从我上次更新内核)以来,ubuntu 在我从锁定屏幕返回后挂起。我运行的是 Ubuntu 17.04,带有 4.10.0-32-generic 和 Radeon RX 480(没有 radeons 驱动程序)。日志包含第一个
Aug 25 16:35:31 reichelt-desktop gnome-session[2506]: gnome-session-binary[2506]: GLib-GIO-CRITICAL: g_dbus_connection_call_internal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed
Aug 25 16:35:31 reichelt-desktop gnome-session-binary[2506]: GLib-GIO-CRITICAL: g_dbus_connection_call_internal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed
然后很多消息发送失败,例如
Aug 25 16:40:43 reichelt-desktop kernel: [22191.381820] failed to send pre message 146 ret is 0
Aug 25 16:40:44 reichelt-desktop kernel: [22191.799677]
Aug 25 16:40:44 reichelt-desktop kernel: [22191.799677] failed to send message 146 ret is 0
Aug 25 16:40:44 reichelt-desktop kernel: [22192.209455]
Aug 25 16:40:44 reichelt-desktop kernel: [22192.209455] failed to send pre message 5d ret is 0
Aug 25 16:40:44 reichelt-desktop kernel: [22192.619189]
Aug 25 16:40:44 reichelt-desktop kernel: [22192.619189] failed to send message 5d ret is 0
Aug 25 16:40:45 reichelt-desktop kernel: [22193.029952]
Aug 25 16:40:45 reichelt-desktop kernel: [22193.029952] failed to send pre message 148 ret is 0
Aug 25 16:40:45 reichelt-desktop kernel: [22193.440793]
Aug 25 16:40:45 reichelt-desktop kernel: [22193.440793] failed to send message 148 ret is 0
最后看起来像是重建了一些 UI 内容:
Aug 25 16:40:46 reichelt-desktop kernel: [22194.262002]
Aug 25 16:40:46 reichelt-desktop kernel: [22194.262002] failed to send pre message 145 ret is 0
Aug 25 16:40:46 reichelt-desktop kernel: [22194.672385]
Aug 25 16:40:46 reichelt-desktop kernel: [22194.672385] failed to send message 145 ret is 0
Aug 25 16:40:47 reichelt-desktop kernel: [22195.493820]
Aug 25 16:40:47 reichelt-desktop kernel: [22195.493820] failed to send pre message 146 ret is 0
Aug 25 16:40:48 reichelt-desktop kernel: [22195.904314]
Aug 25 16:40:48 reichelt-desktop kernel: [22195.904314] failed to send message 146 ret is 0
Aug 25 16:40:48 reichelt-desktop unity-settings-[2480]: failed to turn the kbd backlight off: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Keine derartige Schnittstelle »org.freedesktop.UPower.KbdBacklight« des Objekts im Pfad /org/freedesktop/UPower/KbdBacklight
Aug 25 16:40:49 reichelt-desktop avahi-daemon[977]: Registering new address record for 2a02:810a:12c0:4e6c:cdd3:ea94:b14e:271e on enp2s0.*.
Aug 25 16:40:49 reichelt-desktop avahi-daemon[977]: Withdrawing address record for 2a02:810a:12c0:4e6c:cdd3:ea94:b14e:271e on enp2s0.
Aug 25 16:40:50 reichelt-desktop gnome-session[2506]: gnome-session-binary[2506]: GLib-GIO-CRITICAL: g_dbus_connection_call_internal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed
Aug 25 16:40:50 reichelt-desktop gnome-session-binary[2506]: GLib-GIO-CRITICAL: g_dbus_connection_call_internal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed
Aug 25 16:40:50 reichelt-desktop unity-panel-ser[2771]: menus_destroyed: assertion 'IS_WINDOW_MENU(wm)' failed
Aug 25 16:40:50 reichelt-desktop systemd[2163]: Starting Backing Service for the Unity Panel in Lockscreen mode...
Aug 25 16:40:50 reichelt-desktop compiz[2749]: WARN 2017-08-25 16:40:50 unity.glib.dbus.proxy GLibDBusProxy.cpp:487 Calling method "EmitEvent" on object path: "/com/ubuntu/Upstart" failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.Unity.Test.Upstart was not provided by any .service files
Aug 25 16:40:50 reichelt-desktop systemd[2163]: Started Backing Service for the Unity Panel in Lockscreen mode.
Aug 25 16:40:50 reichelt-desktop systemd[2163]: Reached target A target that, when running, represents the screen being locked.
Aug 25 16:40:51 reichelt-desktop compiz[2749]: Warning: Fehler beim Lesen von Daten für Kalender: Privat2. Fehlercode: READ_FAILED. Beschreibung:
Aug 25 16:40:58 reichelt-desktop compiz: pam_ecryptfs: seteuid error
Aug 25 16:40:59 reichelt-desktop unity-panel-ser[2771]: menus_destroyed: assertion 'IS_WINDOW_MENU(wm)' failed
Aug 25 16:40:59 reichelt-desktop unity-panel-ser[2771]: menus_destroyed: assertion 'IS_WINDOW_MENU(wm)' failed
Aug 25 16:40:59 reichelt-desktop systemd[2163]: Stopped target A target that, when running, represents the screen being locked.
Aug 25 16:40:59 reichelt-desktop systemd[2163]: Stopping Backing Service for the Unity Panel in Lockscreen mode...
Aug 25 16:40:59 reichelt-desktop compiz[2749]: WARN 2017-08-25 16:40:59 unity.glib.dbus.proxy GLibDBusProxy.cpp:487 Calling method "EmitEvent" on object path: "/com/ubuntu/Upstart" failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.Unity.Test.Upstart was not provided by any .service files
似乎类似的错误发生在按下锁定按钮后,如何减少锁定前的延迟?但事实却恰恰相反:延迟出现在登录时,而不是解锁时。
如果我必须等待 5 分钟才能解锁屏幕,那确实很耗时。其他人也遇到过这种情况吗?有解决方法吗?
答案1
我没有遇到这个问题,因为我安装了较新的内核(首先是主线 3.13.2http://kernel.ubuntu.com/~kernel-ppa/mainline/,只需下载并安装即可dpkg -i KERNEL.deb
。目前,我的系统运行的是内核 4.12.4+,https://github.com/M-Bab/linux-kernel-amdgpu-binaries,它与我的硬件完美兼容。
答案2
我遇到了类似的问题,只是使用 Radeon RX 560:唤醒屏幕甚至切换视频模式时,计算机都会挂起几分钟。我使用的是 Ubuntu Xenial 16.04。
对我来说,解决方案是安装amdgpu-pro
驱动程序(而不是amdgpu
安装 ubuntu 时附带的驱动程序):
http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx