Bug 1549844

Summary: Hibernate no longer works when Secure Boot is enabled
Product: [Fedora] Fedora Reporter: Edvard <edvard.holst>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 27CC: andrej, lnykryn, msekleta, redhat-bugzilla, ssahani, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 11:38:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Edvard 2018-02-27 21:21:11 UTC
Description of problem:


I'm not entirely sure when this issue started occurring but I'm marking this as urgent since it seems to be a regression bug. 

I can no longer hibernate the system if secure boot is enabled. systemctl hibernate simply returns the following message:

Failed to hibernate system via logind: Sleep verb not supported

Hibernation works just fine if secure boot is disabled.

How reproducible: 100%


Steps to Reproduce:
1. Enable secure boot
2. Boot the system
3. Attempt hibernation with systemctl hibernate.

Actual results:
Failed to hibernate system via logind: Sleep verb not supported

Expected results:
Successful hibernation


Additional info:
kernel 4.15.4-300.fc27.x86_64

Comment 1 Andrej Podzimek 2018-04-07 09:48:33 UTC
I have exactly the same issue on Fedora 27 and 28, with ~all kernels I tried, e.g.
kernel-4.16.0-0.rc7.git0.1.fc28.x86_64
kernel-4.16.0-300.fc28.x86_64

The hardware is a Dell Inspiron 7548/0AM6R0. Secure Boot is enabled. My disk layout:

# lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT
NAME                     FSTYPE      LABEL  MOUNTPOINT
sda                                         
├─sda1                   vfat               /boot/efi
└─sda2                   LVM2_member        
  ├─cryptprdell-luks     crypto_LUKS        
  │ └─plainprdell        LVM2_member        
  │   ├─plainprdell-swap swap               [SWAP]
  │   └─plainprdell-root btrfs       prdell /home
  └─cryptprdell-boot     btrfs       boot   /boot

The swap partition is mounted:

# swapon
NAME      TYPE      SIZE USED PRIO
/dev/dm-2 partition  16G   0B   -2

Hibernation doesn't show up as an option in SDDM and/or in Plasma. I'm getting the same message from systemctl hibernate ("Failed to hibernate system via logind: Sleep verb not supported").

Hibernation used to work fine sometimes around Fedora 25/26, but silently disappeared at some point.

Comment 2 Andrej Podzimek 2018-04-07 10:11:14 UTC
Update: Disabling Secure Boot in the setup indeed enables hibernation and it works perfectly fine. But it would be nice to have *both* hibernation and Secure Boot.

Comment 3 Zbigniew Jędrzejewski-Szmek 2018-04-10 11:38:31 UTC
This is the same as #1467045 which is older and has more information. I'll just copy the title from this one.

*** This bug has been marked as a duplicate of bug 1467045 ***