Recommendations on How to Hibernate with OpenRC 12 June 2021, 16:33:00 I've been postponing adding hibernation forever with my current Artix OpenRC setup. Mostly it's because I'm very insecure about trying it. I just can't seem to find any comprehensive tutorials on this topic anywhere when it comes to OpenRC, and not even good ones for Systemd.Does anyone have a link or a simple recipe for this? The closest I've got so far was this video, but it's nothing much anyway.
Re: Recommendations on How to Hibernate with OpenRC Reply #1 – 12 June 2021, 16:55:38 https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation
Re: Recommendations on How to Hibernate with OpenRC Reply #2 – 13 June 2021, 15:59:45 I wish I had the stomach to go through that whole tutorial for my first time doing it, it seems so dangerous if you make a mistake.I think I'll probably wait for Ermanno Ferrari or some other good Linux YouTuber to make a video on the topic, I guess then.
Re: Recommendations on How to Hibernate with OpenRC Reply #3 – 14 June 2021, 15:48:44 All you need is:1. A swap partition, say /dev/sda32. Add 'resume' to HOOKS in /etc/mkinitcpio.conf3. Add 'resume=/dev/sda3' to GRUB_CMDLINE_LINUX in /etc/default/grub4. Re-create initrd and grub.cfg: grub-mkconfig -o /boot/grub/grub.cfg && mkinitcpio -P5. Profit 1 Likes
Re: Recommendations on How to Hibernate with OpenRC Reply #4 – 14 June 2021, 20:06:25 Thanks for the nice outline, @nous. Do you know if there are any serious risks to the integrity of my system if I make a mistake? If so, could you briefly list them? Or am I just being paranoid?
Re: Recommendations on How to Hibernate with OpenRC Reply #5 – 14 June 2021, 20:58:20 Using a swap partition, the worst that could happen is you plugging external media, it getting recognized as /dev/sda, and you overwriting the one its partitions. However, it's very unlikely, and the risk becomes zero if you use the UUID (printed when you run mkswap) instead of the /dev/sdXY. 1 Likes
Re: Recommendations on How to Hibernate with OpenRC Reply #6 – 15 June 2021, 17:26:05 What @capezotte said. I use labels instead of UUIDs though, ROOT for / and SWAP for my swap partition. The entries then become /dev/disk/by-label/SWAP instead of /dev/sda3. 1 Likes