Whereas many questions are geared towards implementing hibernation, mine is how to disable it.
I've just encrypted my swap partition, and I such my system can still hibernate, but cannot resume anymore. So, to avoid mistakes I would to disable hibernating system-wide.
Note: I still want suspend!
Run this:
Change
action id="org.freedesktop.upower.hibernate">defaults>allow_active
tono
. Save and exit. That will stop users being able to do that from the desktop.If you have a sleep or hibernate button on your keyboard or case, these will still work IIRC so you need to "break" their default behaviour. Run:
Source.