nixos/power-management: run post-resume after suspend-then-hibernate
The suspend-then-hibernate functionality is implemented by systemd in the suspend-then-hibernate.target, separately from suspend.target and hibernate.target. Thus post-resume would not run after resuming from suspend-then-hibernate. Fix this by explicitly making post-resume run after suspend-then-hibernate.
This commit is contained in:
parent
87cb1156a9
commit
fe44207a71
@ -91,7 +91,7 @@ in
|
||||
|
||||
systemd.services.post-resume =
|
||||
{ description = "Post-Resume Actions";
|
||||
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
|
||||
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
|
||||
script =
|
||||
''
|
||||
/run/current-system/systemd/bin/systemctl try-restart post-resume.target
|
||||
|
Loading…
Reference in New Issue
Block a user