升级到 20.04 后,Ubuntu 上的锁定屏幕不起作用。我已在调整中将其打开,但它不起作用。当我单击“锁定”时,屏幕只会重新加载并在此过程中禁用一些扩展。它根本不起作用。我该如何解决这个问题?
ls-al〜/ .local/share/gnome-shell/extensions:
total 80
drwxrwxr-x 20 me me 4096 May 10 09:32 .
drwx------ 3 me me 4096 May 25 15:58 ..
drwxrwxr-x 4 me me 4096 Jun 6 2019 [email protected]
drwxr-xr-x 3 me me 4096 Mar 14 07:08 [email protected]
drwxrwxr-x 3 me me 4096 May 10 09:30 [email protected]
drwxr-xr-x 4 me me 4096 Dec 12 14:55 [email protected]
drwxrwxr-x 4 me me 4096 Jun 7 2019 [email protected]
drwxrwxr-x 3 me me 4096 May 9 22:17 [email protected]
drwxrwxr-x 4 me me 4096 May 9 22:13 [email protected]
drwxr-xr-x 5 me me 4096 Apr 29 16:20 [email protected]
drwxrwxr-x 3 me me 4096 May 10 09:31 [email protected]
drwxrwxr-x 3 me me 4096 Apr 21 2019 fq@megh
drwxrwxr-x 3 me me 4096 May 10 09:30 [email protected]
drwxrwxr-x 3 me me 4096 May 9 22:14 [email protected]
drwxrwxr-x 3 me me 4096 May 10 09:31 [email protected]
drwxr-xr-x 2 me me 4096 Nov 28 12:00 removeaccesibility@lomegor
drwxrwxr-x 4 me me 4096 May 9 22:14 screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com
drwxrwxr-x 4 me me 4096 May 9 22:15 [email protected]
drwxrwxr-x 3 me me 4096 May 9 22:15 [email protected]
drwxrwxr-x 3 me me 4096 May 10 09:32 [email protected]
ls-al/usr/share/gnome-shell/extensions:
total 68
drwxr-xr-x 17 root root 4096 Oct 29 2019 .
drwxr-xr-x 7 root root 4096 May 23 10:13 ..
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 desktop-icons@csoriano
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 native-window-placement@gnome-shell-extensions.gcampax.github.com
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com
drwxr-xr-x 3 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 3 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 2 root root 4096 May 9 18:04 [email protected]
答案1
天哪!@#$% 蝙蝠侠!你的 GNOME Shell 扩展实在是太多了,而且很多扩展的功能都存在重叠。
第一步...
去https://extensions.gnome.org/local/并禁用全部扩展,然后使用ALT+ F2,然后r,然后重新启动 GNOME Shell ENTER。然后重新测试锁定屏幕,看看它是否正常工作。
第二步...
让我们先清理一下您的/usr/share/gnome-shell/extensions
...
sudo rm -r /usr/share/gnome-shell/extensions/*gcampax.github.com
使用前面的说明重新启动 GNOME Shell。
这应该会让你在/usr/share/gnome-shell/extensions
...中得到这些扩展。
drwxr-xr-x 2 root root 4096 May 9 18:04 desktop-icons@csoriano
drwxr-xr-x 3 root root 4096 May 9 18:04 [email protected]
drwxr-xr-x 3 root root 4096 May 9 18:04 [email protected]
使用我之前提供的相同网址,删除任何剩余的扩展,这些扩展要么 1) 不是真正需要的,要么 2) 功能重叠。然后逐个重新启用剩余的扩展,看看其中一个扩展是否会导致锁屏问题。每次禁用/启用/删除更改后,重新启动 GNOME Shell。