You are not logged in.

#1 2015-08-31 19:10:37

eerozeteen
Member
Registered: 2014-07-16
Posts: 3

Problem with "Suspend to hibernate" script when hibernate laptop

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

#2 2015-08-31 21:50:28

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,219

Re: Problem with "Suspend to hibernate" script when hibernate laptop

If you mean you want to disable the service that you enabled then

sudo systemctl disable suspend-to-hibernate

That is assuming you named it that.

If that is not what you meant, please clarify.

Offline

#3 2015-09-01 20:24:50

eerozeteen
Member
Registered: 2014-07-16
Posts: 3

Re: Problem with "Suspend to hibernate" script when hibernate laptop

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

Board footer

Powered by FluxBB