recentpopularlog in

kme : powersave   7

power management - How do I disable my system from going to sleep? - Ask Ubuntu | https://askubuntu.com/
Why the fuck doesn't the System Settings "Sleep after inactive for" setting do this this?
On Ubuntu 16.04 LTS, I successfully used the following to disable suspend:
<code class="language-bash">
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
</code>
And this to re-enable it:
<code class="language-bash">
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
</code>
ubuntu  elementaryos  annoyance  sleep  suspend  powersave  powermanagement  systemd  maybesolution 
5 weeks ago by kme

Copy this bookmark:





to read