mni*_*ess 5 standby systemd-logind systemd 17.10
在 Gnome Shell 之前的 Ubuntu 版本中,我可以根据笔记本电脑是否连接到电源来设置合上笔记本电脑盖子时想要发生的事情。
现在默认是待机,我可以在 Gnome Tweak Tool 中禁用它。我的首选设置是仅在使用电池时进入待机状态,并在连接到交流电时保持开启状态。
使用 systemd 我只知道完全启用或禁用盖子动作的选项。Unity 如何在 Ubuntu 17.04 中解决这个问题?
这似乎是gnome-settings-daemon中的错误。
Kim Nguy?n以 Python 脚本custom_suspend.py的形式提出了一种解决方法。他/她说:
该脚本应启动为:
systemd-inhibit --who=me --why=because --mode=block --what=handle-lid-switch /path/to/custom_suspend.py从会话启动(gnome-session-properties)
这是公共领域,仅经过轻微测试。它依赖于现有的 gnome/systemd 命令来执行底层操作
| 归档时间: |
|
| 查看次数: |
1983 次 |
| 最近记录: |