I want to set the system to go to hybrid-sleep after some idle time.
I have an option in System Settings -> Power to suspend.
How can I change it to hybrid-sleep?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I got an answer at Russian Ubuntu forums.
For some reason
30min does not work. It works in seconds, that is OK.
Another option is to change the systemd.suspend service. It allows to use the GUI setting for idle timeout. But I do not recommend to use this one, since there is a perfect CLI solution.
I changed the systemd suspend service, but I do not think it is a perfect solution. But for a desktop without a UPS it may be a good option.
I changed a line in