锁屏不工作

锁屏不工作

自从更新到 Ubuntu 21.10 后,我的锁屏就不再起作用了。我正在使用 budgie 桌面,按Super+L锁定屏幕,系统日志中发生了这种情况:

Oct 30 07:58:35 lenovo gsd-media-keys[9616]: message repeated 10 times: [ Couldn't lock screen: GDBus.Error:org.freedes
ktop.DBus.Error.ServiceUnknown: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell.ScreenS
hield was not provided by any .service files]
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]: WARNING : Error getting shell mode
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]: CRITICAL: Error getting shell version
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]: WARNING : Could not list shell extensions
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]: Traceback (most recent call last):
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]:   File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_a
ppearance.py", line 144, in __init__
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]:     extensions = self._shell.list_extensions()
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]:   File "/usr/lib/python3/dist-packages/gtweak/gshellwrapper.py", l
ine 76, in list_extensions
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]:     return self._proxy.proxy_extensions.ListExtensions()
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]:   File "/usr/lib/python3/dist-packages/gi/overrides/Gio.py", line 
349, in __call__
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]:     result = self.dbus_proxy.call_sync(self.method_name, arg_varia
nt,
Oct 30 08:01:21 lenovo budgie-panel.desktop[122417]: gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.fre
edesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell.Extensions” on object at path /org/gnome/Shell (1
9)
Oct 30 08:01:21 lenovo dbus-daemon[1711]: [system] Activating via systemd: service name='org.freedesktop.hostname1' uni
t='dbus-org.freedesktop.hostname1.service' requested by ':1.167' (uid=1000 pid=122417 comm="/usr/bin/python3 /usr/bin/g
nome-tweaks " label="unconfined")


答案1

在这里找到了解决方案:

https://discourse.ubuntubudgie.org/t/lockscreen-not-working-after-update-to-21-10/5394/20

正确 - 所以 gnome-shell 在这里搞砸了 budgie。

这有用吗?

pkill -9 -f /usr/bin/gjs /usr/share/gnome-shell/org.gnome.ScreenSaver 等待几秒钟,然后尝试运行

gnome 屏幕保护程序

答案2

谢谢你的想法!我从 Ubuntu Budgie 20.04 升级到 22.04 时也遇到了同样的问题,“锁定”按钮停止工作。删除 gnome-shell 后它又开始工作了:sudo apt-get remove gnome-shell

但是 (!) 不幸的是,结果是我桌面上的所有图标都停止了工作,并且即使重新安装了 gnome-shell 后单击任何图标也没有任何反应。

相关内容