从 Ubuntu 18 更新后停止工作系统锁定。我正在使用 gdm3,但没有任何帮助。Super + L
并且gnome-screensaver-command -l
不工作。命令屏幕仅闪烁一次后,什么也没有发生。
这可能是[重复],但我发现没有一个答案适合我。
brieucdug@sildenafil:~$ uname -a ; gnome-shell --version ; lightdm --version
Linux sildenafil 5.4.0-31-generic #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
GNOME Shell 3.36.2
lightdm 1.30.0
Run Code Online (Sandbox Code Playgroud)
我不知道从什么时候开始,我怀疑它是随着安装而来的lightdm
,我的屏幕没有超时锁定,也没有暂停(盖子关闭,这就是我第一次发现问题的方式)。我确认当我合上盖子时我的计算机确实进入暂停状态。
brieucdug@sildenafil:~$ gsettings list-recursively | grep -i -E "screen.*lock|lock.*screen"
com.canonical.unity.settings-daemon.peripherals.touchscreen orientation-lock false
org.gnome.settings-daemon.peripherals.touchscreen orientation-lock false
org.gnome.desktop.privacy usb-protection-level 'lockscreen'
org.gnome.desktop.lockdown disable-lock-screen false
org.gnome.desktop.notifications show-in-lock-screen true
org.gnome.Vino lock-screen-on-disconnect false
org.gnome.desktop.screensaver ubuntu-lock-on-suspend true
org.gnome.desktop.screensaver lock-enabled true
org.gnome.desktop.screensaver lock-delay uint32 0
Run Code Online (Sandbox Code Playgroud)
注意:我已经尝试编辑,/etc/systemd/logind.conf
但我愿意接受建议
从Settings -> Privacy,我得到了
他们都没有锁定我的屏幕。但手动锁定选项工作正常。(我确实在安装时收到了一些关于自动锁定的错误消息)
关于如何解决它的任何想法?我正在使用lightdm而不是 gnome-gdm3
在快捷方式中,我有Super+L用于锁定屏幕。但是按下它 - 没有任何反应。在系统日志中:
gsd-media-keys[1979]: Couldn't lock screen: Cannot invoke method;
proxy is for the well-known name org.gnome.ScreenSaver without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
Run Code Online (Sandbox Code Playgroud)
从界面锁定工作正常。
系统信息:Ubuntu 19.04 升级到 20.04
Linux laptop 5.4.0-21-generic #25-Ubuntu SMP Sat Mar 28 13:10:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Run Code Online (Sandbox Code Playgroud)
GNOME Shell 3.36.1
其他信息:
gsettings get org.gnome.desktop.screensaver lock-enabled = true
gsettings get …
Run Code Online (Sandbox Code Playgroud) 我正在从实时会话中运行 Ubuntu,以查看是否可以重现此错误。虽然我仍然应该完成工作,但我也在努力做到这一点。因此,我必须登录公司资源,并在不在桌面时锁定屏幕。
我在默认的 ubuntu/999 用户帐户上设置了密码,但 Ctrl-Alt-L 仍然没有锁定屏幕,它只是使显示器变黑。
我怎样才能拥有正确的屏幕锁定?也许我应该安装xscreensaver
...
每当我尝试锁定屏幕时,显示会瞬间闪烁然后返回屏幕。这才开始 3 天前。我尝试锁定时的 dmesg 输出类似于。
"[49734.537932] traps: gnome-shell[16706] general protection fault ip:7fd71ff59252 sp:7ffcdf19b1a0 error:0 in libst-1.0.so[7fd71ff39000+4c000]
[49865.726242] gnome-shell[16827]: segfault at 20 ip 00007f2c20ba2252 sp 00007fff0993fd00 error 4 in libst-1.0.so[7f2c20b82000+4c000]
[49865.726250] Code: 48 83 c3 01 41 39 9f 30 01 00 00 0f 8e 27 01 00 00 49 8b 87 28 01 00 00 48 8d 35 ee 07 03 00 48 8b 2c d8 48 8b 45 00 48 8b 00 <4c> 8b 20 4c 89 e7 e8 …
Run Code Online (Sandbox Code Playgroud)