最近安裝好的Debian 11 Bulleye開機一陣子就會睡著,睡著的狀態是電源燈會閃爍,硬碟燈全暗且螢幕沒有任何畫面。 推測睡著和系統設定有關。使用下面的指令來確認:
- systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
若有看到下面的字樣,則代表系統有五花八門睡著的方式:
loaded (/lib/systemd/system/sleep.target; static)
loaded (/lib/systemd/system/suspend.target; static)
loaded (/lib/systemd/system/hibernate.target; static)
loaded (/lib/systemd/system/hybrid-sleep.target; static)
解決方法則是用下面指令關閉systemd上面會導致睡著的設定:

