[systemd-devel] suspend hook as user service

Reverend Homer mk.43.ecko at gmail.com
Fri Feb 17 15:09:17 UTC 2017


Hi,

is there any way to start user service before/after suspend.target? In
wiki.archlinux.org there are only system sleep hooks [1]. I tried to lock the
screen before suspend and put the service inspired by [2] in
~/.config/systemd/user/. But this service just did not start.

R.H.

[1] https://wiki.archlinux.org/index.php/Power_management#Suspend.2Fresume_service_files
[2] https://bbs.archlinux.org/viewtopic.php?id=163281


More information about the systemd-devel mailing list