Karmic: gnome-power-manager hides “Do nothing” from the GUI
So, I wanted to watch some video on an external monitor connected to my Ubuntu 9.10 Karmic Koala laptop, but everytime I closed the laptop’s lid, the external monitor would turn off. This is when I noticed the option of Do nothing in Power Management was noticeably absent.
The only choices available under On AC Power > When laptop lid is closed were Blank screen, Suspend, Hibernate, and Shutdown, all of which aren’t acceptable choices. Currently set at Blank screen, it would blank both screens, laptop and external, which was defeating the purpose. Since my laptop turns its own screen off when the lid is closed, I don’t need Ubuntu doing it for me.
After some digging, I came across this Launchpad bug explaining the same condition. Lars Bengtsson’s comment explained with a link that there was a change in the gnome-power-manager package back in July that decided to hide the Do nothing option unless it was specified in GConf.
There are two ways to specify Do nothing in GConf. Pick what you’re more comfortable with. The GUI way is to press ALT-F2 and run gconf-editor. Use the tree to navigate to apps > gnome-power-manager > buttons > lid_ac and change it to nothing. The Long description that appears below in the Key Documentation area provides the other possible values.

From a command line, or in a terminal window, use the following command to change the value to nothing:
gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_ac "nothing"
You should now see Do nothing as an option from within the Power Management application.

It’s only semi-persistent. Once you change the option to something else, Do nothing is hidden again. You’ll need to repeat the process to add it back. Some comments from the bug entry suggest this may not work for everyone. I suspect there are other issues preventing them from keeping an external monitor active with a laptop’s lid closed which I couldn’t suggest a reason.



February 16th, 2010 at 2:27 pm
[...] this rather handy post that tells you what to do in newer versions of Gnome Power Manager, which for some reason hide the [...]
May 6th, 2010 at 3:15 am
Thanks!
Now I can watch everything without the lid like middle opened.
October 28th, 2010 at 9:46 pm
Thanks for that !
It’s really stupid that the option isn’t there anymore !
I hope your tips will get it fixed for me too.
October 28th, 2010 at 10:06 pm
And they did !
Thanks again !
November 8th, 2010 at 9:30 pm
My screen was flickering. Turns out my laptop started sending the message that the screen had been closed. I applied your fix to ‘do nothing’ and the problem is solved. Thanks!
November 17th, 2010 at 2:22 am
Why developers keep making ubuntu so hard to configure? Why should they hide one option of 5. Aff…
Well, thank you for the post. At least posts like that keep saving our time.
November 27th, 2010 at 4:43 am
I found there is still a problem, the configuration you mentioned above can resolve the problem after login, but if I close the laptop lid before login, the system will still hang and never recover! Is there any fix for this?