Where can I change the automatic lock screen preference? [closed]

I'm using ubuntu in a VM, so, I leave it idle from time to time. When I go back obviously the screen is locked, but I would like to configure the idle time for something around 10 minutes. Where can I do this?


Solution 1:

Open up the screensaver preferences: System ➜ Preferences ➜Screensaver.

You will see a slider to set the idle time:

enter image description here

Solution 2:

To prevent the screen from being locked when the computer wakes up from suspend or hibernation, do the following:

open gconf-editor

navigate to: apps > gnome-power-manager > lock

disable the appropriate flags.

This worked like a treat for me

Thanks