I made these and still, screen locks itself.
In power managemnt settings, i both select “turn off screen” when lid is close for ac and battery.
i restart the system with
systemctl restart systemd-logind . and i restart my computer.
then i changed
it still locks when i close the lid.
edit: i changed upower.conf to default (false) and made
HandleLidSwitch=suspend. it still locks but but i got used to it. I close the laptop lid to suspend the computer and lock the system so no one gets in. If I’m going to enter later, I choose suspend manually.