The display on your device switches off automatically after a while. To unlock it again, use complex patterns or alphanumeric passwords.
More information
Your password should be at least 20 characters long. Remember that attacks can also come from your immediate environment. For example, if partners access your device unintentionally. Passwords are always better than unlock patterns as they can be easily observed.