Hibernation doesn't work

Hi folks,

I’m having some issues with hibernation on this laptop. It seems to suspend to the disk just fine, and when I reboot the system, grub skips the menu (is this an EFI variable or something? It only does this on hibernation) and it the kernel loads the resume image, but then the system gets stuck. The screen is completely black with no backlight and only there is no response to any of the hardware keys. Only a hard reset fixes it, and then the system boots just fine.

I have an Asus G551JM which is an EFI system. I also have bumblebee setup with bbswitch-dkms on the lastest update of Tumbleweed. Here’s some more info.

tempest@Polaris:/var/log> uname -r
4.5.3-1-default


tempest@Polaris:/var/log> lsb_release -a
LSB Version:    core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:des
ktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: openSUSE
Description:    openSUSE Tumbleweed (20160422) (x86_64)
Release:        20160422
Codename:       Tumbleweed


tempest@Polaris:/var/log> sudo dmidecode
root's password:
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
24 structures occupying 1685 bytes.
Table at 0xAEE82018.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: American Megatrends Inc.
        Version: G551JM.204
        Release Date: 10/13/2014
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 6144 kB
        Characteristics:
                PCI is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                Boot from CD is supported
                Selectable boot is supported
                BIOS ROM is socketed
                EDD is supported
                5.25"/1.2 MB floppy services are supported (int 13h)
                3.5"/720 kB floppy services are supported (int 13h)
                3.5"/2.88 MB floppy services are supported (int 13h)
                Print screen service is supported (int 5h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                ACPI is supported
                USB legacy is supported
                Smart battery is supported
                BIOS boot specification is supported
                Targeted content distribution is supported
                UEFI is supported
        BIOS Revision: 4.6

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: G551JM
        Version: 1.0             
        UUID: F3852520-F758-DB42-86BC-797F30943D15
        Wake-up Type: Power Switch
        SKU Number: ASUS-NotebookSKU
        Family: G

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: G551JM
        Version: 1.0      
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: MIDDLE               
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

Handle 0x0003, DMI type 3, 22 bytes
Chassis Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Type: Notebook
        Lock: Not Present
        Version: 1.0                 
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: None
        OEM Information: 0x00000000
        Height: Unspecified
        Number Of Power Cords: 1
        Contained Elements: 0
        SKU Number: To be filled by O.E.M.

Handle 0x0004, DMI type 10, 26 bytes
On Board Device 1 Information
        Type: Video
        Status: Enabled
        Description:  VGA
On Board Device 2 Information
        Type: Ethernet
        Status: Enabled
        Description:  GLAN
On Board Device 3 Information
        Type: Ethernet
        Status: Enabled
        Description:  WLAN
On Board Device 4 Information
        Type: Sound
        Status: Enabled
        Description:  Audio CODEC  
On Board Device 5 Information
        Type: SATA Controller
        Status: Enabled
        Description:  SATA Controller
On Board Device 6 Information
        Type: Other
        Status: Enabled
        Description:  USB 2.0 Controller
On Board Device 7 Information
        Type: Other
        Status: Enabled
        Description:  USB 3.0 Controller
On Board Device 8 Information
        Type: Other
        Status: Enabled
        Description:  SMBus Controller
On Board Device 9 Information
        Type: Other
        Status: Enabled
        Description:  Card Reader
On Board Device 10 Information
        Type: Other
        Status: Enabled
        Description:  Cmos Camera
On Board Device 11 Information
        Type: Other
        Status: Enabled
        Description:  Bluetooth

Handle 0x0005, DMI type 11, 5 bytes
OEM Strings
        String 1: g8K+6h0BT4HAb
        String 2: UVxO1ebG6pd+0
        String 3: FLPf434JwKmmp
        String 4:   
        String 5:   
        String 6:   
        String 7:   
        String 8:   
        String 9:   
        String 10:   

Handle 0x0006, DMI type 12, 5 bytes
System Configuration Options
        Option 1: DSN:        4153D0025F91             
        Option 2: DSN:8F536B662680                     
        Option 3: DSN:086266B635F8                     
        Option 4: SMI:00B2CA

Handle 0x0007, DMI type 32, 20 bytes
System Boot Information
        Status: No errors detected

Handle 0x0008, DMI type 4, 42 bytes
Processor Information
        Socket Designation: SOCKET 0
        Type: Central Processor
        Family: Core i7
        Manufacturer: Intel
        ID: C3 06 03 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 60, Stepping 3
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
        Voltage: 1.2 V
        External Clock: 100 MHz
        Max Speed: 3800 MHz
        Current Speed: 2500 MHz
        Status: Populated, Enabled
        Upgrade: Socket rPGA988B
        L1 Cache Handle: 0x000A
        L2 Cache Handle: 0x0009
        L3 Cache Handle: 0x000B
        Part Number: Fill By OEM
        Core Count: 4
        Core Enabled: 4
        Thread Count: 8
        Characteristics:
                64-bit capable

Handle 0x0009, DMI type 7, 19 bytes
Cache Information
        Socket Designation: CPU Internal L2
        Configuration: Enabled, Not Socketed, Level 2
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 1024 kB
        Maximum Size: 1024 kB
        Supported SRAM Types:
                Unknown
        Installed SRAM Type: Unknown
        Speed: Unknown
        Error Correction Type: Single-bit ECC
        System Type: Unified
        Associativity: 8-way Set-associative

Handle 0x000A, DMI type 7, 19 bytes
Cache Information
        Socket Designation: CPU Internal L1
        Configuration: Enabled, Not Socketed, Level 1
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 256 kB
        Maximum Size: 256 kB
        Supported SRAM Types:
                Unknown
        Installed SRAM Type: Unknown
        Speed: Unknown
        Error Correction Type: Single-bit ECC
        System Type: Other
        Associativity: 8-way Set-associative

Handle 0x000B, DMI type 7, 19 bytes
Cache Information
        Socket Designation: CPU Internal L3
        Configuration: Enabled, Not Socketed, Level 3
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 6144 kB
        Maximum Size: 6144 kB
        Supported SRAM Types:
                Unknown
        Installed SRAM Type: Unknown
        Speed: Unknown
        Error Correction Type: Single-bit ECC
        System Type: Unified
        Associativity: 12-way Set-associative

Handle 0x000C, DMI type 16, 23 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: None
        Maximum Capacity: 32 GB
        Error Information Handle: Not Provided
        Number Of Devices: 4

Handle 0x000D, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x000C
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: SODIMM
        Set: None
        Locator: ChannelA-DIMM0
        Bank Locator: BANK 0
        Type: DDR3
        Type Detail: Synchronous
        Speed: 1600 MHz
        Manufacturer: Hynix/Hyundai
        Part Number: HMT41GS6AFR8A-PB   
        Rank: 2
        Configured Clock Speed: 1600 MHz

Handle 0x000E, DMI type 20, 35 bytes
Memory Device Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x001FFFFFFFF
        Range Size: 8 GB
        Physical Device Handle: 0x000D
        Memory Array Mapped Address Handle: 0x0013
        Partition Row Position: Unknown
        Interleave Position: Unknown
        Interleaved Data Depth: Unknown

Handle 0x000F, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x000C
        Error Information Handle: Not Provided
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: ChannelA-DIMM1
        Bank Locator: BANK 1
        Type: Unknown
        Type Detail: None
        Speed: Unknown
        Manufacturer: [Empty]
        Part Number: [Empty]
        Rank: Unknown
        Configured Clock Speed: Unknown

Handle 0x0010, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x000C
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: SODIMM
        Set: None
        Locator: ChannelB-DIMM0
        Bank Locator: BANK 2
        Type: DDR3
        Type Detail: Synchronous
        Speed: 1600 MHz
        Manufacturer: Hynix/Hyundai
        Part Number: HMT41GS6AFR8A-PB   
        Rank: 2
        Configured Clock Speed: 1600 MHz

Handle 0x0011, DMI type 20, 35 bytes
Memory Device Mapped Address
        Starting Address: 0x00200000000
        Ending Address: 0x003FFFFFFFF
        Range Size: 8 GB
        Physical Device Handle: 0x0010
        Memory Array Mapped Address Handle: 0x0013
        Partition Row Position: Unknown
        Interleave Position: Unknown
        Interleaved Data Depth: Unknown

Handle 0x0012, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x000C
        Error Information Handle: Not Provided
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: ChannelB-DIMM1
        Bank Locator: BANK 3
        Type: Unknown
        Type Detail: None
        Speed: Unknown
        Manufacturer: [Empty]
        Part Number: [Empty]
        Rank: Unknown
        Configured Clock Speed: Unknown

Handle 0x0013, DMI type 19, 31 bytes
Memory Array Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x003FFFFFFFF
        Range Size: 16 GB
        Physical Array Handle: 0x000C
        Partition Width: 4

Handle 0x0019, DMI type 136, 6 bytes
OEM-specific Type
        Header and Data:
                88 06 19 00 00 00

Handle 0x001A, DMI type 131, 64 bytes
OEM-specific Type
        Header and Data:
                83 40 1A 00 31 00 00 00 00 00 00 00 00 00 00 00
                F8 00 49 8C 00 00 00 00 01 00 00 00 00 00 09 00
                CA 05 1E 00 00 00 00 00 C8 00 FF FF 00 00 00 00
                00 00 00 00 26 00 00 00 76 50 72 6F 00 00 00 00

Handle 0x001B, DMI type 13, 22 bytes
BIOS Language Information
        Language Description Format: Long
        Installable Languages: 1
                en|US|iso8859-1
        Currently Installed Language: en|US|iso8859-1

Handle 0x001C, DMI type 127, 4 bytes
End Of Table


http://paste.opensuse.org/images/28cd22b3.png

I’m at a loss for where to start with debugging this, since booting without quiet and splash=silent still doesn’t print anything useful after the resume image is loaded. Lemme know if there’s other info I should grab; I’m sure there is.

Sorry for the double post, but I can’t seem to edit my original post.

So I managed to get hibernate working, but resume takes more than a minute and half… I’m guessing a start job is failing and blocking the rest of the system, but nothing shows up in the syslog. What could I do to find what’s blocking resume. Removing quiet splash=silent doesn’t help.

The hibernation data is stored in the swap partition so unless your swap partition is slightly bigger than your memory you will never be able to hibernate.

Just speculation on my part as not a lot of info to go on. Do you have nvidia hardware by chance? Proprietary driver?

A good debugging reference (one of many)
https://01.org/blogs/rzhang/2015/best-practice-debug-linux-suspend/hibernate-issues

3.2.1 Graphics issue
Whenever the system hangs during suspend/hibernate or the monitor does not display anymore after resuming, try the following steps:

  1. Disable the kernel graphics driver you’re using. On Intel platforms, set CONFIG_DRM_I915=n.
  2. Note:
    Do not use nomodeset modprobe.blacklist=i915 in the command line, because sometimes the i915 driver might get probed by other components. > 1. Try suspending/resuming again.
  3. If you see a black screen without graphics after resuming, try to reach the system via serial console or SSH. If the system is still working, this is a graphics issue.
  4. If neither serial console nor SSH is available, press Num Lock on your PS2 keyboard. If the Num Lock LED lights up when you press the key, then use the keyboard to type reboot. Although the monitor has no display, if the system reboots successfully, then it is likely that the system is working correctly, and this is a graphics issue.

For graphics issues, file a bug at https://bugs.freedesktop.org/. For example, we isolated the root cause of a suspend/hibernate problem to the graphics driver by the hint from the following lines in dmesg output:

Yes, this is intentional. No, it is not EFI variable, it is GRUB own variable that is stored in persistent GRUB envrionment block. It works the same in case of legacy BIOS.

Yes, minute and half hints at service timeout (default timeout is 90 seconds). Anything about failed services in journalctl output? You could try to enable systemd debugging before hibernating (/bin/kill -RTMIN+22 1), it may give some more information.