Com*_*eat 7 suspend laptop power-management 16.04
当我合上笔记本电脑盖时,我希望笔记本电脑处于暂停状态。
我已经将电源设置设置为“暂停”,如链接图片所示(语言设置为德语)。
但是桌面没有进入挂起模式,而是切换到外接显示器。
我怎样才能防止这种情况?
如果尚未安装,请安装 dconf-editor,您可以在软件中心或终端中找到它:
sudo apt-get install dconf-editor
Run Code Online (Sandbox Code Playgroud)
打开它并导航到:
org >> gnome >> settings-daemon >> plugins >> power
激活以下复选框并退出 dconf-editor:
盖子关闭暂停与外部监视器
更新:如果以上说明没有显示出想要的效果,请打开以下文件:
gksudo gedit /etc/systemd/logind.conf
Run Code Online (Sandbox Code Playgroud)
取消注释(删除 # in)以下行并将其设置为“暂停”而不是“忽略”:
HandleLidSwitchDocked=暂停
保存、退出和重启