How do I stop the screen from being locked on suspend?

On GNOME the screen locks when I suspend, and I find that a bit annoying (no one else in the house uses ubuntu anyway haha). What can I do to stop this?


For 11.10

What worked for me on Ubuntu 11.10 is to execute the following in a terminal:

gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'

You can also install dconf-tools and use dconf-editor to set the same setting manually.


For 13.04

Open a terminal (Ctrl+Alt+T) and type the following:

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend 'false'