You are not logged in.
Hi,
I using systemctl script to hibernate my laptopr after 1 hour of sleep (suspend) - i use frantom's script from this topic - https://bbs.archlinux.org/viewtopic.php … 9#p1420279.
Everything working great when i using suspend. When i hibernate manually my laptop and after resume it, script is triggering and hibernate my laptop again.
I would like to modify script to disable it, when i hibernate my laptop. Is it possible? Anyone can help me?
Offline
If you mean you want to disable the service that you enabled then
sudo systemctl disable suspend-to-hibernateThat is assuming you named it that.
If that is not what you meant, please clarify.
Offline
After write my post, i spend some time to understand systemd scripts and try to write another one, to make some task after resume from sleep and hibernate.
So now I see, that scripts from first post, should only trigger on sleep. So i dont know, why after resume from hibernate, my system goes hibernate again. Maybe i used hybrid-suspend (with hibernate) and my battery was empty, so system start from hibernate, and scripts waits for signal to start.
I dont know if i write it clearly - my English is bad.
I think that i found solution and solve my problem. Thanks for response.
Offline