mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
power management: restart post-resume.target on resume
Trigger a restart of the post-resume.target on resume. That allows other systemd services to receive the restart signal after resume by becoming 'partOf' the post-resume.target.
This commit is contained in:
parent
acb1b3cdd0
commit
d5604f0b22
@ -98,6 +98,7 @@ in
|
|||||||
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
|
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
|
||||||
script =
|
script =
|
||||||
''
|
''
|
||||||
|
${config.systemd.package}/bin/systemctl try-restart post-resume.target
|
||||||
${cfg.resumeCommands}
|
${cfg.resumeCommands}
|
||||||
${cfg.powerUpCommands}
|
${cfg.powerUpCommands}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user