![在 Ubuntu 18.04 上的终端上设置暂停空闲延迟时间](https://linux22.com/image/899542/%E5%9C%A8%20Ubuntu%2018.04%20%E4%B8%8A%E7%9A%84%E7%BB%88%E7%AB%AF%E4%B8%8A%E8%AE%BE%E7%BD%AE%E6%9A%82%E5%81%9C%E7%A9%BA%E9%97%B2%E5%BB%B6%E8%BF%9F%E6%97%B6%E9%97%B4.png)
答案1
要设置 AC 超时,请运行
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout <VALUE>
代替<VALUE>
以秒为单位的时间,例如
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 3600
同样,要设置笔记本电脑电池超时,请运行
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout <VALUE>