You are not logged in.

#1 2012-06-07 18:10:48

gya82
Member
Registered: 2012-06-07
Posts: 6

[Solved] systemctl suspend and hibernate after run service

I use boot with init=/bin/systemd.
Service run on boot time "hdparm -B 254 /dev/sda" this is working to.
But my question is:
# systemctl suspend or # systemctl hibernate, then restore laptop will "hdparm -B /dev/sda= 128". Why?
How to run service resume suspend and hibernate after?
I could not find a description.
Thanks!

Last edited by gya82 (2012-06-10 19:14:32)

Offline

#2 2012-06-10 09:05:53

msx
Member
From: solar.system/earth/ar/bue/mdp
Registered: 2010-08-08
Posts: 184
Website

Re: [Solved] systemctl suspend and hibernate after run service

May be you want to try pm-suspend tools to suspend/hibernate your system, usually works great.


Enjoying i3wm w/ lifebar + j4-dmenu-desktop + tab_windows / fish shell / Emacs / tmux / Konsole / KDE apps
Arch + Linux-libre kernel: ParabolaGNULinux.org

Offline

#3 2012-06-10 10:45:03

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [Solved] systemctl suspend and hibernate after run service

you might have a look at the systemd.special man page. systemd provides three hooks to trigger services at suspend (suspend.target) / hibernate (hibernate.target) or both (sleep.target).
Unfortunately there doesn't seem to be any documentation yet how exactly this is supposed to be used or if this even can replace the pm-utils hooks, I haven't really looked into it yet.
But using pm-utils together with systemd for now shouldn't do any harm.

Last edited by 65kid (2012-06-10 10:46:18)

Offline

#4 2012-06-10 19:14:08

gya82
Member
Registered: 2012-06-07
Posts: 6

Re: [Solved] systemctl suspend and hibernate after run service

ok, pm-utils works great!
(I use pm-hibernate and pm-suspend)

Thanks!

Last edited by gya82 (2012-06-10 19:33:55)

Offline

Board footer

Powered by FluxBB