83
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

モニターを閉じるとサスペンドされるのを防止

ubuntu server 16.04をノートPCにインストールしてみた。
cui環境なのにモニターを閉じるとサスペンド(スリープ)になるため調査

Ubuntu Server 13.10 now goes to sleep when closing laptop lid - Ask Ubuntu

/etc/systemd/logind.conf
- #HandleLidSwitch=suspend
+ HandleLidSwitch=ignore

設定反映

sudo systemctl restart systemd-logind
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
83
Help us understand the problem. What are the problem?