system76 / laptop-suggestions

Repo to collect laptop design suggestions and feedback as issues.
41 stars 5 forks source link

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

Open ghost opened 4 years ago

ghost commented 4 years ago

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 commented 4 years ago

I actually opened issue https://github.com/pop-os/distinst/issues/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 commented 4 years ago

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 commented 4 years ago

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:

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.