Re: More hibernation mystery

2023-08-16 Thread Jonathan Billings
On Aug 16, 2023, at 01:14, Ranjan Maitra wrote: > > sudo bash -x grub2-mkconfig > > # # for efi-based systems: # > > sudo bash -x grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Your suggestion is quite out of date. The only thing you need to do when changing the parameters in /etc/default/g

Re: More hibernation mystery

2023-08-16 Thread Patrick O'Callaghan
On Wed, 2023-08-16 at 00:13 -0500, Ranjan Maitra wrote: > My apologies for this, but this is how we go about hibernating on a > new system now? In the past, from F34 or before, which is why I last > set up this machine and have upgraded it using dnf ever since, it was > pretty much automatic. Befor

Re: More hibernation mystery

2023-08-15 Thread Ranjan Maitra
Ranjan On Mon Aug14'23 10:49:28AM, Patrick O'Callaghan wrote: > From: Patrick O'Callaghan > Date: Mon, 14 Aug 2023 10:49:28 +0100 > To: users@lists.fedoraproject.org > Reply-To: Community support for Fedora users > Subject: Re: More hibernation mystery > &g

Re: More hibernation mystery

2023-08-14 Thread Patrick O'Callaghan
On Mon, 2023-08-14 at 08:05 +0200, francis.montag...@inria.fr wrote: > On Sun, 13 Aug 2023 22:12:23 +0100 Patrick O'Callaghan wrote: > > > On Sun, 2023-08-13 at 18:49 +0200, > > francis.montag...@inria.fr wrote: > > > ExecStart=/bin/bash -c '/usr/sbin/swapon /SWAP/swapfile && > > > /usr/sbin/swapo

Re: More hibernation mystery

2023-08-13 Thread Francis . Montagnac
On Sun, 13 Aug 2023 22:12:23 +0100 Patrick O'Callaghan wrote: > On Sun, 2023-08-13 at 18:49 +0200, francis.montag...@inria.fr wrote: >> ExecStart=/bin/bash -c '/usr/sbin/swapon /SWAP/swapfile && /usr/sbin/swapoff >> /dev/zram0' > I'll do that, but I don't understand why it sometimes works and >

Re: More hibernation mystery

2023-08-13 Thread Patrick O'Callaghan
On Sun, 2023-08-13 at 18:49 +0200, francis.montag...@inria.fr wrote: > Hi > > On Sun, 13 Aug 2023 17:32:33 +0100 Patrick O'Callaghan wrote: > >    $ cat hibernate-preparation.service > > >    ExecStart=/bin/bash -c /usr/sbin/swapon /SWAP/swapfile && > > /usr/sbin/swapoff /dev/zram0 > > You need

Re: More hibernation mystery

2023-08-13 Thread Francis . Montagnac
Hi On Sun, 13 Aug 2023 17:32:33 +0100 Patrick O'Callaghan wrote: >$ cat hibernate-preparation.service >ExecStart=/bin/bash -c /usr/sbin/swapon /SWAP/swapfile && > /usr/sbin/swapoff /dev/zram0 You need to quote here. Try thus: ExecStart=/bin/bash -c '/usr/sbin/swapon /SWAP/swapfile &

More hibernation mystery

2023-08-13 Thread Patrick O'Callaghan
I have set up a nightly hibernation routine (see below) but it sometimes works and sometimes doesn't. It appears to be completely random. When I invoke it manually, via 'systemctl hibernate' it invariably works. $ systemctl status hibernate-preparation hibernate-resume ○ hibernate-preparati