You are not logged in.

#1 2017-02-08 16:15:24

hotice
Member
Registered: 2017-02-04
Posts: 3

How to "restart" right after hibernation?

I have one faulty laptop that started to behave like this: Suspend to RAM doesn't work, Shutdown makes shutdown but the last stage remains undone - to power off does not happen (power switch button led light remains and fan continue spinning until battery goes completely empty). On restart the machine goes off completely. The idea is to have a hook into hibernation sequence to replace final command poweroff to restart. Standard systemd. Is that possible, any hints where to start?

Offline

#2 2017-02-08 23:06:32

hotice
Member
Registered: 2017-02-04
Posts: 3

Re: How to "restart" right after hibernation?

I read the PM wiki page and think some hooks to hibernate.target or sleep.target were suggested. But examples there show only complete commands like 'hibernate'. Is it possible to force anything (like 'restart') after such the command returns? Is 'hibernate'/'systemctl hibernate' routine even an editable script somewhere or a pre-compiled executable binary?

Offline

Board footer

Powered by FluxBB