Power Management: Difference between revisions

Nipsy (talk | contribs)
Update section formatting and replace deprecated sleep option
Replace deprecated sleep extraConfig option that was missed last edit
 
Line 69: Line 69:
=== Hibernate after specified time ===
=== Hibernate after specified time ===
Using following configuration, your system will go from suspend into hibernate after 1 hour:<syntaxhighlight lang="nix">
Using following configuration, your system will go from suspend into hibernate after 1 hour:<syntaxhighlight lang="nix">
systemd.sleep.extraConfig = ''
systemd.sleep.settings.Sleep = {
   HibernateDelaySec=1h
   HibernateDelaySec = "1h";
'';
};
</syntaxhighlight>
</syntaxhighlight>