How to stop laptop from hibernating when it's sleeping?

fleshconsumed

Diamond Member
Feb 21, 2002
6,486
2,363
136
I recently purchased Lenovo Yoga 11s laptop. About a week after I got it I reinstalled OS because all the bloat lenovo put on it was really slowing the machine down.

I have set the laptop to go to sleep when I close the lid since I almost always leave it plugged in at home. I like it that way because when I open the lid I can just hit the space bar to wake up the laptop. However, if I leave it like that for some time, say a day or so, it inevitably goes into hibernation mode and in order to wake it up I have to hit power button which is annoying and hard because the power button on this particular laptop is in an awkward place and hard to press.

I have played with the laptop before I reinstalled the OS and it did not use to hibernate after being put to sleep when I close the lid. It would stay indefinitely in sleep mode after I closed the lid. I think it also automatically wake up when I opened the lid. After I reinstalled the OS this is not the case anymore, after a while it goes into hibernate and it never wakes up when I open the lid. So I know it's a software setting somewhere, but I cannot find it. Does anybody know how I can prevent my Yoga from hibernating after I put it in sleep mode? And if I can set it to automatically wake up from sleep when I open the lid?
 

fleshconsumed

Diamond Member
Feb 21, 2002
6,486
2,363
136
Found the answer. I dug deeper into advanced power settings and by default my laptop was set to hibernate after 180 minutes. Apparently this setting also takes effect even if the laptop is already in the sleep mode. I have changed it to never and this morning my laptop was still sleeping, not hibernating. It also woke up as soon as I opened the lid. I'm happy.
 

ringtail

Golden Member
Mar 10, 2012
1,030
34
91

fleshconsumed

Diamond Member
Feb 21, 2002
6,486
2,363
136
Except I make use of hibernate on my laptop. Not often, but I do use it. Sleep still drains the battery somewhat, and I do not like shutting down/closing my programs. So if I know ahead of time that I may not have regular access to electrical outlet I'd rather hibernate that close all my programs/shutdown/reopen my programs every time.

On my desktop of course I have hibernate disabled, it's pointless there. However on my laptop I do find it useful often enough to leave it enabled.
 

grant2

Golden Member
May 23, 2001
1,165
23
81
The way to go is not to change the setting as you described, but is instead to remove Hibernate [/SIZE][/FONT]altogether. I've done this for several years. Hibernate is just a pretty useless memory hog. Instead of the memory ding of Hibernate, you can just manually LOGOFF then SLEEP.

How to disable and re-enable hibernation on a computer that is running Windows

I strongly disagree.

Hibernation has 2 big advantages over sleep:
1. does not consume battery
2. allows an elegant restart even if power is lost

The first is pretty important on a laptop. Imagine if you leave your laptop alone for a week- why do you want to waste half the battery keeping it sleeping for so long?

Yes, hibernate takes up some HD space. Maybe 3gb of lost HD space is an issue for some people, maybe not. Even on my 128gb HD i always had ~50gb spare room.

"you can just manually log off then sleep" <--- this sounds like unnecessary hassle. When i'm ready to sleep, I just close my lid & done.

Everyone has their preferences. I prefer a few seconds of convenience instead of a few gb of HD free space I will never use anyways.
 

sm625

Diamond Member
May 6, 2011
8,172
137
106
You should keep hibernation enabled. Just set the time for beyond an hour or two.

to set it, open your power options:

c03311245.gif


Change the Hibernate After value to what you want.
 

corkyg

Elite Member | Peripherals
Super Moderator
Mar 4, 2000
27,370
239
106
If you have a SSD, then maybe Hiberfil.sys is not all that good for you. Everytime you hibernate, it writes a new file to the SSD - so, that act of power saving does create writes on your SSD that sleep does not. It's not a biggie, but it is a consideration.
 

Valantar

Golden Member
Aug 26, 2014
1,792
508
136
If you have a SSD, then maybe Hiberfil.sys is not all that good for you. Everytime you hibernate, it writes a new file to the SSD - so, that act of power saving does create writes on your SSD that sleep does not. It's not a biggie, but it is a consideration.

Unless you have >8GB of data constantly in memory and are hibernating more than 10 times a day, it really isn't a concern. The Intel X25-m 80GB in my laptop is growing quite old, yet it's nowhere near its endurance rating, even when it's been hibernated several times every single day for the time that I've had it. It's seen something like 7TB of writes - that's 87,5 write cycles. That's not very much, and this is a 80GB drive. The larger drives of today have far better endurance.

Fleshconsumed: you sound like you would want to disable the "hybrid sleep" option in the advanced power settings, which is the setting that hibernates the computer after a certain amount of sleep. That combined with "hibernate after" set to "never" will keep your PC asleep as long as it has power.
 

grant2

Golden Member
May 23, 2001
1,165
23
81
If you have a SSD, then maybe Hiberfil.sys is not all that good for you. Everytime you hibernate, it writes a new file to the SSD - so, that act of power saving does create writes on your SSD that sleep does not. It's not a biggie, but it is a consideration.
Irrelevant. It might reduce the theoretical lifespan of your SSD from 15 years to 10 years, and so what? What serious computer user plans to keep their 128gb laptop SSD for more than 10 years anyways.

SSDs quickly wearing out from normal use is a a boogieman under the bed which has been disproven long ago.
 

corkyg

Elite Member | Peripherals
Super Moderator
Mar 4, 2000
27,370
239
106
The operative word is "maybe." Hardly irrelevant. Perhaps not overly consequential.