As the title says. When the computer goes into hibernation, I have to power it down to use it again.
From looking into it, I suspect the problem is that the system tries to suspend to the SWAP partition, which my basic installation of Artix (OpenRC installed with the graphical installer, I don't remember changing anything during the setup process) has neither a SWAP partition nor file:
$ free -h
total used free shared buff/cache available
Mem: 31Gi 3,7Gi 26Gi 100Mi 2,0Gi 27Gi
Swap: 0B 0B 0B
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931,5G 0 disk
└─sda1 8:1 0 931,5G 0 part /media/shared
sdb 8:16 0 953,9G 0 disk
├─sdb1 8:17 0 300M 0 part /boot/efi
└─sdb2 8:18 0 953,6G 0 part /
sdc 8:32 0 953,9G 0 disk
├─sdc1 8:33 0 100M 0 part
├─sdc2 8:34 0 16M 0 part
├─sdc3 8:35 0 953,1G 0 part
└─sdc4 8:36 0 712M 0 part
I am seeing the same error as here on system startup
ERROR: resume: no device specified for hibernation
From what I understand I would normally specify my SWAP partition to use and regenerate GRUB config, but I do not have a partition to give GRUB.
I have followed a bunch of other Artix forum posts (in particular, this one), my /etc/elogind/sleep.conf is as follows:
[Sleep]
AllowSuspend=yes
AllowHibernation=yes
AllowSuspendThenHibernate=yes
AllowHybridSleep=yes
AllowPowerOffInterrupts=no
AllowSuspendInterrupts=no
SuspendState=mem standby freeze
SuspendMode=suspend
HibernateState=disk
HibernateMode=platform shutdown
HybridSleepState=disk
HybridSleepMode=suspend platform shutdown
HibernateDelaySec=10800
I also added resume to my /etc/mkinitcpio.conf:
HOOKS="base udev autodetect modconf block keyboard keymap consolefont filesystems resume fsck"
and ran mkinitspio -p linux, but the problem persists.
How do I set up hibernation without SWAP? In one forum post, someone suggested disabling hibernation entirely, which would be fine by me–I'm just worried about the computer power consumption and noise and "shallow" sleep will help with that–but I don't know how, and the forum post in question didn't specify that.