Re: [almost newbie] hibernation - cant find how/manage to make it work
Reply #4 –
thank you all, got it working
for anyone got here with the same question thats the steps I did on artix kde that was installed on a empty disk with option swap (with hiberanation)
1. in file /etc/elogind/logind.conf
-> enable (just uncomment) all parameters in sleep plus add suspend next to SuspendMode=suspend
[Sleep]
AllowSuspend=yes
AllowHibernation=yes
AllowSuspendThenHibernate=yes
AllowHybridSleep=yes
AllowPowerOffInterrupts=no
AllowSuspendInterrupts=no
SuspendState=mem standby freeze
#add suspend below
SuspendMode=suspend
HibernateState=disk
HibernateMode=platform shutdown
HybridSleepState=disk
HybridSleepMode=suspend platform shutdown
HibernateDelaySec=10800
2. in file /etc/mkinitspio.conf
-> add 'resume' (without quotes) after 'udev' and before 'fsck'
HOOKS=(consolefont base udev autodetect modconf block filesystems keyboard resume fsck)
3. regenerate based on the change in 2
-> sudo mkinitcpio -p linux
-> or if root mkinitcpio -p linux
p.s. the way I installed Artix it automatically added in the kernel parameters the 'resume=UUID=(the swap partition UUID) so check if you got it there and add it if its not.