I am on Elementary OS Juno. When I close the lid of my laptop the expected behavior is the machine goes to sleep immediately. But this doesn't happen. But a second close manages to put the computer to sleep.
Next, when I open the lid the expected behavior is to show the login screen immediately.But it shows the last used screen for a moment before showing login screen which is both a security and privacy issue.
Is there a way to solve this?