Prevent Ubuntu Server from Sleep: Difference between revisions
From WikiMLT
mNo edit summary |
m Стадий: 6 [Фаза:Утвърждаване, Статус:Утвърден]; Категория:Linux Server |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude><!--[[Category:Linux_Server|?]]-->{{ContentArticleHeader/Linux_Server}}</noinclude> | |||
Disable suspend: | Disable suspend: | ||
<syntaxhighlight lang="shell" line="1"> | <syntaxhighlight lang="shell" line="1"> | ||
Line 10: | Line 11: | ||
* [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 | |||
| Стадий = 6 | |||
| Фаза = Утвърждаване | |||
| Статус = Утвърден | |||
| ИдтПт = Spas | |||
| РзбПт = Spas | |||
| АвтПт = Spas | |||
| УтвПт = {{REVISIONUSER}} | |||
| ИдтДт = 5.08.2022 | |||
| РзбДт = 5.08.2022 | |||
| АвтДт = 5.08.2022 | |||
| УтвДт = {{Today}} | |||
| ИдтРв = [[Special:Permalink/29978|29978]] | |||
| РзбРв = [[Special:Permalink/29981|29981]] | |||
| АвтРв = [[Special:Permalink/29982|29982]] | |||
| УтвРв = {{REVISIONID}} | |||
}} | |||
</div> | |||
</noinclude> |
Latest revision as of 14:25, 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