Configure Laptop lid close action in elementary OS Freya

Laptop users running elementary OS Freya may notice that there is no options in the power panel to configure the laptop lid close action. By default settings of elementary OS, when you close the lid, the laptop goes into suspend mode, which is nothing much sleep mode. Personally, I prefer to leave the laptop do nothing when closed with AC adapter plugged in, and hibernate when closed in battery state. If you are in the same boat as me or you may want to hibernate to save power or something else, you can tweak the laptop lid-close action to whatever you want using dconf editor.

elementary os

If you have not installed it yet, go ahead and launch ‘Terminal’ and type the following commands one at a time.

sudo apt-get update
sudo apt-get install nautilus dconf-tools

Terminal elementary OS - apt get install
Terminal elementary OS – apt get install

Go to ‘Applications’ and launch ‘dconf-editor’.

In the left pane, go to : org > gnome > settings daemon > plugins > power. Then in the right pane, click on ‘lid-close-ac-action’ to get several options including blank, suspend, shutdown, hibernate, interactive, nothing, and logout. Select whatever you want from the list and this gets applied immediately for lid when closed with adapter (AC) connected.

In the similar way do the same on item ‘lid-close-battery-action’ and this gets applied when laptop’s lid is closed while on battery.

Configure Laptop Lid Close Action on elementary OS
Configure Laptop Lid Close Action on elementary OS

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,873FansLike
265FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to create a Clonezilla Live USB drive on Linux

There are three Clonezilla types, Clonezilla live, Clonezilla lite server, and Clonezilla SE (server edition). Clonezilla live for single machine backup and restoration. While Clonezilla's lite server is for massive deployment.
If you are looking for an open-source Linux alternative for Acronis True Image, Norton Ghost, Paragon Drive Copy, you have landed in the right place. Meet Clonezilla. Clonezilla is a free and open-source disk partition and disk cloning software that helps you also do system deployment, bare metal backup, and recovery.
best apps for ubuntu
OK, this one is going to be a long one, so grab a cup of coffee and scroll through the best apps that we think are must-have for your Ubuntu PC. We have hand-picked each one of these considering the most common categories that suit an average Linux user.
MX Linux 19 Features and Desktop Tour
MX Linux is a Linux distribution based on Debian stable and using core antiX components. The distributions MX Tools is very popular among users and combined with other several ready-to-use tools, it is great for users who prefer to tweak their distro to their liking. In this video, we will take you through the features tour showing casing MX Linux 19.