How to prevent computer from automatically sleeping and/or hibernating?
Here are the two common Gnome 3 ways which usually disable suspend; otherwise you can try booting with the acpi=off
parameter:
-
Power Settings:
-
gnome-tweak-tool
(install if necessary):
From System Settings or by searching in Dash, go to Power settings. You'll find what you need there ;)
And to prevent from locking, go to Brightness and Lock: