Lock screen button missing in Ubuntu 17.10 and 18.04

Ubuntu 17.10/18.04 锁屏按钮消失,无法锁屏的问题。

The "Lock Screen" button was missing at top right corner of Ubuntu desktop. It was in the middle between "Setting" and "Power" button when running 17.04. After I upgraded to 17.10 through commands in terminal, the "Lock Screen" button disappears. Upgrading to 18.04 does not fix this.


Neither SUPER+L nor CTRL+ALT+L works. Lock screen related settings under "Settings - Privacy" is grey and can't be modified.


By default Ubuntu 18.04 is using lightDM as display manager. Switching to GDM3 does not help on this issue.


Finally after some digging, it turns out that one command could fix this:

$ gsettings set org.gnome.desktop.lockdown disable-lock-screen false


Before changing this config, read it out to make sure "disable-lock-screen" is "true":

$ gsettings get org.gnome.desktop.lockdown disable-lock-screen


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值