Cannot get suspend to disk/hibernate to work on Fedora 29 (Dual Boot, LVM,UEFI.FDE)
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2019
    Location
    Switzerland
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot get suspend to disk/hibernate to work on Fedora 29 (Dual Boot, LVM,UEFI.FDE)

    Hi,

    I recently installed Fedora 29 Workstation on an new Notebook with Win 10 in dual boot, full disc encryption, UEFI and LVM (secure boot is disabled). Everything works fine incl. suspend-to-ram and resume.

    However, I don't succeed to properly configure suspend-to-disk and resume.

    The system starts to hibernate and shuts down. There are no messages on the screen during the hibernation. After powering on, it seems to do a normal reboot,
    instead of resuming from the LVM swap partition (I get the usual grub menu, must provide the LUKS password and authenticate to X as usual.

    I have searched the net as well as the Redhat/Fedora bugracker, but none of the proposed solutions in similar cases (downgrade systemd, change/update the name of the LVM swap partion in /etc/default/grub) helped.

    Could you please be kind enough to provide a pointer what I should analyze next?

    Please find here some logs and additional information:

    https://forums.fedoraforum.org/showt...15#post1820315

    Running xfce4

    Code:
    mokutil --sb-state
    SecureBoot disabled

    Code:
    lvs
    LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
    LVhome mainvg -wi-ao---- 10.00g
    LVroot mainvg -wi-ao---- 2.00g
    LVswap mainvg -wi-a----- 8.00g
    LVswsap mainvg -wi-ao---- 8.00g
    LVtmp mainvg -wi-ao---- 2.00g
    LVusr mainvg -wi-ao---- 8.00g
    LVvar mainvg -wi-ao---- 3.00g

    Code:
    cat /proc/cmdline
    BOOT_IMAGE=/vmlinuz-4.20.13-200.fc29.x86_64 root=/dev/mapper/mainvg-LVroot ro rd.luks.uuid=luks-4f98ec59-7cb4-421a-b575-0800737b6fde rd.lvm.lv=mainvg/LVroot rd.lvm.lv=mainvg/LVusr rd.lvm.lv=mainvg/LVswap rhgb quiet pcie_aspm=force resume=/dev/mapper/mainvg-LVswap

    Code:
    uname -a
    Linux starthinker 4.20.13-200.fc29.x86_64 #1 SMP Wed Feb 27 19:42:55 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

    Code:
    parted -l
    Model: NVMe Device (nvme)
    Disk /dev/nvme0n1: 256GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 274MB 273MB fat32 EFI System Partition boot, esp
    2 274MB 290MB 16.8MB Microsoft reserved partition msftres
    3 290MB 79.3GB 79.0GB ntfs Basic data partition msftdata
    7 79.3GB 80.0GB 681MB xfs
    6 80.0GB 237GB 157GB lvm lvm
    4 237GB 238GB 1028MB ntfs Basic data partition hidden, diag
    5 238GB 256GB 18.4GB ntfs Basic data partition hidden, msftdata


    Code:
    mount |grep -E 'type\ xfs|vfat'
    /dev/mapper/mainvg-LVroot on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
    /dev/mapper/mainvg-LVusr on /usr type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
    /dev/mapper/mainvg-LVtmp on /tmp type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
    /dev/nvme0n1p7 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
    /dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,io charset=ascii,shortname=winnt,errors=remount-ro)
    /dev/mapper/mainvg-LVvar on /var type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
    /dev/mapper/mainvg-LVhome on /home type xfs (rw,relatime,seclabel,attr2,inode64,noquota)


    Code:
    grep -Ei 'swap|hibernate+resume|suspend|sleep' /var/log/messages
    ...
    Mar 9 13:11:36 starthinker systemd[1]: Starting TLP suspend/resume...
    Mar 9 13:11:36 starthinker systemd[1]: Starting TLP suspend/resume...
    Mar 9 13:11:37 starthinker systemd[1]: Started TLP suspend/resume.
    Mar 9 13:11:37 starthinker audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=tlp-sleep comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    Mar 9 13:11:37 starthinker systemd[1]: Reached target Sleep.
    Mar 9 13:11:37 starthinker systemd-sleep[3535]: Suspending system...
    Mar 9 13:12:04 starthinker kernel: Command line: BOOT_IMAGE=/vmlinuz-4.20.13-200.fc29.x86_64 root=/dev/mapper/mainvg-LVroot ro rd.luks.uuid=luks-4f98ec59-7cb4-421a-b575-0800737b6fde rd.lvm.lv=mainvg/LVroot rd.lvm.lv=mainvg/LVusr rd.lvm.lv=mainvg/LVswap rhgb quiet pcie_aspm=force resume=/dev/mapper/mainvg-LVswap
    Mar 9 13:12:04 starthinker kernel: Kernel command line: BOOT_IMAGE=/vmlinuz-4.20.13-200.fc29.x86_64 root=/dev/mapper/mainvg-LVroot ro rd.luks.uuid=luks-4f98ec59-7cb4-421a-b575-0800737b6fde rd.lvm.lv=mainvg/LVroot rd.lvm.lv=mainvg/LVusr rd.lvm.lv=mainvg/LVswap rhgb quiet pcie_aspm=force resume=/dev/mapper/mainvg-LVswap
    Mar 9 13:12:04 starthinker kernel: zswap: loaded using pool lzo/zbud
    Mar 9 13:12:04 starthinker dracut-cmdline[313]: Using kernel command line parameters: BOOT_IMAGE=/vmlinuz-4.20.13-200.fc29.x86_64 root=/dev/mapper/mainvg-LVroot ro rd.luks.uuid=luks-4f98ec59-7cb4-421a-b575-0800737b6fde rd.lvm.lv=mainvg/LVroot rd.lvm.lv=mainvg/LVusr rd.lvm.lv=mainvg/LVswap rhgb quiet pcie_aspm=force resume=/dev/mapper/mainvg-LVswap
    Mar 9 13:12:26 starthinker dracut-initqueue[506]: Scanning devices dm-0 for LVM logical volumes mainvg/LVroot mainvg/LVusr mainvg/LVswap
    Mar 9 13:12:26 starthinker dracut-initqueue[506]: inactive '/dev/mainvg/LVswap' [8.00 GiB] inherit
    Mar 9 13:12:26 starthinker systemd[1]: Stopped target Swap.
    Mar 9 13:12:28 starthinker systemd[1]: Activating swap /dev/mapper/mainvg-LVswsap...
    Mar 9 13:12:28 starthinker swapon[1197]: swapon: /dev/mapper/mainvg-LVswsap: software suspend data detected. Rewriting the swap signature.
    Mar 9 13:12:28 starthinker kernel: Adding 8388604k swap on /dev/mapper/mainvg-LVswsap. Priority:-2 extents:1 across:8388604k SSFS
    Mar 9 13:12:28 starthinker systemd[1]: Activated swap /dev/mapper/mainvg-LVswsap.
    Mar 9 13:12:28 starthinker systemd[1]: Reached target Swap.

  2. #2
    Join Date
    Feb 2019
    Location
    Alberta
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cannot get suspend to disk/hibernate to work on Fedora 29 (Dual Boot, LVM,UEFI.FD

    A setup where the swap encryption is re-initialised on reboot (with a new encryption) provides higher data protection, because it avoids sensitive file fragments which may have been swapped out a long time ago without being overwritten. However, re-encrypting swap also forbids using a suspend-to-disk feature generally
    The above quote is from this article. Menu item 2 may be of interest. I don't use encryption, best I can do.

  3. #3
    Join Date
    Apr 2019
    Location
    India
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cannot get suspend to disk/hibernate to work on Fedora 29 (Dual Boot, LVM,UEFI.FD

    I don't know much about what you are saying but I think you should try cleaning your Hard Disk and reinstall it.

  4. #4
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    7,512
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cannot get suspend to disk/hibernate to work on Fedora 29 (Dual Boot, LVM,UEFI.FD

    after powering on, it seems to do a normal reboot,
    instead of resuming from the LVM swap partition (I get the usual grub menu, must provide the LUKS password and authenticate to X as usual.
    Isn't that the expected behavior? You can't be using LUKS, then do a hibernate and then just allow any old "joe" to push the power button and land him in the OS without the LUKS password. So it comes out of hibernate and you need to do the LUKS password again (right?).

Similar Threads

  1. Does anybody figured out how to hibernate (suspend to disk)?
    By zhumingvictor in forum Hardware & Laptops
    Replies: 1
    Last Post: 9th September 2007, 09:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •