This question already has an answer here:

I think it is annoying that I have to enter my password every time I close the lid of my computer. There was a setting when the lid is closed: do nothing. in earlier versions, but this feature seems to have been removed.

How do I do configure the computer to not require a password as soon as the laptop is reopened?

marked as duplicate by Zanna, Kulfy, karel, Thomas, vidarlo Jan 1 at 11:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.