OS/Troubleshooting

[Ubuntu] systemd-sleep: Entering sleep state 'suspend'... 절전 모드로 빠질 때

PeamS 2025. 11. 2. 08:28

증상

서버 기동 후 30분이 지나면 서버가 절전 모드로 빠짐

로그

Jan 01 23:59:59 localhost NetworkManager[]: <info>  [] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Jan 01 23:59:59 localhost ModemManager[1437]: <info>  [sleep-monitor-systemd] system is about to suspend
Jan 01 23:59:59 localhost NetworkManager[]: <info>  [] manager: NetworkManager state is now ASLEEP
Jan 01 23:59:59 localhost systemd[1]: Reached target Sleep.
Jan 01 23:59:59 localhost systemd-sleep[]: Entering sleep state 'suspend'...

해결

/etc/systemd/sleep.conf 파일 Sleep 에 다음 내용 추가

  • AllowHybridSleep=no
  • AllowSuspend=no
  • AllowHibernation=no
  • AllowSuspendThenHibernate=no
vim /etc/systemd/sleep.conf

[Sleep]
# Sleep 밑에 4줄 추가
AllowHybridSleep=no
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=180min

 

설정 반영

systemctl daemon-reload