I have ubuntu 14.04 installed on my dell e5440. What I'm trying to do is to make my computer suspend when I close the lid when I'm plugged in and hibernate when on battery power.

What I've managed so far is to override the power settings to hibernate when I close the lid.


  • Please do not add [SOLVED] to the title. Marking an answer as accepted is enough.
    – muru
    Jul 31 '15 at 23:12

Install gnome-tweak-tool by:

sudo apt-get install gnome-tweak-tool

Hit Super key/Windows key and search for Tweak Tool. Go to 'Power' options and change the behavior as you wish.

enter image description here

  • This is is for gnome exclusively or does this cover Unity as well?
    – Alex
    Jul 30 '15 at 18:53
  • It suspends the computer although I told it to hibernate on battery power, do I need to do something more? I looked into the power options and it is blank for the spot of close lid on battery
    – narwhal
    Jul 30 '15 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.