打开 dconf 系统配置编辑器 -> 搜索 suspend -> 取消勾选 ubuntu-lock-on-suspend.
如果要在右上角的电源菜单中显示 suspend 按钮的话,使用 firefox(chrome不支持) 打开 https://extensions.gnome.org/extension/826/suspend-button/ 安装扩展.
Linux gnome丢失锁屏按钮解决:http://www.linuxdiyf.com/linux/12821.html