Hacker News new | ask | show | jobs
by beAbU 648 days ago
I learned about this workaround a while back on some throwaway comment on a youtube video, and from what I can tell it really works. I never bothered to really look into system logs or whatever to verify what was going on.

But in a nutshell, unplug your laptop before you close the lid. Windows does not suspend to modern standby when that happens. I always had an overcooked and dead laptop at the other end of my commute, which went away when I started unplugging first. Now my windows machine can go literal days in sleep mode without really impacting remaining battery that much.

2 comments

which points to a absurdity of s0, it seems to consistently miss or have bugs in things I would expect to be core aspects like

- monitoring if power is unpluged

- monitoring if battery level sings below threshold

- monitor CPU temperature

and take appropriate actions, like transitioning to "classical" S3 or better hybrid S3

it's totally a misterious for me how that doesn't work well even 10 years later

I mean bugs which idk. unexpectedly drain a bit more battery etc. are to be expected but I would expect the UEFI to be like "uh that's too much CPU heat lets stop here", "uh that's draining the batter too fast let's stop", "uh only 40% batter better not even try anything". And sure you want hello to work even with <40% battery but that's if its enabled, which often it isn't.

Yeah you are right, my little "hack" is really something that makes it less terrible, but it does not make it as nice as traditional S3 sleep. The fact that this sleep mess is still so buggy and annoyance prone beggars belief.

This might be an urban myth so read with a pinch of salt, but there was a line of Dells at some point that warned to not close the lid without a proper shutdown, because it'll literally cook the LCD and cause permanent damage. Dell decided this was the right course of action for this problem.

I think that wasn't just a urban myth, like AFIK (and that could be wrong) it did happen but only rarely and only under certain conditions etc.
This does work, however it’s really not ideal for Windows machines using a dock (which is usually the power connection) and external monitors. If you unplug first, all your windows get moved to the single laptop display, but if you close the lid first, everything is where it was when you resume.
I wonder if switching to a different user before undocking might somehow insulate your main-account desktop from the shift.

I remember there used to be utilities that could save and restore icon positions, but perhaps that was only for good versions of Windows.