Score:1

21.10 - what's the suspend / hibernate call stack?

in flag

I would like to understand what is wrong with my linux system (or hardware). Sometimes I lose my session when the system is suspended, instead, it restarts then instantly without restoring anything.

I managed to find out the following:

    • pm-suspend: worked always
    • echo -n mem >/sys/power/state (invoked by pm-suspend): worked always
  1. suspension when closing the lid: works most of the time
  2. suspension after x minutes idling: does crash most of the time
  3. systemctl suspend does work sometimes, sometimes is crashes my session.
  4. /lib/systemd/systemd-sleep suspend, which is invoked by systemctl suspend (as it seems) works just as often as the command above

What's the difference between those commands/actions? why is pm-suspend reliable but the others are not? How can I get a verbose log?

Could someone explain me how sending the system into suspend mode works currently? I am on Ubuntu 21.10 but I guess a general explanation would be fine too.

I just need a hint to get started somewhere :)

kanehekili avatar
zw flag
Look at [my answer](https://askubuntu.com/a/1237199/906933) - it might help you
ChanganAuto avatar
us flag
I suggest updating UEFI before any further troubleshooting.
in flag
UEFI is, unfortunately, already at its latest version.
cn flag
jma
The question itself was quite helpful, especially seeing the `-n` on echo. I also discovered I need to sleep for a couple seconds in order to avoid thinking I'm already awake. In case it may be of help to others, my implementation is here: https://github.com/JeffAbrahamson/dotfiles/blob/master/i3/i3/bin/i3-lock-suspend
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.