我可以将自动关机时间从 60 秒缩短至 5 秒吗?

我可以将自动关机时间从 60 秒缩短至 5 秒吗?

刚刚加载了 Ubuntu 10.10 并自行在硬盘上加载了所有更新(没有 Windows)。想将系统自动关机的时间从 60 秒更改为 5 秒,这样只需点击一次关机图标,5 秒后系统就会关机,或者如果我想重启,就给我足够的时间点击重启按钮。有什么办法吗?

答案1

目前无法配置超时,事实上超时已被删除。但有几个愿望清单错误可以将其添加回来并使其可配置,您可能有兴趣对此发表评论:

https://bugs.launchpad.net/indicator-session/+bug/623804

https://bugs.launchpad.net/indicator-session/+bug/607575

您不应该使用“sudo shutdown -h now”关闭用户会话,而应该使用“gnome-session-save --logout”告诉会话您想要关闭,或者如果有程序抑制布局“gnome-session-save --force-logout”。

答案2

目前,如果不编辑和编译源代码,则无法执行此操作。但是,您可以使用命令通过 CLI 立即关闭sudo shutdown -h now

答案3

打开对话框:

Ctrl+ Alt+ Del/usr/lib/indicator-session/gtk-logout-helper --logout

/usr/lib/indicator-session/gtk-logout-helper --shutdown

/usr/lib/indicator-session/gtk-logout-helper --restart

创建您自己的快捷方式,例如Ctrl+ Alt+End表示关机。

来源:ubuntuusers.de

相关内容