Home Elementary OS Configure laptop lid close action in elementary OS

Configure laptop lid close action in elementary OS

by Kiran Kumar
Published: Last Updated on
elementary os

Laptop users running elementary OS Freya may notice 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 to do nothing when closed with an AC adapter plugged in and hibernate when closed in battery state. However, 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.

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 the lid when closed with adapter (AC) connected.

Similarly, do the same on item ‘lid-close-battery-action,’ which gets applied when the laptop’s lid is closed while on battery.

Configure Laptop Lid Close Action on elementary OS

Configure Laptop Lid Close Action on elementary OS

You may also like

2 comments

shawn September 2, 2016 - 3:13 AM

Thanks homie! Got you after I make my first million.

Reply
msm June 6, 2017 - 2:42 PM

Thanks!!! You saved me!

Reply

Leave a Reply to shawn Cancel Reply

fl_logo_v3_footer

ENHANCE YOUR LINUX EXPERIENCE.



FOSS Linux is a leading resource for Linux enthusiasts and professionals alike. With a focus on providing the best Linux tutorials, open-source apps, news, and reviews written by team of expert authors. FOSS Linux is the go-to source for all things Linux.

Whether you’re a beginner or an experienced user, FOSS Linux has something for everyone.

Follow Us

Subscribe

©2016-2023 FOSS LINUX

A PART OF VIBRANT LEAF MEDIA COMPANY.

ALL RIGHTS RESERVED.

“Linux” is the registered trademark by Linus Torvalds in the U.S. and other countries.