Prevent Ubuntu Server from Sleep: Difference between revisions

From WikiMLT
mNo edit summary
m (Стадий: 1 [Фаза:Идентифициране, Статус:Създаване]; Категория:Linux Server)
Line 1: Line 1:
<noinclude><!--[[Category:Linux_Server|?]]-->{{ContentArticleHeader/Linux_Server}}</noinclude>
== References ==
* ...
* ...
== Section 1 ==
...
Disable suspend:
Disable suspend:
<syntaxhighlight lang="shell" line="1">
<syntaxhighlight lang="shell" line="1">
Line 10: Line 19:
* [https://unix.stackexchange.com/q/25133/201297 Unix & Linux : Ubuntu Server Continuously „goes to sleep“]
* [https://unix.stackexchange.com/q/25133/201297 Unix & Linux : Ubuntu Server Continuously „goes to sleep“]
* [https://askubuntu.com/q/513710/566421 Ask Ubuntu: How to prevent Ubuntu Server sleep/hibernation]
* [https://askubuntu.com/q/513710/566421 Ask Ubuntu: How to prevent Ubuntu Server sleep/hibernation]
<noinclude>
<div id='devStage'>
{{devStage
| Прндл  = Linux Server
| Стадий = 1
| Фаза  = Идентифициране
| Статус = Създаване
| ИдтПт  = {{REVISIONUSER}}
| ИдтДт  = {{Today}}
| ИдтРв  = {{REVISIONID}}
}}
</div>
</noinclude>

Revision as of 15:24, 5 August 2022

Ref­er­ences

Sec­tion 1

… Dis­able sus­pend:

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

Ref­er­ences: