Debian9/Ubuntu16.04禁止休眠

方法一

禁止休眠

$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

解除禁止休眠

sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

方法二

  1. 編輯 /etc/default/grub文件,將 GRUB_CMDLINE_LINUX_DEFAULT="quiet"改爲 GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi=off apm=off"
  2. 執行 sudo update-grub命令

參考博客:https://shauway.github.io/2018/03/21/Debian9:Ubuntu16.04禁止休眠/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章