3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu 22.04 の自動スリープを無効にする

Last updated at Posted at 2024-03-16

方法

リモートからSSHログインなどを受け付けなくなってしまう.

解決方法:
次のようにスリープ機能を無効にする.

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

なお戻すときは次のようにする.

sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

参考文献:
https://askubuntu.com/questions/47311/how-do-i-disable-my-system-from-going-to-sleep

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?