Bug 1383604

Summary: Resuming after hibernation reboots back to grub
Product: [Fedora] Fedora Reporter: Joni Yrjana <joyr>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: gansalmon, ichavero, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab
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: 2016-10-11 11:09:57 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:

Description Joni Yrjana 2016-10-11 08:18:29 UTC
Description of problem:
Resuming after hibernation reboots back to grub.

Version-Release number of selected component (if applicable):
4.7.6

How reproducible:
Always.

Steps to Reproduce:
1. Hibernate
2. Start computer

Actual results:
The resume image is loaded, system reboots back to grub.

Expected results:
After loading the resume image, the system should resume from where it was prior hibernation.

Additional info:
Resuming used to work up to and including kernel version 4.7.2

Suspending (and resuming from it) works 100%.

I have removed the "quiet" kernel argument, so I can see the resume image being loaded 100%, then some message about console, the screen goes black, and the system is soon back to grub.

I'm doing hibernation using the following commands:
echo shutdown > /sys/power/disk
echo disk > /sys/power/state
This is because the default method for /sys/power/disk hasn't worked reliably in the past.

Hardware: i7-4770k cpu, 32g ram, asus h97-pro motherboard, nvidia gtx750ti gpu

I'm using nvidia driver from rpmfusion:
# rpm -qa | grep -i nvidia
akmod-nvidia-367.44-1.fc24.x86_64
xorg-x11-drv-nvidia-libs-367.44-1.fc24.i686
xorg-x11-drv-nvidia-kmodsrc-367.44-1.fc24.x86_64
kmod-nvidia-4.7.4-200.fc24.x86_64-367.44-1.fc24.x86_64
kmod-nvidia-367.44-1.fc24.x86_64
kmod-nvidia-4.7.6-200.fc24.x86_64-367.44-1.fc24.x86_64
xorg-x11-drv-nvidia-367.44-1.fc24.x86_64
kmod-nvidia-4.7.5-200.fc24.x86_64-367.44-1.fc24.x86_64
xorg-x11-drv-nvidia-libs-367.44-1.fc24.x86_64

I've added resume and some nvidia commandline arguments to /etc/default/grub:
GRUB_CMDLINE_LINUX="resume=/dev/sda5 nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off"
# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-4.7.6-200.fc24.x86_64 root=UUID=95946f41-f607-46e6-b4a4-4e3b1d21b073 ro resume=/dev/sda5 nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off LANG=en_US.UTF-8

Comment 1 Josh Boyer 2016-10-11 11:09:57 UTC
Fedora does not support setups with out of tree drivers installed.  If you can recreate this without the nvidia modules loaded, please reopen.

As a secondary note, hibernation is known to be broken in various situations unrelated to driver issues.

Comment 2 Joni Yrjana 2016-10-11 11:43:35 UTC
Tested without nvidia drivers, and resuming from hibernation works.