Another way that seem to fix the problem is to create a file named /etc/polkit-1/localauthority/50-local.d/enable-suspend.pkla with this content:
[Enable Suspend on Idle] Identity=unix-user:* Action=org.freedesktop.login1.suspend ResultAny=auth_admin_keep ResultInactive=yes ResultActive=yes
Reboot isn't seem to be required. Seem to be more secure as there is no need to disable session locking.
Another way that seem to fix the problem is to create a file named /etc/polkit- 1/localauthorit y/50-local. d/enable- suspend. pkla with this content:
[Enable Suspend on Idle] unix-user: * org.freedesktop .login1. suspend auth_admin_ keep
Identity=
Action=
ResultAny=
ResultInactive=yes
ResultActive=yes
Reboot isn't seem to be required. Seem to be more secure as there is no need to disable session locking.