You are not logged in.

#1 2016-09-25 10:53:05

adrian1112
Member
Registered: 2016-07-10
Posts: 4

Dell XPS 13 (9350) Hibernation Issue [SOLVED]

Hi everyone, don't normally post on forums for help but one issue has me completely stumped. I've recently installed arch on my Dell XPS 13 9350 (i7, 256GB SSD, 8GB RAM) and almost everything is working, the main issue that I can't seem to be able to solve is that sometime the computer will not hibernate successfully all of the time. Running "systemctl hibernate" will normally yield successful hibernation but I've noticed that if the session was particularly 'demanding' (darktable raw-edits, many tabs open in chromium) on RAM, when I issue the hibernate command, the screen goes black but yet the power (fans and power light) is still on and the only way to shutdown the PC is by holding down the power button. Upon starting the computer again, it does not resume but instead starts to boot from scratch suggesting that hibernation was not successful.

This only appears to happen when there was 'heavy usage' prior to hibernation. If I was only browsing the web or editing a document, it hibernates just fine and resumes too. My SWAP partition is on an LVM and is the same size as my RAM so I don't think that could be the issue. Everything else that matters seems to work fine (except not being able the pass variables to the EFISTUB boot loader so I'm stuck with GRUB) but this issue is extremely annoying when travelling.

Anyone has any ideas as I couldn't find anything in my search.

Don't know what HW/SW information to post so ask and I will provide! smile

Last edited by adrian1112 (2016-09-26 19:26:50)

Offline

#2 2016-09-25 16:13:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Dell XPS 13 (9350) Hibernation Issue [SOLVED]

By hibernate,  I assume you mean suspend to disk.  Are you using a swap file or a swap partition?  How big is the partition?  How much RAM do you have?
At the time you entered hibernation, had you been using any of your swap space?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-09-25 22:09:05

adrian1112
Member
Registered: 2016-07-10
Posts: 4

Re: Dell XPS 13 (9350) Hibernation Issue [SOLVED]

ewaller wrote:

By hibernate,  I assume you mean suspend to disk.  Are you using a swap file or a swap partition?  How big is the partition?  How much RAM do you have?
At the time you entered hibernation, had you been using any of your swap space?

Thanks for replying! smile

Yeah, by hibernation I mean suspension to disk (suspension to RAM seems to work just fine). My swap partition (sits in a LVM group along with the root and home logical volumes on top of a LUKS volume) is 8GiB in size which is equal to the physical RAM in the laptop (7.6GiB is reported as being available) and the SWAP is empty before I attempt to suspend to disk. If I hibernate immediately after starting from a cold boot it will hibernate to disk properly but if I open and close a few programs and try again it will fail (the screen turns of but the fan and power light remain running as mentioned in the OP). It's almost as if there is not enough swap space to accommodate the RAM contents but that isn't the case.

Last edited by adrian1112 (2016-09-25 22:10:17)

Offline

#4 2016-09-25 22:56:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Dell XPS 13 (9350) Hibernation Issue [SOLVED]

Yeah, the typical wisdom is to have the swap space be twice the RAM size.  That could be the issue.  What if you were to set up a larger swap file instead of a swap partition for a while as a debugging step.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-09-25 23:10:19

promarbler14
Member
From: MD, U.S.
Registered: 2016-03-28
Posts: 40

Re: Dell XPS 13 (9350) Hibernation Issue [SOLVED]

You could also try this before suspension to disk:
sudo bash -c 'sync; echo 3 >/proc/sys/vm/drop_caches'
This *may* improve the chances of success.

Offline

#6 2016-09-26 19:25:21

adrian1112
Member
Registered: 2016-07-10
Posts: 4

Re: Dell XPS 13 (9350) Hibernation Issue [SOLVED]

So, I increased my SWAP size to 16GiB and it seems to work fine now even after heavy workloads. Still a bit odd as my old laptop had 4 gigs of ram and a 4G SWAP parition and I never had issues even after longer sessions with many programs so I didn't think I needed such a large SWAP partition - quite annoying with a small SSD.

Thanks all! smile

Offline

#7 2016-09-26 20:18:03

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Dell XPS 13 (9350) Hibernation Issue [SOLVED]

adrian1112 wrote:

So, I increased my SWAP size to 16GiB and it seems to work fine now even after heavy workloads. Still a bit odd as my old laptop had 4 gigs of ram and a 4G SWAP parition and I never had issues even after longer sessions with many programs so I didn't think I needed such a large SWAP partition - quite annoying with a small SSD.

Thanks all! smile

You could look into...

1) buy flush 128G sdcard for data (books, movie, etc) to save ssd space (https://www.amazon.com/Spinido-microSD- … ge_o07_s02)
2) what is your swappiness on older laptop vs current? 
3) is old laptop running same DE/WM, apps?  Version of these similar? 
4) why do you need to hibernate instead of suspending to ram?
5) play around with the swap file size, might not need all of 16G.  Try 15 then 14... See what the perfect size is for your use case.

Offline

#8 2016-09-26 20:53:56

adrian1112
Member
Registered: 2016-07-10
Posts: 4

Re: Dell XPS 13 (9350) Hibernation Issue [SOLVED]

frank604 wrote:
adrian1112 wrote:

So, I increased my SWAP size to 16GiB and it seems to work fine now even after heavy workloads. Still a bit odd as my old laptop had 4 gigs of ram and a 4G SWAP parition and I never had issues even after longer sessions with many programs so I didn't think I needed such a large SWAP partition - quite annoying with a small SSD.

Thanks all! smile

You could look into...

1) buy flush 128G sdcard for data (books, movie, etc) to save ssd space (https://www.amazon.com/Spinido-microSD- … ge_o07_s02)
2) what is your swappiness on older laptop vs current? 
3) is old laptop running same DE/WM, apps?  Version of these similar? 
4) why do you need to hibernate instead of suspending to ram?
5) play around with the swap file size, might not need all of 16G.  Try 15 then 14... See what the perfect size is for your use case.

I'll look into the SD card idea - thanks for the link. I always have my external HDD with me where all my photos live but more space "inside" the laptop is always good.

My snappiness was set to 1 on both laptops, it was one of the first config changes I make when installing arch. Also, thanks for suggesting reducingn the swap size. I'll be slowly training down the logical volume for the swap and see when the problem reappears.

Cheers! smile

Offline

Board footer

Powered by FluxBB