Closing the lid on my Dell Studio 15 which is running Ubuntu 10.04 freezes the screen. This is a new problem in Ubuntu 10.04 which did not exist in 9.10
I have tried playing with all the settings in System->Preferences->Screensaver but nothing seems to make any difference. (please note the Power Management settings are accessible from here so I have tried those too.)
I don't need hibernate or suspend. I just want to be able to close the lid, and then open it and still have a working laptop.
Is their a settings somewhere that will make Ubuntu ignore the lid closing?
I solved this by changing to the closed source FLGRX driver.
These settings are in System -> Preferences -> Power Management.
Make sure there is no SD card inserted.
http://ubuntuforums.org/showthread.php?t=1478787 has 120,000 views of 980 responses - it is still possible that one of the solutions will work for you.
http://bugs.launchpad.net/bugs/585765 is about the most useful bug report, although https://bugs.launchpad.net/bugs/528981 worked for me (mainline kernel 2.6.34 solution).
gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_ac "nothing"