Windows PCs can't sleep properly, and Microsoft wants it that way (www.spacebar.news)
from corbin@infosec.pub to technology@lemmy.ml on 20 Nov 2023 16:20
https://infosec.pub/post/5130167

#technology

threaded - newest

sylver_dragon@lemmy.world on 20 Nov 2023 16:40 next collapse

Anymore, standby seems to be a solution for a problem which no longer exists. Booting from a completely powered off state to a full desktop takes very little time, on a modern system with an SSD. You’re also less likely to be online to receive updates or the like while in a standby state. Unlike phones, computers rarely have cellular modems. So, the benefits of an “always on” state are largely lost, as the system isn’t going to get updates, notifications or data while it’s in standby. Just power the device off.

wander1236@sh.itjust.works on 20 Nov 2023 16:54 next collapse

Resuming from S3 is still a lot faster than cold booting or resuming from hibernation, even with SSDs and Fast Boot. It’s also nice for keeping your session intact so you don’t have to reopen programs and reload tabs.

SheeEttin@lemmy.world on 20 Nov 2023 17:03 next collapse

Laptops still exist

Brokkr@lemmy.world on 20 Nov 2023 18:07 next collapse

It might be quick to get to a windows log in screen, but it still takes a long time to get back to a usable state, not to mention the state that you actually want it in (programs and files open, etc).

Having standby or hibernation was really great for this. Being able to put a laptop into a bag for 24 hours and then getting back to exactly where you left it was a very nice feature.

DrDeadCrash@programming.dev on 20 Nov 2023 18:36 next collapse

What about session state?

olicvb@lemmy.ca on 20 Nov 2023 19:07 next collapse

awweee : ( but i like not having to re-open my 9 separate browser windows, 3 constantly opened apps, plus whatever program i was working in.

Sleep has me back to my workflow in no time

mateomaui@reddthat.com on 20 Nov 2023 19:10 next collapse

uh… no

Anticorp@lemmy.ml on 20 Nov 2023 19:19 next collapse

Shutting down and re-booting doesn’t retain your active work state. Mac OS will at least launch everything you had open if you want it to, but Windows (at least up to 10) has no such feature.

d3Xt3r@lemmy.nz on 20 Nov 2023 21:42 next collapse

This is incorrect…ish. Windows, yes even 10, has had a feature for a while now called Automatic Restart Sign-on (ARSO). You can enable this feature by going to Settings > Accounts > Sign in options > “Automatically save my restartable apps and restart them when I sign back in”.

After enabling it, a reboot will restore… some apps (hence the ‘ish’), these apps being mostly Microsoft apps (Edge, Word, Outlook, Notepad etc) + some third-party apps (I know Firefox gets restored, not sure about others).

You can also use the shutdown /g command to test this (after enabling ARSO):

/g Fully shuts down and restarts the computer. On restart, if Automatic Restart Sign-On is enabled, the device automatically signs in and locks based on the last interactive user. After sign in, it restarts any registered applications.

learn.microsoft.com/en-us/…/shutdown

Anticorp@lemmy.ml on 20 Nov 2023 22:06 collapse

Well that’s handy. I wonder what determines if it can relaunch a program or not. Does it retain your actual work state though, or just relaunch those programs? On my MacBook if I tell it to restore stuff when I shut down then it takes me back to exact same state, sans some VPN logins. Unsaved text editor files will still be there, whatever I had open in vs code will be active, all my browser tabs will restore, etc… It acts more like a hibernate than a shutdown.

d3Xt3r@lemmy.nz on 20 Nov 2023 22:58 collapse

Yep it does restore application state as well, but it’s a bit of a hit-and-miss. Notepad is restored surprisingly well - including unsaved text and multiple windows; Firefox and Edge browser tabs are restored; unsaved Word docs are restored as well but oddly enough, Outlook’s state isnt restored (although it does save any unsaved drafs).

I’m guessing some sort of resume/restartable support is needed from the app as well for this to work properly. I imagine modern “UWP” apps would just work, but some additional coding might be needed for traditional win32 apps. Like Adobe Reader for instance, it doesn’t get restored at all.

sugar_in_your_tea@sh.itjust.works on 21 Nov 2023 00:13 next collapse

I honestly find macOS’ feature more annoying than helpful. It doesn’t seem to launch Firefox for me (and probably other stuff), and it doesn’t recreate all the state in my terminal. And then my first login is completely frozen for a couple minutes as it loads all that stuff on first boot, most of which I don’t need right away.

So I use sleep a lot and try to avoid shutting down.

dRLY@lemmy.ml on 21 Nov 2023 04:41 collapse

Just going to just preface this with a heads-up that it is all just a rant about how much I hate that the “reopen everything” box is defaultly checked.

Also it being the default setting for Mac OS means that people just never actually quit out of programs (though being fair most normie Mac users don’t even seem to know that just closing a window doesn’t quit the program). Which leads to just massive slowdowns and weird errors that they just turn around and pay way too much money to “fix”.

I have had so much success with just immediately restarting them and just making sure to uncheck that stupid box so most shit finally is fully closed out when it powers back on. Which I also make it a point to tell everyone I help to actually reboot their shit even just a couple times a week (since most users also seem to never use either the shutdown or reboot and just always close the lid) to keep things more or less okay. I also educate them on how to actually quit out of programs.

I shit you not that I once just did the whole “uncheck the box and reboot” shit and completely fixed a weird webcam not being detected problem within less than 2mins total. Made my boss happy that I was able to help that fast, but was very frustrated to hear that the person had actually been to the Apple Store before coming to us. They (the Apple Store) ran some super quick diagnostic and it came back as not seeing the webcam. To which they had quoted the person like $500~$600 to for the parts and labour.

Coming to us was just a last attempt to make sure and the MacBook Air had been at least turned off and not just put to sleep before coming over. But the main factor was that stupid box being defaultly checked, and just everyone ignoring it and just keeping the problem around. The average person I can understand either just not really noticing or just being scared to uncheck it for fear of somehow messing something up. As they just assume that it wouldn’t be already checked if it was “correct”.

So at least I was able to fix an issue that really wasn’t an issue, and the person walked away not having to spend a dime. And they learned to only check the box if they need it and will just uncheck it the rest of the time. Which also makes me happy to have helped and have taught them something they didn’t ever think to question.

sugar_in_your_tea@sh.itjust.works on 21 Nov 2023 06:01 collapse

Honestly, I only use macOS because that’s what my work standardized on. I use Linux exclusively at home, and every issue I have with macOS is with some default that is opt-in on Linux.

I’m fairly competent with macOS, but it still frustrates me. I had to install an app to get per application volume control. I had to disable features like iCloud to stop getting nagged. I disable things from automatically starting up on boot because it takes way too long. I can’t really schedule updates or run them in the background. All of my ports break when I upgrade the OS, and getting them back is a pain (I use macports because it feels more familiar than homebrew, so maybe homebrew handles this better). Launching an app with spotlight or whatever cmd+space does is inconsistent, so I now pull up the app list to search (still feels wrong, though I guess it’s how GNOME Shell works). I use Docker images a lot, and since everything runs in a VM, it uses way more RAM than necessary (on Linux, I can just use Docker Engine and it uses very little).

But I will say I think macOS is nicer to use than Windows, so there’s that I guess. But I still feel like it’s super overpriced and frustration-inducing, but maybe that’s just because I’m a grumpy old Linux user.

wander1236@sh.itjust.works on 21 Nov 2023 06:08 collapse

I really don’t like macOS “reopen” feature. It doesn’t seem to remember state for most apps, so if they were running at all before shutting down, they’re going to have a window opened on login. Unchecking the option doesn’t seem to work for every app, either. Whenever I reboot, I end up having to close 5 or more windows from apps I had running in the background without open windows.

Bremmy@lemmy.ml on 20 Nov 2023 20:52 next collapse

“I don’t have a need to sleep my computer so no one else should!”

rob299@bookwormstory.social on 20 Nov 2023 23:49 next collapse

We don’t really care about background notifications on a PC. on a cellphone when we are out, yes because that’s just how it is and it makes work easier. We just expect as humans that when we put the PC to sleep that it acts as if it’s off but just with a quick resume when we wake it up.

amju_wolf@pawb.social on 21 Nov 2023 12:08 collapse

Booting from a completely powered off state to a full desktop takes very little time, on a modern system with an SSD.

Ahh I see you haven’t had the pleasure of dealing with a DDR5 system.

Arin@kbin.social on 20 Nov 2023 19:23 next collapse

can't collect your data if your device is actually sleeping

dan1101@lemm.ee on 20 Nov 2023 20:44 next collapse

If you can’t get the PC to stay asleep I wonder if disconnecting it from the internet will keep it asleep?

wander1236@sh.itjust.works on 21 Nov 2023 06:12 collapse

Modern Standby includes a Disconnected Standby mode. It never actually enters S3 sleep, because Windows assumes S0 sleep support means no S3 sleep support. Disconnected Standby might use a little less power than Connected Standby, but the computer is still subject to the same wakeups and wakelocks.

TheAnonymouseJoker@lemmy.ml on 20 Nov 2023 20:51 next collapse

The best way to shutdown your Windows system is to restart it, and then when its booting, shut it off right there. Restart actually restarts the system afresh, and for some profound reason, Windows took the hibernate shutdown feature introduced in Windows 8 and just completely removed the traditional shutdown way, how the shutdown button always worked upto 8.1 version. Windows 10 and 11 never shutdown with the shutdown, but with restart, as much of a circus as it sounds.

kick_out_the_jams@kbin.social on 20 Nov 2023 21:36 next collapse

If you want to turn off hibernation for good you can do so with an elevated prompt.

powercfg.exe /hibernate off

Otherwise you want to turn off fast start up, which should avoid the hibernation/shutdown you're talking about.

TheAnonymouseJoker@lemmy.ml on 20 Nov 2023 22:25 collapse

Yes, fast startup, forgot the name. But it is insane how its hidden off behind a commandline, what used to be a tickbox behind admin password inside of Power Options.

Edit: apparently the tickbox is still there, my bad

kick_out_the_jams@kbin.social on 21 Nov 2023 14:34 collapse

The fast start up option actually should still be under power options, though not really intuitive or easy to find.
Look for the part that says "Choose what the power buttons do" and it should be there.

I tend to just turn hibernation all off because I don't really use it, and I'd typically rather have the space hiberfil.sys takes up.

TheAnonymouseJoker@lemmy.ml on 21 Nov 2023 14:39 collapse

It is there. That is weird, how did I miss this all this time?

cupcakezealot@lemmy.blahaj.zone on 20 Nov 2023 22:39 next collapse

i heard you gotta wait until it tells you it’s safe to turn off your computer.

Tak@lemmy.ml on 20 Nov 2023 23:08 next collapse

Can’t you just disable fastboot?

Control Panel>Hardware and Sound>Power Options>System Settings Uncheck “turn on fast startup”

flying_sheep@lemmy.ml on 20 Nov 2023 23:46 collapse

Sure, until the next update, when they forcibly enable it again.

Tak@lemmy.ml on 20 Nov 2023 23:54 collapse

Gross

wander1236@sh.itjust.works on 21 Nov 2023 06:10 next collapse

If you hold the shift key when you press “shut down” it’ll fully shut down.

nephs@lemmygrad.ml on 21 Nov 2023 08:19 collapse

The best way to shutdown your windows computer is to install Linux.

TheAnonymouseJoker@lemmy.ml on 21 Nov 2023 10:13 next collapse

Nice FOSS activism (no /s) but I prefer the freedom of being able to use a full range of software and do full range of tasks as and how I need. I treat OSes like tools, not like religion cults, adopted Linux as primary with Ubuntu 16.04 LTS, now on Debian Stable and have W10 on SSD. I daily Debian like a champ but sometimes boot into Windows for the occasional need and game, to keep things functional and workflow free of friction.

I even have a very nice Linux/Windows guide for perspective lemmy.ml/post/511377

nephs@lemmygrad.ml on 21 Nov 2023 18:48 collapse

Me too. And by having Linux in my primary boot, I mostly guarantee windows can’t wake itself up after I shut it down. :D

CaptKoala@lemmy.ml on 21 Nov 2023 18:56 collapse

I had the same idea while I was setting up my dual-boot.

CaptKoala@lemmy.ml on 21 Nov 2023 18:55 collapse

That’s exactly what I’ve gone and done.

Needless to say I’ve not been woken up @2-4am when the PC powers itself up and sends the fans to infinity/turning all the lights on.

Fuck windows to the moon, now I just gotta figure out why steam only launches stuff 50% of the time.

Cort@lemmy.world on 20 Nov 2023 21:44 next collapse

Huh, I have the opposite issue on my new tablet. If it stays in sleep mode for more than an hour while unplugged, it goes into full shutdown mode and has to be booted up when I need it again. Asus flow z13

SheeEttin@lemmy.world on 21 Nov 2023 01:34 next collapse

That sounds like hybrid sleep, or low battery, or something.

rob299@bookwormstory.social on 21 Nov 2023 03:20 next collapse

Never heard of that happening unless it was a battery issue

icedterminal@lemmy.world on 21 Nov 2023 03:38 collapse

The default power plan Asus setup is doing this. You change power plan settings.

cupcakezealot@lemmy.blahaj.zone on 20 Nov 2023 22:39 next collapse

relatable. do windows pcs also have cats curled up between their legs?

rob299@bookwormstory.social on 20 Nov 2023 23:54 next collapse

pff, just power the PC off completely, that’l put it to sleep. Don’t trust that windows actually powers it off? Unplug the thing! While you are at it power off that phone of yours completely, that’l put the annoying notifications sounds and buzzing to rest.

general_kitten@sopuli.xyz on 21 Nov 2023 01:56 next collapse

just as i saw this post my computer i put to sleep woke up presumably because updates pending or some bullshit like that

Zerush@lemmy.ml on 21 Nov 2023 09:39 next collapse

No problem

  • Under “Power Options,” click "Change what the power buttons do."
  • Click the “Change settings that are currently unavailable” link near the top of the page.
  • Deselect Fast Startup (Recommended)
  • Save Changes
  • Done

<img alt="" src="https://file.coffee/u/60ZDUcAbnVwuv9I5HawgV.jpg">

It always amuses me when people say that Windows is easier to use than Linux, which is absolutely false and only coincides with basic functions, but not if you want to make Windows do what the you want and not the other way around. Windows allows you to tame it completely, it has all the necessary settings, but naturally these are becoming less and less intuitive and more hidden.

Squirrel@thelemmy.club on 21 Nov 2023 15:05 next collapse

It’s easier for people who don’t know what they’re doing. The limitations keep those users from breaking things and provide a decent out-of-the-box experience for the user. The very same limitations feel, well, limiting to users like you.

el_abuelo@lemmy.ml on 21 Nov 2023 19:26 collapse

One of us. One of us.

Squirrel@thelemmy.club on 21 Nov 2023 23:18 collapse

I mean, I’m not, but only because I am too lazy to change (so far). I’ve been remarkably content with the Steam Deck desktop experience, so I’m leaning more and more towards Linux.

vox@sopuli.xyz on 21 Nov 2023 19:34 next collapse

fast startup is pretty good tho.
win11 tases painfully long time to coldboot (2-3 minutes, somehow even slower than linux boot times on an 8 year old laptop) even from a fast nvme drive and fast boot solves that issue

Zerush@lemmy.ml on 21 Nov 2023 21:09 collapse

In 2-3 minutes I am already posting on Lemmy with W10, there is not much difference between cold and fast boot, it may be because of the SSD. I prefer cold boot, because with fast boot it boots maybe a few seconds faster, but a lot of garbage remains in memory that slows down the system.

deafboy@lemmy.world on 21 Nov 2023 23:13 next collapse

Sleep has always been a hit or miss. My HP probook would wake up just to tell me the battery is low. Then, proceeded to sleep, because the battery was low. Then, wake up, to tell me the battery is low…

Zerush@lemmy.ml on 22 Nov 2023 08:26 next collapse

This is the other drawback, standby consumes battery

satans_crackpipe@lemmy.world on 22 Nov 2023 09:00 collapse

That would be a product of the HP code mills.

some_guy@lemmy.sdf.org on 22 Nov 2023 15:13 collapse

I have a Mac / Linux background. I took a job where I supported primarily Windows machines. I remember wanting to set a machine to NTP to solve an out-of-sync time issue. I knew what the goddamned computer protocol was, but futzed around trying to find where I could enable it for ten minutes. Windows is confusing as fuck. I say that as a person who has since learned where shit is in this bullshit OS.

Zerush@lemmy.ml on 22 Nov 2023 19:30 collapse

Yes, I know. This is why it amuses me when someone says that Windows is a good system for beginners. It is only at first glance, but if you want to access more in-depth configurations so that it does what you want and not the other way around, which is possible, it quickly becomes Comanche territory. Certainly nothing for newbees.

Raxiel@lemmy.world on 21 Nov 2023 21:38 collapse

My desktop isn’t a problem, but the Dell laptop issued by my employer is a pain. It can take over an hour to load the models I work on, so I only shut down over the weekend and sleep it weeknights. Every time some BS, probably hidden behind admin credentials by IBM will wake it up within 20 minutes. Luckily I’ve discovered pulling the power and leaving it in battery keeps it asleep.

Pantsofmagic@lemmy.world on 22 Nov 2023 15:35 collapse

You might be able to fix this by disabling “modern standby”. That was the key on my Dell laptop from work having the same issue and threatening to melt my backpack every night.

Raxiel@lemmy.world on 22 Nov 2023 19:48 collapse

I’m not sure the corporate lockdown will allow that, but I’ll look into it thanks.