You are not logged in.

#1 2016-03-28 14:41:37

gurkan
Member
Registered: 2016-02-01
Posts: 28

Cant hibernate or suspend properly

Hi!

I have managed to get it working so long as the computer can go in hibernation or/and suspend, but the problem is when the computer have been hibernated for a longer time (maybe 1 hour and more), then I just get a blank screen when resuming and/or starting up computer again.

If I turn on the computer directly after a hibernate or suspend, then it can resume with success.

I have edited /etc/default/grub and added "resume=/dev/sda2" to GRUB_CMDLINE_LINUX_DEFAULT (sda2 is my swap)

I have "resume" (before "filesystems" and after "udev") in the HOOKS in mkinitcpio.conf

I have updated mkinitcpio.conf and grub.

/Gurkan

Offline

#2 2016-03-28 17:33:36

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Cant hibernate or suspend properly

Has it ever worked properly?

What sort of hardware are you using and are there any messages in the journal etc which seem relevant?

Have you tried using the systemd hook instead?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2016-03-28 20:17:15

gurkan
Member
Registered: 2016-02-01
Posts: 28

Re: Cant hibernate or suspend properly

Thank you for the answer!

It has never worked properly Im afraid.

I will take a look in the journalctl tomorrow. Its a laptop with skylake i7, Intel hd graphics 520, Wireless-AC 8260, SSD and so on...

How do I use the systemd hook?

/Gurkan

Offline

#4 2016-03-28 20:47:12

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: Cant hibernate or suspend properly

In fact, i thought that You have Intel (before i read thirs post)  because i had exacly the same problem with my Skylake (I7-6700K) on desktop machine (suspend to disk works, when i do it and right after it, resume from it, but if i leave machine for some time and wake it up...freez).

I could always properly suspend to ram, and wake it from suspend to ram but hibernation - suspend to disk, was a different story. I could suspend to disk, but resume from it always give my freeze when resume of the image had 100% (swap partition, swapfile - does not matter which one was being used). Could do only reset - nothing in logs because computer freezed and system logs were written till suspend, not freezed resume. No blinking cursor, no blinking leds just freezed system, with keyboard that did not work after freeze (tried to switch TTY - the same).

I tried to remove video drivers (in my case it was nvidia and tried with mesa) also i tried with lts-kernel. Nothing worked. Also i upgraded my bios (MSI Z170A Gaming M3) few times.

Now it works - not because of newer bios, or lts-kernel. Try to check your bios and disable HT (hyperthreading) and options that are related to memory (oc, memory hole, interleaving and so on). I switched it, now it works 100% of the time.


BTW - on Windows it works without changing options in bios (so in fact on Windows we have I7...while on Arch our processor works as I5...because I5 does not have HT).

In fact - i've been struggling wih suspend to disk since august...or july, when i bought an Skylake...(what is more funny - i had the same problem (suspend to ram did not work...suspend to disk worked...) for 1.5 year with Haswell platform and 4670K...on Gigabyte board Z97-HD3P...).


Suspend to disk/suspend to ram works on my laptop (Intel Pentium B960), on my netbook (Intel Atom n2600) and on my old desktop (AMD X4 Phenom II 955)...so it must be something with Intel newer platoforms.  Ther is no microcode update for Skylake - i did not have for Haswell either.

Last edited by firekage (2016-03-28 20:59:02)

Offline

#5 2016-03-28 22:39:11

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Cant hibernate or suspend properly

Using the systemd hook is covered in the Wiki article.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#6 2016-03-29 03:13:11

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: Cant hibernate or suspend properly

You mean this:
https://wiki.archlinux.org/index.php/mkinitcpio

There is nothing much about it...

Offline

#7 2016-03-31 18:04:30

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: Cant hibernate or suspend properly

I checked it again - in my case, Intel Hyperthreading on Skylake or Z170 is culprit. As soon as i enable it in bios, and do a hibernate, than resume second time from it - computer is freezed. Can't switch to tty, no logs at all.

Last edited by firekage (2016-03-31 18:04:44)

Offline

#8 2016-04-01 18:50:55

gurkan
Member
Registered: 2016-02-01
Posts: 28

Re: Cant hibernate or suspend properly

Sorry for late answer, but my week has been packed with stuff to do. Anyway, I tried to resume a hibernation a couple of times now and it has actually worked (even with 2 days between the hibernation and resuming of it). I wouldnt mark this thread as "Solved", since Im pretty sure that it will fail soon again.

firekage: My BIOS is very limited, so I cant try what you have suggested =/.

I will try this on my desktop computer with an i5 cpu and see if will work there.

Thanks for all the answers!

Offline

#9 2016-04-01 19:02:48

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: Cant hibernate or suspend properly

Maybe some kernel parameter could be added to disable HT without bios?

BTW - i have Acer AOD 270 with Intel Atom n2600. This CPU has 2 cores and 4 threads...so in fact...i should disable HT also, but it works. Something is buggy with Skylake.

Last edited by firekage (2016-04-01 19:03:36)

Offline

#10 2016-04-02 07:45:35

gurkan
Member
Registered: 2016-02-01
Posts: 28

Re: Cant hibernate or suspend properly

Noww when I tried to resume after a 8 hour hibernation, it failed =/.

Hmm, I have no clue what to do, and Im not willing to change to another Linux dist just beacause of this, sine Arch rocks (wich actually also was my first serious attempt with a Linux dist).

I hope there will be a fix for this. Can I report this bug (if it is a bug) somewhere?

Thank you firekage for the help! smile

Offline

#11 2016-04-02 11:09:57

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: Cant hibernate or suspend properly

I saw on OpenSuse form and some other, that it is possible to pass to kernel noht parameter, but i'm not sure if on Arch this works.

Offline

Board footer

Powered by FluxBB