You are not logged in.

#1 2017-08-30 08:17:53

heisenberg
Member
Registered: 2017-05-27
Posts: 87

[SOLVED] Hibernation doesn't work

Hi,

I already followed those wiki steps: https://wiki.archlinux.org/index.php/Po … ibernation, anyway when I try to hibernate, the screen goes black, the fan speed goes high and stays like this... so I have to manually shutdown the system.

What's wrong ? Tried on both, stable and lts kernels, same behavior.

Last edited by heisenberg (2017-10-14 16:33:59)

Offline

#2 2017-08-30 08:22:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Hibernation doesn't work

Read your journal.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-08-30 08:31:43

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

[heisenberg@arch-asus ~]$ journalctl --since "60 min ago" | grep -i hibernation
ago 30 09:59:13 arch-asus kernel: PM: Checking hibernation image partition /dev/sda2
ago 30 09:59:13 arch-asus kernel: PM: Hibernation image not present or could not be loaded.
ago 30 09:59:13 arch-asus kernel: PM: Hibernation image partition 8:2 present
ago 30 09:59:13 arch-asus kernel: PM: Looking for hibernation image.
ago 30 09:59:13 arch-asus kernel: PM: Hibernation image not present or could not be loaded.
[heisenberg@arch-asus ~]$ journalctl --since "60 min ago" | grep -i swap
ago 30 09:58:57 arch-asus systemd[1]: Stopped target Swap.
ago 30 09:58:57 arch-asus systemd[1]: Deactivating swap /dev/disk/by-uuid/dd8a0f0c-1257-4289-8d18-0db30f2c7231...
ago 30 09:58:57 arch-asus systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:00:11.0-ata-1-part2.
ago 30 09:58:57 arch-asus systemd[1]: Deactivated swap /dev/disk/by-partuuid/27c97227-7435-40ce-97cb-47fd42c2a6fc.
ago 30 09:58:57 arch-asus systemd[1]: Deactivated swap /dev/disk/by-partlabel/swap.
ago 30 09:58:57 arch-asus systemd[1]: Deactivated swap /dev/disk/by-id/wwn-0x50014ee6048a3e98-part2.
ago 30 09:58:57 arch-asus systemd[1]: Deactivated swap /dev/disk/by-id/ata-WDC_WD7500BPKX-22HPJT0_WD-WXM1E14MKPZ6-part2.
ago 30 09:58:57 arch-asus systemd[1]: Deactivated swap /dev/sda2.
ago 30 09:58:57 arch-asus systemd[1]: Deactivated swap /dev/disk/by-uuid/dd8a0f0c-1257-4289-8d18-0db30f2c7231.
ago 30 09:59:13 arch-asus kernel: zswap: loaded using pool lzo/zbud
ago 30 09:59:22 arch-asus systemd[1]: Found device WDC_WD7500BPKX-22HPJT0 swap.
ago 30 09:59:24 arch-asus systemd[1]: Activating swap /dev/disk/by-uuid/dd8a0f0c-1257-4289-8d18-0db30f2c7231...
ago 30 09:59:24 arch-asus kernel: Adding 20971516k swap on /dev/sda2.  Priority:-1 extents:1 across:20971516k FS
ago 30 09:59:24 arch-asus systemd[1]: Activated swap /dev/disk/by-uuid/dd8a0f0c-1257-4289-8d18-0db30f2c7231.
ago 30 09:59:24 arch-asus systemd[1]: Reached target Swap.

Offline

#4 2017-08-30 14:15:00

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] Hibernation doesn't work

jasonwryan wrote:

Read your journal.

Not

Post random excerpts from your journal

This is really useless - we don't even know the relevance of the timestamps (missing your local time) and you just grep for random strings.
Look at the entire journal and out for suspicious errors/warnings around the time the hibernation should happen.

Offline

#5 2017-08-30 14:19:50

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

That happened when I tried manually to hibernate, hibernation image not present looks suspicious... may you tell me exactly what to do to provide the useful informations ?

Offline

#6 2017-08-30 19:21:48

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] Hibernation doesn't work

Of course there's no hibernation image if you fail to hibernate. The interesting bits will be (if) in the journal *before* the reboot.
I've no idea what stalls/breaks the hibernation - you're sitting on this information (if available) stored in your journal. You take a sharp look at it or post the relevant segment iff you can't find anything suspicious and want to re-check this finding.

Offline

#7 2017-08-31 06:58:21

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

seth wrote:

Of course there's no hibernation image if you fail to hibernate. The interesting bits will be (if) in the journal *before* the reboot.
I've no idea what stalls/breaks the hibernation - you're sitting on this information (if available) stored in your journal. You take a sharp look at it or post the relevant segment iff you can't find anything suspicious and want to re-check this finding.

ago 31 08:41:34 arch-asus systemd[1]: Reached target Sleep.
ago 31 08:41:34 arch-asus systemd[1]: Starting Hibernate...
ago 31 08:41:34 arch-asus kernel: PM: Hibernation mode set to 'platform'
ago 31 08:41:35 arch-asus systemd-sleep[7790]: Suspending system...
ago 31 08:41:35 arch-asus kernel: PM: Syncing filesystems ... 
-- Reboot --

This ? :\

Offline

#8 2017-08-31 11:39:00

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] Hibernation doesn't work

You should get "freezing user space processes" next, so it seems to fail/stall syncing the filesystems.

Got any remote filesystems mounted? (NFS, SMB, ...) Any exotic external devices?

Offline

#9 2017-08-31 11:46:10

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

No.
The only mounted partition should be root. (Partition scheme is "standard" and I followed the wiki during the installation, ending with the following partitions: boot/swap(20Gb)/root(ext4))

Offline

#10 2017-09-01 07:19:26

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] Hibernation doesn't work

Some ACPI issue?
Can you "systemctl poweroff" resp. "systemctl halt"?
What if you isolate the multi-user.target and "systemctl hibernate"?

And what exact hardware is this?

Offline

#11 2017-09-01 19:17:50

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

[heisenberg@arch-asus ~]$ sudo dmidecode
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.
Table at 0xCE575000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: American Megatrends Inc.
        Version: X555DG.520
        Release Date: 09/02/2016
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 8192 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: 5.6

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: X555DG
        Version: 1.0       
        Serial Number: xxx     
        UUID: xxx
        Wake-up Type: Power Switch
        SKU Number: ASUS-NotebookSKU
        Family: X

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: X555DG
        Version: 1.0       
        Serial Number: xxx
        Asset Tag: xxx
        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       
        Serial Number: xxx     
        Asset Tag: xxx
        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: Default string

Handle 0x0004, DMI type 10, 6 bytes
On Board Device Information
        Type: Video
        Status: Enabled
        Description:  VGA

Handle 0x0005, DMI type 11, 5 bytes
OEM Strings
        String 1:              
        String 2:              
        String 3:              
        String 4: xxx
        String 5:  
        String 6:  
        String 7:  
        String 8:  
        String 9:  
        String 10:  

Handle 0x0006, DMI type 7, 19 bytes
Cache Information
        Socket Designation: L1 CACHE
        Configuration: Enabled, Not Socketed, Level 1
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 320 kB
        Maximum Size: 320 kB
        Supported SRAM Types:
                Pipeline Burst
        Installed SRAM Type: Pipeline Burst
        Speed: 1 ns
        Error Correction Type: Multi-bit ECC
        System Type: Unified
        Associativity: 2-way Set-associative

Handle 0x0007, DMI type 7, 19 bytes
Cache Information
        Socket Designation: L2 CACHE
        Configuration: Enabled, Not Socketed, Level 2
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 2048 kB
        Maximum Size: 2048 kB
        Supported SRAM Types:
                Pipeline Burst
        Installed SRAM Type: Pipeline Burst
        Speed: 1 ns
        Error Correction Type: Multi-bit ECC
        System Type: Unified
        Associativity: 16-way Set-associative

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

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

Handle 0x0012, DMI type 19, 31 bytes
Memory Array Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x001FFFFFFFF
        Range Size: 8 GB
        Physical Array Handle: 0x0011
        Partition Width: 255

Handle 0x0013, DMI type 17, 40 bytes
Memory Device
        Array Handle: 0x0011
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 4096 MB
        Form Factor: SODIMM
        Set: None
        Locator: DIMM 0
        Bank Locator: CHANNEL B
        Type: DDR3
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 1600 MT/s
        Manufacturer: Hynix/Hyundai
        Serial Number: 1015035E
        Asset Tag: A1_AssetTagNum2
        Part Number: HMT451S6DFR8A-PB  
        Rank: 1
        Configured Clock Speed: 1333 MT/s
        Minimum Voltage: 1.25 V
        Maximum Voltage: 1.35 V
        Configured Voltage: 1.35 V

Handle 0x0014, DMI type 17, 40 bytes
Memory Device
        Array Handle: 0x0011
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 4096 MB
        Form Factor: SODIMM
        Set: None
        Locator: DIMM 1
        Bank Locator: CHANNEL B
        Type: DDR3
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 1333 MT/s
        Manufacturer: Micron
        Serial Number: 00000000
        Asset Tag: A1_AssetTagNum3
        Part Number: 8KTF51264HDZ-1G4E1
        Rank: 2
        Configured Clock Speed: 1333 MT/s
        Minimum Voltage: 1.25 V
        Maximum Voltage: 1.35 V
        Configured Voltage: 1.35 V

Handle 0x0015, DMI type 20, 35 bytes
Memory Device Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x000FFFFFFFF
        Range Size: 4 GB
        Physical Device Handle: 0x0014
        Memory Array Mapped Address Handle: 0x0012
        Partition Row Position: Unknown
        Interleave Position: Unknown
        Interleaved Data Depth: Unknown

Handle 0x0018, DMI type 4, 42 bytes
Processor Information
        Socket Designation: P0
        Type: Central Processor
        Family: A-Series
        Manufacturer: AuthenticAMD
        ID: FF FB 8B 17 01 0F 66 00
        Signature: Family 11, Model 15, Stepping 15
        Flags:
                FPU (Floating-point unit on-chip)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                PSE-36 (36-bit page size extension)
                PSN (Processor serial number present and enabled)
                DS (Debug store)
                ACPI (ACPI supported)
        Version: AMD A10-8700P Radeon R6, 10 Compute Cores 4C+6G
        Voltage: 0.9 V
        External Clock: 100 MHz
        Max Speed: 1800 MHz
        Current Speed: 1800 MHz
        Status: Populated, Enabled
        Upgrade: None
        L1 Cache Handle: 0x0006
        L2 Cache Handle: 0x0007
        L3 Cache Handle: Not Provided
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Core Count: 4
        Core Enabled: 4
        Thread Count: 4
        Characteristics:
                64-bit capable

Handle 0x0019, 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 0x001A, DMI type 127, 4 bytes
End Of Table

     

This laptop should have nothing "non-standard" but if you need any other specific information let me know what's needed (and maybe the command to get it tongue )

Yeah, poweroff and halt looks ok. ACPI Issues, what do you mean exactly ?

Isolate multi-user.target... I have no idea about what to do :S

Last edited by heisenberg (2017-09-01 19:22:56)

Offline

#12 2017-09-01 19:38:40

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] Hibernation doesn't work

Isolate multi-user.target...

https://wiki.archlinux.org/index.php/Sy … ent_target

This thread blames amdgpu for hibernation failures.
Try to blacklist the module and simply uninstall xf86-video-amdgpu to (hopefully) go without.
https://wiki.archlinux.org/index.php/Ke … and_line_2

Offline

#13 2017-09-02 06:40:42

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

I tried to unistall xf86-video-amdgpu directly, but the issue is still there.
I didn't use any other video driver, there's a file in xorg configuration that I'm using to force vsync off that loads amdgpu driver, so I did the test without anything graphical loaded (with CTRL-ALT-F2 when boot completed and "stucked" loading graphical interface), but I think that doesn't matter.
In that situation I tried to isolate multi-user.target and systemctl hibernate as well, but same issue.

Don't know if that may be useful, but here there should be all the kernel parameters I'm using:

title	stable
linux	/vmlinuz-linux
initrd 	/initramfs-linux.img
options	root=/dev/sda3 rw modprobe.blacklist=tpm_crb acpi_backlight=native resume=/dev/sda2

And yeah, the issue looks exactly the one mentioned in the Gentoo's thread you linked:
" After second resume from suspend laptop has a hard lockup, fan is spinning at full RPM's, the only thing I can do is press "power" button for reboot. "
" The screen turns off, the CPU gets very hot, the fan goes to max. RPMs. "

Offline

#14 2017-09-28 06:56:05

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

Today I updated to kernel 4.13 but the issue is still there.

Offline

#15 2017-10-06 18:00:34

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

Blacklisting amdgpu kernel module makes hibernation work!

But pratically I can't use the system... what can I do ?

Offline

#16 2017-10-06 18:30:08

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] Hibernation doesn't work

You'd probably have to unload the module before hibernation - what's not practical (notably if you intend to run graphical sessions)

You could try to go w/o audio, ms,  dpm, aspm, runpm or bapm (or a combination of them) - see "modinfo amdgpu" and https://wiki.archlinux.org/index.php/Ke … le_options resp. "iommu=off" (global kernel parameter, see https://wiki.archlinux.org/index.php/Kernel_parameters)

Offline

#17 2017-10-07 09:39:10

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

seth wrote:

You'd probably have to unload the module before hibernation - what's not practical (notably if you intend to run graphical sessions)

You could try to go w/o audio, ms,  dpm, aspm, runpm or bapm (or a combination of them) - see "modinfo amdgpu" and https://wiki.archlinux.org/index.php/Ke … le_options resp. "iommu=off" (global kernel parameter, see https://wiki.archlinux.org/index.php/Kernel_parameters)

Yes, I need a graphical session.

I'll take a look later but looks like it's not an "optimal" solution sad
Is there any chance that this bug will be fixed anytime soon ? (or later?)

Plus, might be that removing any of those kernel parameters: modprobe.blacklist=tpm_crb, acpi_backlight=native, may solve the problem ? (Guess no ofc).

Offline

#18 2017-10-07 11:32:29

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] Hibernation doesn't work

It's not a "solution" but a "problem isolation" which will be an inevitable step to get " this bug [will be] fixed anytime soon ? (or later?)" - where my 8-ball is just as good as yours ...

I doubt that tpm or the backlight are related (given amdgpu has been identified as culprit), but you can certainly try.

Offline

#19 2017-10-14 12:43:44

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] Hibernation doesn't work

seth wrote:

It's not a "solution" but a "problem isolation" which will be an inevitable step to get " this bug [will be] fixed anytime soon ? (or later?)" - where my 8-ball is just as good as yours ...

I doubt that tpm or the backlight are related (given amdgpu has been identified as culprit), but you can certainly try.

Today I tried, but nothing works. I guess the only thing I can do is wait for a fix...

Meanwhile, I'll use "Suspend". Is there any way to disable hibernation (or hide hibernation buttons in KDE) ??

EDIT: Done using https://bbs.archlinux.org/viewtopic.php … 3#p1261353

Last edited by heisenberg (2017-10-14 16:33:41)

Offline

Board footer

Powered by FluxBB