ユーザ用ツール

勝手にSleepする(Ubuntu)

概要

Ubuntu 20LTSのカーネルパッケージを5.4.0-99から5.4.0-100に更新した後、SSH経由でリモートから当該サーバにアクセスしているPCをSleepすると、Ubuntu側も勝手にSleepしてしまう現象が発生するようになった。

ログを確認すると、NetworkManagerが sleep requested で、システムを Sleep させていることが分かった。

対応

とりあえず、以下の方法で対応した。

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

解除は unmask すればいい。

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information