I had Ubuntu 18.04 LTS and I upgraded to 20.04. The lock screen to ask password after some time it was working perfectly. After the upgrade stopped working. I tried to go to Ubuntu settings and check if it’s enabled and yes is enabled to lock screen ifor 5 minutes but the screen is never locked again after the upgrade. Any idea how to fix it?

Thank you