16 How to add a locking mechanism to Gnome – archlinux-logout

Just install archlinux-logout-git and add a keyboard shortcut.

Sleep and autolock will not work correctly on Gnome until you active this service via a terminal.

sudo systemctl enable betterlockscreen@$USER

You may want to check the powersaving options in the gnome settings.