Skip to content

Disable sleep upon lid close. #54

@a-t-0

Description

@a-t-0

https://askubuntu.com/a/372616

Open the /etc/systemd/logind.conf file in a text editor as root, for example,

 sudo -H gedit /etc/systemd/logind.conf

If HandleLidSwitch is not set to ignore then change it:

 HandleLidSwitch=ignore

Make sure it's not commented out (it is commented out if it is preceded by the symbol #) or add it if it is missing.

Restart the systemd daemon (be aware that this will log you off) with this command:

sudo systemctl restart systemd-logind

or, from 15.04 onwards:

sudo service systemd-logind restart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions