Linux desktop blocks energy saving
Probably the problem is the permissions that are given by default to the login application. In this case it is as simple as updating them in the policy file /usr/share/polkit-1/actions/org.freedesktop.login1.policy and modifying the corresponding section:
With this modification we would have solved this problem.