We may edit the configure file "/etc/systemd/logind.conf" and change one line from




And then restart the service.

Restart the systemd daemon with this command:

sudo restart systemd-logind

or, from 15.04 onwards:

sudo service systemd-logind restart

We can also use command:

sudo service systemd-logind status

To check current status.

See: How can I tell Ubuntu to do nothing when I close my laptop lid? - Ask Ubuntu

Categories: Code


Ideals are like the stars: we never reach them, but like the mariners of the sea, we chart our course by them.

Leave a Reply

Your email address will not be published. Required fields are marked *