如何在 Ubuntu 20.04 Live 上防止睡眠

Aka*_*sha 4 live-usb power-management 20.04

我正在使用 Ubuntu 20.04 Live USB 在我的驱动器上运行一些 gparted 和备份工作,但它会在一段时间后继续休眠,停止备份过程。

当我尝试打开它时,设置菜单崩溃,因此我无法访问电源设置以关闭睡眠。我如何阻止它进入睡眠状态?

我尝试过的事情:

  • 尝试使用 Gparted Live .iso - 不适用于我的新硬件

  • sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
    
    Run Code Online (Sandbox Code Playgroud)
  • 打开“安装 Ubuntu 20.04 LTS”安装程序并将其保持打开状态 - 不起作用

出于某种原因,将重物放在键盘上打字到终端不起作用

cod*_*ord 7

如果您可以安装 dconf-editor(通过 Ubuntu 软件或通过命令行),那么您应该能够使用该 GUI 工具来编辑相关设置。

使用dconf-editor进行搜索org.gnome.settings-daemon.plugins.power

我认为您需要将默认sleep-inactive-ac-type值更改为sleep-inactive-battery-typesuspendnothing

有关该工具的更多信息请参见:https ://wiki.gnome.org/Apps/DconfEditor


Aka*_*sha 7

使用软件中心的咖啡因工作