Prevent Ubuntu Server from Sleep: Difference between revisions
From WikiMLT
m Стадий: 3 [Фаза:Разработване, Статус:Разработван]; Категория:Linux Server |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude><!--[[Category:Linux_Server|?]]-->{{ContentArticleHeader/Linux_Server}}</noinclude> | <noinclude><!--[[Category:Linux_Server|?]]-->{{ContentArticleHeader/Linux_Server}}</noinclude> | ||
Disable suspend: | Disable suspend: | ||
<syntaxhighlight lang="shell" line="1"> | <syntaxhighlight lang="shell" line="1"> |
Revision as of 14:24, 5 August 2022
Disable suspend:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Bring it back:
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
References:
- Unix & Linux : Ubuntu Server Continuously „goes to sleep“
- Ask Ubuntu: How to prevent Ubuntu Server sleep/hibernation