Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED][almost newbie] hibernation - cant find how/manage to make it work (Read 121 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED][almost newbie] hibernation - cant find how/manage to make it work

I need a 101 on this or maybe a eli5 in the process but I cant find how to make my hibernation work.

I can only find the arch instructions on how to make it work but arch uses systemd and I think thats why I cant make any sense of those instructions.

can someone guide me through? show me some instructions for artix hibernation?

p.s. suspend doesnt work to it just makes the screens go black.

some more info, after I press hibernate the system shuts down and then in 5 seconds boots up by itself and loads a fresh session

Re: [almost newbie] hibernation - cant find how/manage to make it work

Reply #1
Did you try pm-utils package?

Re: [almost newbie] hibernation - cant find how/manage to make it work

Reply #2
I believe you need elogind running and configured properly. It should have some tools/settings that let you hibernate.

Re: [almost newbie] hibernation - cant find how/manage to make it work

Reply #3
What Dudemanguy said, you need a running elogind, and to hibernate, follow arch wiki instructions how to configure mkinitcpio, it applies on artix as well.

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
Code: [Select]
/etc/elogind/logind.conf
    -> enable (just uncomment) all parameters in sleep plus add suspend next to SuspendMode=suspend
   
Code: [Select]
[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
Code: [Select]
/etc/mkinitspio.conf
     -> add 'resume' (without quotes) after 'udev' and before 'fsck'

Code: [Select]
HOOKS=(consolefont base udev autodetect modconf  block filesystems keyboard resume fsck)

3. regenerate based on the change in 2
     ->
Code: [Select]
sudo mkinitcpio -p linux

     -> or if root
Code: [Select]
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.

Re: [almost newbie] hibernation - cant find how/manage to make it work

Reply #5
so sleep continues to do the same,

I used the initcall_debug cmdline parameter and did restart then sleep then:

Code: [Select]
dmesg -s 128000 | grep "initcall" | sed "s/\(.*\)after\(.*\)/\2 \1/g" | sort -n
 0 usecs [    3.370307] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    3.379405] initcall pcc_cpufreq_init+0x0/0xe6d [pcc_cpufreq] returned -17
 0 usecs [    3.462462] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    3.462464] initcall pcc_cpufreq_init+0x0/0xe6d [pcc_cpufreq] returned -17
 0 usecs [    3.532251] initcall pcc_cpufreq_init+0x0/0xe6d [pcc_cpufreq] returned -17
 0 usecs [    3.532261] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    3.532755] initcall mxm_wmi_init+0x0/0x1000 [mxm_wmi] returned 0
 0 usecs [    3.532903] initcall iTCO_vendor_init_module+0x0/0x1000 [iTCO_vendor_support] returned 0
 0 usecs [    3.562496] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    3.620433] initcall pcc_cpufreq_init+0x0/0xe6d [pcc_cpufreq] returned -17
 0 usecs [    3.620551] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    3.719003] initcall pcc_cpufreq_init+0x0/0xe6d [pcc_cpufreq] returned -17
 0 usecs [    3.795482] initcall pcc_cpufreq_init+0x0/0xe6d [pcc_cpufreq] returned -17
 0 usecs [    8.035523] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    8.037379] initcall init_nls_cp437+0x0/0x1000 [nls_cp437] returned 0
 0 usecs [    8.039036] initcall init_nls_iso8859_1+0x0/0x1000 [nls_iso8859_1] returned 0
 0 usecs [    8.072311] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    8.099131] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    8.145740] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    8.199310] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    8.232392] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    8.272512] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 0 usecs [    8.332435] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] returned -17
 2 usecs [    3.399851] initcall VBoxNetAdpLinuxInit+0x0/0x1000 [vboxnetadp] returned 0
 2 usecs [    8.034527] initcall init_vfat_fs+0x0/0x1000 [vfat] returned 0
 5 usecs [    3.399813] initcall drm_kms_helper_init+0x0/0x14 [drm_kms_helper] returned 0
 6 usecs [    3.377918] initcall VBoxPciLinuxInit+0x0/0x1000 [vboxpci] returned 0
 6 usecs [    7.965950] initcall drm_sched_fence_slab_init+0x0/0xdee [gpu_sched] returned 0
 10 usecs [    3.380519] initcall generic_driver_init+0x0/0x1000 [snd_hda_codec_generic] returned 0
 10 usecs [    3.405165] initcall VBoxNetFltLinuxInit+0x0/0x1000 [vboxnetflt] returned 0
 13 usecs [    3.367308] initcall rt5640_i2c_driver_init+0x0/0x1000 [snd_soc_rt5640] returned 0
 14 usecs [    3.378030] initcall drm_core_init+0x0/0xb1 [drm] returned 0
 23 usecs [    8.031429] initcall powerclamp_init+0x0/0x1000 [intel_powerclamp] returned 0
 36 usecs [    3.408880] initcall ttm_init+0x0/0x1000 [ttm] returned 0
 41 usecs [    8.032486] initcall init_fat_fs+0x0/0xfcb [fat] returned 0
 58 usecs [    8.074866] initcall rapl_init+0x0/0x1000 [intel_rapl_common] returned 0
 92 usecs [    3.367260] initcall joydev_init+0x0/0x1000 [joydev] returned 0
 102 usecs [    3.408946] initcall cstate_pmu_init+0x0/0x1000 [intel_cstate] returned 0
 128 usecs [   14.694427] initcall fuse_init+0x0/0x1b0 [fuse] returned 0
 136 usecs [    3.562809] initcall iTCO_wdt_init_module+0x0/0x1000 [iTCO_wdt] returned 0
 146 usecs [    8.203351] initcall amdgpu_init+0x0/0x87 [amdgpu] returned 0
 197 usecs [    3.379311] initcall fjes_init_module+0x0/0xd8 [fjes] returned -19
 199 usecs [    3.534139] initcall fjes_init_module+0x0/0xd8 [fjes] returned -19
 201 usecs [    3.463461] initcall fjes_init_module+0x0/0xd8 [fjes] returned -19
 208 usecs [    3.367508] initcall mousedev_init+0x0/0x1000 [mousedev] returned 0
 223 usecs [    8.033551] initcall pkg_temp_thermal_init+0x0/0x1000 [x86_pkg_temp_thermal] returned 0
 241 usecs [    8.077121] initcall intel_rapl_msr_driver_init+0x0/0x1000 [intel_rapl_msr] returned 0
 287 usecs [    8.028185] initcall coretemp_init+0x0/0x1000 [coretemp] returned 0
 396 usecs [    3.405566] initcall intel_uncore_init+0x0/0xe28 [intel_uncore] returned 0
 647 usecs [    3.534598] initcall mei_hdcp_driver_init+0x0/0x1000 [mei_hdcp] returned 0
 717 usecs [    3.465527] initcall cryptd_init+0x0/0x1000 [cryptd] returned 0
 736 usecs [    3.368048] initcall i2c_i801_init+0x0/0x1000 [i2c_i801] returned 0
 759 usecs [    8.024895] initcall vmx_init+0x0/0xdc [kvm_intel] returned 0
 1807 usecs [    3.372159] initcall rapl_pmu_init+0x0/0x1000 [intel_rapl_perf] returned 0
 2512 usecs [    3.627807] initcall crc32_pclmul_mod_init+0x0/0x1000 [crc32_pclmul] returned 0
 2784 usecs [    3.411696] initcall realtek_driver_init+0x0/0x1000 [snd_hda_codec_realtek] returned 0
 2810 usecs [    3.411754] initcall cfg80211_init+0x0/0xcf [cfg80211] returned 0
 2886 usecs [    3.471562] initcall aes_init+0x0/0x1000 [aes_x86_64] returned 0
 3023 usecs [    3.623650] initcall ghash_pclmulqdqni_mod_init+0x0/0x1000 [ghash_clmulni_intel] returned 0
 14022 usecs [    3.548309] initcall aesni_init+0x0/0x1000 [aesni_intel] returned 0
 14063 usecs [    3.394912] initcall hdmi_driver_init+0x0/0x1000 [snd_hda_codec_hdmi] returned 0
 52765 usecs [    3.522648] initcall usb_audio_driver_init+0x0/0x1000 [snd_usb_audio] returned 0
 58049 usecs [    3.528062] initcall uvc_init+0x0/0x1000 [uvcvideo] returned 0
 87677 usecs [    3.718777] initcall crct10dif_intel_mod_init+0x0/0x1000 [crct10dif_pclmul] returned 0
 835727 usecs [    4.651317] initcall radeon_init+0x0/0xa6 [radeon] returned 0
 867570 usecs [    4.683953] initcall rtw_drv_entry+0x0/0x1000 [8821cu] returned 0

can anyone guide me to the solution?

Re: [almost newbie] hibernation - cant find how/manage to make it work

Reply #6
ok all good now

1. in BIOS -> ACPI -> the suspend to ram was disabled

2. you need to put in the elogind/logind.conf in the SuspendMode=suspend