spikespaz / dotfiles

My NixOS dotfiles. Friends call it Bird OS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resuming from disk is not working

spikespaz opened this issue · comments

Secure boot is DISABLED

The swap device is set in filesystems.nix:
https://github.com/spikespaz/dotfiles/blob/master/systems/jacob-thinkpad/filesystems.nix#L45

The swap partition is created with partition.sh:
https://github.com/spikespaz/dotfiles/blob/master/scripts/partition.sh#L20

The size of the swap partition is determined by the total physical memory reported by /proc/memtotal, and even has an extra 2 GiB. Is this enough?

What programs would show logs to help debug this?

logind is configured to suspend-then-hibernate for idle, power button, and lid close.
https://github.com/spikespaz/dotfiles/blob/master/systems/jacob-thinkpad/powersave.nix#L165

UPower is configured to Hibername when power level is critical.
https://github.com/spikespaz/dotfiles/blob/master/systems/jacob-thinkpad/powersave.nix#L183

Manually triggering hibernation with systemctl hibernate DOES work, it takes a while so I assume that it does dump RAM.

It used to work. Now I see Call to Hibernate failed: Sleep verb "hibernate" not supported.

I have yet to confirm that suspend-then-hibernate works, need to decrease the delay and test it.