Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I tell Ubuntu to do nothing when I close my laptop lid?

I'm running my laptop essentially as a desktop, I have two external monitors hooked up, a bluetooth keyboard, and a wireless USB mouse. It's plugged into my speaker system as well. What I'd really like to do is to be able to shut the laptop lid without it automatically disabling video output to my monitors. Is there a way I can make this happen by tweaking some configuration value?

share|improve this question

marked as duplicate by Marco Ceppi Jun 27 '11 at 12:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Thank you, I've added myself as being affected. – Naftuli Tzvi Kay May 25 '11 at 16:42
up vote 5 down vote accepted

All that needs to be done is to edit the following key and set it to "nothing":

gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_ac "nothing"

Then, magically, nothing will happen :)

share|improve this answer
This doesn't work in 12.04. – Erigami May 24 '12 at 14:36
Does not work on elementary os. only resets the settings – DominikDitoIvosevic Dec 20 '14 at 12:23

The top answer to this question does a good job of explaining how to do this for both AC and battery modes, along with instructions on how to change it back to blanking the screen: How can I tell Ubuntu to do nothing when I close my laptop lid?

share|improve this answer

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