On Tue, 2024-04-30 at 15:36 -0700, Samuel Sieb wrote:
> > 
> > And the system is not hibernating.
> >    
> > /dev/zram0 exists and is configured:
> 
> Yes, and you can see it being disabled in the logs because you can't 
> hibernate to RAM.
> 
> > # swapon
> > NAME           TYPE      SIZE USED PRIO
> > /SWAP/swapfile file       48G   0B   -2
> > /dev/zram0     partition   8G 512K  100
> 
> Do you have secure boot enabled?

No, however today's log is different:

May 01 01:02:44 Bree systemd[1]: Starting hibernate-preparation.service - 
Enable swap file and disable zram before hibernate...
May 01 01:02:44 Bree kernel: [drm] scheduler comp_1.1.1 is not ready, skipping
May 01 01:02:44 Bree kernel: [drm] scheduler comp_1.0.1 is not ready, skipping
May 01 01:02:44 Bree kernel: [drm] scheduler comp_1.1.1 is not ready, skipping
May 01 01:02:44 Bree kernel: [drm] scheduler comp_1.0.1 is not ready, skipping
May 01 01:02:45 Bree systemd[1]: dev-zram0.swap: Deactivated successfully.
May 01 01:02:45 Bree systemd[1]: hibernate-preparation.service: Deactivated 
successfully.
May 01 01:02:45 Bree systemd[1]: Finished hibernate-preparation.service - 
Enable swap file and disable zram before hibernate.
May 01 01:02:45 Bree systemd[1]: hibernate-preparation.service: Consumed 1.158s 
CPU time.
May 01 01:02:45 Bree systemd[1]: Starting systemd-hibernate.service - System 
Hibernate...
May 01 01:02:45 Bree systemd[1]: Stopping systemd-zram-setup@zram0.service - 
Create swap on /dev/zram0...
May 01 01:02:45 Bree kernel: [drm] scheduler comp_1.1.1 is not ready, skipping
May 01 01:02:45 Bree kernel: zram0: detected capacity change from 16777216 to 0
May 01 01:02:45 Bree kernel: hpet: Lost 1 RTC interrupts
May 01 01:02:45 Bree systemd-sleep[130021]: Performing sleep operation 
'hibernate'...
May 01 01:02:45 Bree kernel: PM: hibernation: hibernation entry
May 01 01:02:45 Bree systemd[1]: systemd-zram-setup@zram0.service: Deactivated 
successfully.
May 01 01:02:45 Bree systemd[1]: Stopped systemd-zram-setup@zram0.service - 
Create swap on /dev/zram0.
May 01 08:00:48 Bree kernel: Filesystems sync: 0.164 seconds
May 01 08:00:50 Bree kernel: Freezing user space processes

and hibernation did work. Possibly a timing issue, so I'll have to look
at my hibernate-preparation script:

$ cat /etc/systemd/system/hibernate-preparation.service
   [Unit]
   Description=Enable swap file and disable zram before hibernate
   Before=systemd-hibernate.service
   
   [Service]
   SyslogIdentifier=%N
   User=root
   Type=oneshot
   
   ExecStart=/bin/bash -c ' \
           swapon -a; \
           swapoff /dev/zram0; \
           exit 0; \
           '
   
   [Install]
   WantedBy=systemd-hibernate.service
   
poc
--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to