Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working hibernation and (deep) suspend (last one, I swear) #56

Open
ghost opened this issue Nov 26, 2019 · 3 comments
Open

Working hibernation and (deep) suspend (last one, I swear) #56

ghost opened this issue Nov 26, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 26, 2019

Please make sure the hardware chosen can successfully hibernate and suspend (deep not s2idle) without losing WiFi, etc. when waking. Also, make changes to Pop that automatically setup hibernation properly. It's crazy that getting hibernation to work requires some not insignificant tweaking on any distro.

@eduncan911
Copy link

I actually opened issue pop-os/distinst#171 about this in their setup utility. I think I am overdue to write a huge blog post about how to do it with Pop_OS.

@ghost
Copy link
Author

ghost commented Nov 28, 2019

Good on you for informing System76 of that shortcoming. I can get hibernate to work using manual partitioning on almost any distro. The problem with most distros is that the automatic partitioning creates too small of swap partition.

@eduncan911
Copy link

eduncan911 commented Nov 28, 2019

The biggest change is to get them to move the swap to LVM instead. Having the swap within LVM volumes would allow us to resize the partitions much much easier.

It's not bad the way they have the small swap partition which is actually secure because every boot gets a new random key for the swap. It's actually recommended that way for security.

However, the drawback is no hibernation because the key is random on every boot. That's why you need to move it under the dcrypt management, so it's decryptable at boot time.

I like the Endeavor OS installer as it has many options:

  • Swap, yes/no (even though it incorrectly sizes the swap twice that of ram. If you have more than 2GB of ram, the Linux kernel comments the swap partition to be "size of ram + 2GB", not twice the ram any longer).
  • Hibernation, yes/no
  • Encrypt, yes/no

Simple set of questions.

I posted a solution to this, as well for machines with small HDDs which seems to be there only concern in that Issue I posted above.

If someone can point me to the code in that repo, I'll modify it for the propose solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant