Prevent Ubuntu Server from Sleep: Difference between revisions
From WikiMLT
mNo edit summary |
m Стадий: 4 [Фаза:Авторизиране, Статус:Разработен]; Категория:Linux Server |
||
Line 15: | Line 15: | ||
{{devStage | {{devStage | ||
| Прндл = Linux Server | | Прндл = Linux Server | ||
| Стадий = | | Стадий = 4 | ||
| Фаза = | | Фаза = Авторизиране | ||
| Статус = | | Статус = Разработен | ||
| ИдтПт = Spas | | ИдтПт = Spas | ||
| РзбПт = {{REVISIONUSER}} | | РзбПт = Spas | ||
| АвтПт = {{REVISIONUSER}} | |||
| ИдтДт = 5.08.2022 | | ИдтДт = 5.08.2022 | ||
| РзбДт = {{Today}} | | РзбДт = 5.08.2022 | ||
| АвтДт = {{Today}} | |||
| ИдтРв = [[Special:Permalink/29978|29978]] | | ИдтРв = [[Special:Permalink/29978|29978]] | ||
| РзбРв = {{REVISIONID}} | | РзбРв = [[Special:Permalink/29981|29981]] | ||
| АвтРв = {{REVISIONID}} | |||
}} | }} | ||
</div> | </div> | ||
</noinclude> | </noinclude> |
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