I am using Ubuntu 18.04 and Gnome 3. Since the last update my server automatically sleep after 30 whenever it was active or not.
I looked for solution the whole last night and I found a command that can fix for temporarily. <code>#systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target</code>