archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
6.2k stars 538 forks source link

Hibernate option #994

Open kubaorlen opened 2 years ago

kubaorlen commented 2 years ago

If you choose swap on zram, installer could setup hibernate option out of the box, to avoid manual fixes after installation. Maybe this possibility should work only if you want install desktop or give user choice Do you want use hibernate? [Y/N] .

Torxed commented 2 years ago

If anywhere, I'm ok with it being in the desktop profile.

dylanmtaylor commented 2 years ago

What configuration is needed for hibernate to work correctly?

kubaorlen commented 2 years ago

I was looking for solution for this issue and I realized it's impossible to use zram for hibernate :D , https://forum.manjaro.org/t/zram-zswap-and-hibernation/82348

but not working hibernate with zram i not the solution. In my opinion, choise beetwen methods of implemetation swap on the computer should be expanded. for eg.

Do you want use swap? [Y/N]
Y

choose the type of swap?
0 swap partition 
1 swap file
2 zram (hibernate not working)

in option swap partition and swap file hibernate will work

if you choose swap partition you can input size of it eg. 4GB

Here is explained how to make hibernation with swap partition and swap file https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation

Torxed commented 2 years ago

We do expect users to research the options or know what the options mean. Sure the goal is to help new users to feel welcome, but if they after a install realizes for instance that their choices doesnt work, it shouldnt be the end of the world to re-install or manually comfigure something differently.

So explaining everything in menu comments, isnt ideal i would say. The option menu is a nice touch tho, but will be a bit of a PITA to squeeze in. I dont mind a PR on it - but i think it falls far behind on my priority list due to other stuff needing to be dome first :)

weilbith commented 2 years ago

A setup with configured hibernate (e.g. for btrfs) with offset calculation and everything would be amazing.

lihe07 commented 11 months ago

Hi! If nobody is currently working on this issue, I can work on it.

titandino commented 10 months ago

Hi! If nobody is currently working on this issue, I can work on it.

After just setting this up manually on my own machine, I think it would be an awesome addition for ease of setup.