DTechs

Please Ubuntu , don’t standby/hibernate

I am using my former laptop as home file/media server.However, it is constantly hibernating and sleeping.

Here, how you can disable standby/hibernate in Ubuntu 20.04

systemctl mask sleep.target
systemctl mask suspend.target 
systemctl mask hibernate.target 
systemctl mask hybrid-sleep.target