Use the Power settings to put the display to sleep and check the box "ask for a password on resume." Yes I may have a word wrong on the checkbox but I'm not going to correct that.
Bob