by fxtentacle · 5y ago · 0 comments
I've never had it return with "unknown" once in over a decade, but some people I know have.
if you can find all the things waking the computer, and fix those things, it will never wake without user intervention.
usually, for me, it's been device drivers which have permission to wake the computer from sleep by default, for some stupid reason. removing that permission on those devices has eliminated "hot bag syndrome" for me entirely.
I agree that these steps should not need to be taken. device driver authors are the source of almost all bad crap like this in windows.
And in my case, there wasn't any non-Microsoft drivers on the system. The issue appears to be that they do magical stuff when they spot a WiFi connection, or when my WiFi router does its daily reboot.
I think that might've been my issue that kept waking up my desktop. I tried disabling everything I could to stop wake ups - to make it only wake up on pressing the power button, but I never got it to work properly. The desktop would just seemingly randomly decide that it wants to wake up again. I eventually stopped trying to put computers to sleep - it's either shut down or it just stays running.
> or when my WiFi router does its daily reboot.
Damn, I think that might fix 99% of the issues I have with my WiFi router.
I DO NOT understand how all routers I have ever owned are total garbage, but they all have been.
My router reboots only when the electricity is cut. So many weeks or even months between each reboot.
Wi-Fi works, Ethernet works even better, and I have some Automobilista (videogame) servers open to the world.
It is a big issue if my IP changes, so I am very aware of all these things.
Still, no reboots needed.
In fact I just tried it again on 4 computers and every one of them said "Wake History Count - 0".
also, run the command as an administrator. not just using an account that is an administrator. use an elevated cmd prompt or PowerShell window.
if you're doing all that, idk what's going on.
You can, however, see what devices are capable of waking your machine, and then disable them, by using the commands in my other comment: https://news.ycombinator.com/item?id=28647492
# load assembly System.Windows.Forms which will be used
Add-Type -AssemblyName System.Windows.Forms
# set powerstate to suspend (sleep mode)
$PowerState = [System.Windows.Forms.PowerState]::Suspend;
# do not force putting Windows to sleep
$Force = $false;
# don't allow the computer to be woken by devices or tasks (e.g. windows updates)
$DisableWake = $true;
# do it! Set computer to sleep
[System.Windows.Forms.Application]::SetSuspendState($PowerState, $Force, $DisableWake) | Out-Null;I'm one of those people - my computer kept waking up in the middle of the night and that command would always just return "wake source: unknown" for me.
powercfg -devicequery wake_armed
if anything shows up, disable those devices with this command: powercfg -devicedisablewake "Device Name"
I quickly googled this but I don't expect a lot of people to know what to search for, so if you've already found this and tried it, then I really am out of ideas this time.if you haven't tried this, try it, and I really hope it helps.
That said, the tablet felt so infuriating to me that I was honestly happy when it was gone again, despite the financial loss.
My desktop used to wake itself up all the time to update and in addition to hunting down all the devices, there was a scheduled task for Office updates that I had to disable. It would wake the computer up and then Windows updates would install because the computer was awake at the scheduled time, giving me the false impression that Windows update was causing the wake.
In 8-9 years of using Surface Pros, on the other hand, I have never had one that woke from sleep to install updates or cooked itself in a bag. They have been trouble-free for me and my favorite travel computer.
Really need to look into a BSD with Windows VM for my next desktop though.
You can get all the BSD’s you want on Windows!
:D
But it's not too late to help others! Thank you for showing us how insane this is.
And easily configurable is subjective. Sure most readers here can work through it but requiring use of the CLI is not "easy" for most people. Not to mention the discoverability of that feature in the first place.
I am the user. I use the machine, not the other way around.
Even worse, Microsoft made it so very hard to hunt down all the various settings and registry flags to disable that behavior, AND it reverted to those same settings after every major update. I absolutely despised that desktop for a while.
while i understand the intention behind automatic updates, i feel it's an anti-user design. It is based on the assumption (a bad one) that the user isn't intelligent enough to do the update at a time suitable for them. It assumes that the windows design and dev team knows better. It takes control away from the user.
Rather than forcing automatic updates, it is better to teach the user why updates are important. Education beats subversion.
Then the software companies and developers, in their infinite wisdom, decided that the best approach was to force updates on the users. Because when people are already upset with your awful updating mechanisms then forcing them to do so is surely going to improve things. And now we have people crippling update functionality as a result.
Windows 10 has been a nightmare in terms of patch quality.
Having neutered Windows update my PC actually feels like a PC again.
However the combination of 15 hrs battery life + closing the lid and it not melting a hole in my bag trumps any negatives.
If I told it to update, I didn't mean "oh pretty please but if it's too hard don't worry about it", I meant "I know this ii. update is going to take an hour for a point release for some reason, but I'm going for a walk now - go ahead so IT gets off my back".
Also I've had many issues with my macbook overheating/discharging in my bag because I hit sleep, it looked like it was sleeping, but it was still on/woke up. Admittedly not a huge amount because of COVID but still.
Apps that let you risk losing work -- from not just shutdowns but crashes and power outages - are the ones I don't tolerate. It's one of the reason I use Sublime Text for taking notes for example.
I can guarantee you that a Mac will still shut down when its battery is empty. Unfortunately Apple hasn't yet cracked unlimited power.
> I can guarantee you that a Mac will still shut down when its battery is empty.
Macs "safe sleep" --- when they sleep, they save a hibernation/ram state too. So if the battery is depleted, they still do not shut down.
I'm probably going back to MacOS after my current Windows 10 machine, because too many annoyances have shown up (and now ESC keys exist again).
I was using an iPad Pro and I thought something in the Apple Notes app was good. Poof. Never found the file after.
Or I'd find it nearly dead and burning hot, fans spun up wildly, in the process of cooking it's own motherboard.
It heat suicided itself through 2 motherboards during the 1 year warranty.
I have my complaints about MacBooks, but at least I had a laptop I could count on being reliable and ready to work when I showed up to class every day.
I couldn't trust the Dell, making it absolutely worthless.
Sometimes it seems Apple is just minimalist for the sake of it. Because this is really a useful feature.
I do have my MacBooks cooking themselves in my backpack every so often too.
Basically, every MacBook's I had in the past > 10 years ended with that issue.
Mystery solved!
Why the frak doesn’t the laptop have an over temp shutdown feature? iPhones so, trying leaving one in the sun for a bit.
Of course iOS wasn't as stable as it is now.. I don't think this will still happen.
AMD https://www.phoronix.com/scan.php?page=news_item&px=AMD-S2id...
s2idle is broken and I have an AMD thinkpad with deep sleep and even that doesn't suspend 80% of the time.
Intel (search for 'deep' and 's2idle') https://community.frame.work/t/ubuntu-21-04-on-the-framework...
I already know the replies I might get but just wanted to get this out there. My laptop is now on 24x7 because I don't know if it will suspend or completely freeze.
The experience out of the box is still crap because the ACPI signals from the hardware are often a complete mess - but disabling most of them generally works.
Now I just disable it completely and tell it to shut down when I close the lid, and wait like 15s. If the fans and lights don't stop "soon", I know it's having problems turning off. It's much better than the random freezes, or boiling alive in a backpack before draining all battery power.
Adding `mem_sleep_default=deep` to your kernel cmdline should fix it. Been doing this on my XPS13 for 3 years now and it's fine.
[0] https://bugzilla.kernel.org/show_bug.cgi?id=199689
[1] https://www.dell.com/community/XPS/XPS-13-9370-battery-drain...
[2] https://www.reddit.com/r/Dell/comments/8b6eci/xp_13_9370_bat...
Not the most comfortable, as you have to manage sleep manually, but definitely the safest.
Turns out I kept bumping the Bluetooth mouse which kept waking it up, and it would stay awake for a while, even with the screen closed. Disabling the permission for Bluetooth devices to wake it fixed it, but I had a couple of Mondays where I couldn't do anything for a half hour while the machine charged up enough to boot.
That's a bummer when you want to go clean your keyboard and don't want the laptop running at the same time.
I've been using Linux for the last 15 years. Had my fair share of issues with suspend. But at least once a laptop was in a state, it tended to stay there. Whether it would resume was another story :P
Ha! While not related to the bag issue, I had a 15" MBP literally catch fire in my bed while I was asleep.
I fell asleep wat hing Netflix or some such and the macbook caught fire and woke me up.
It was in the recall batch for batteries at that time.
I took it to apple flagship SF store.
They had the FN machine for two months then came back and said that at some point the moisture sensor went off and due to this reason they would not honor the battery recall or address the fact it caught on fire and the "apologized" for the potential "safety hazaard"
They told me my option was to buy a new one, or take it to a 3ed party repair place and have it repaired for more than the machine was worth.
I haven't bought another mac since, and I have switched from iPhones entirely, even though I have had an iPhone since day one.
In my opinion, the only reason why Windows is so prevalent in the "enterprise" world is because Microsoft provides support contracts to make it easier to adopt. Problems with your windows laptop? Send it off to Microsoft or open a business priority ticket to have them work on it for you. No need to hire an internal IT team.
Almost all Steam games work flawlessly out of the box now thanks to extensive investment in Proton.
That is why the Valve is confident shipping the steam deck with Linux.
For programming, by all means use Linux instead of Windows, it's better. For anything else, it's still not there yet.
I do have minor issues when scaling my 4K screen to a lower resolution, and starting a fullscreen game, but that’s about it.
I'm not sure if newer tech has better viewing angles than my old (but not that old) IPS LCD, but having having greater color depth to represent color fades with finer progression, and having more pixels to spread the fade across (hidpi), does sound like a nice step forward to me.
~"1.07 billion colors" though? Ehhh, I can't deny that does feel like overkill, but I'm honestly not even sure if there's a way to fix the above problem with a smaller colorspace.
It's ok. Not as snazzy as MacOS. But security/privacy concerns excluded, feels less headachey than Linux (which I'm also using in parallel, since Slackware 7).
I know business premium support is a selling point (ironic because it actually costs money on its own) which is good for the CYA of top management. Someone to blame when stuff goes wrong. But it doesn't really solve issues on the floor and Microsoft isn't alone in that.
That plus a whole host of annoying software bugs with the detachable design, keyboard backlight not working until I reboot, etc. was just a horrible experience so ended up getting a refund and buying a MacBook Pro when the 2018 models came out. Sure it has the crappy butterfly keyboard but three years later and that MacBook Pro is still a fantastic machine that I haven't had a single issue with. Cost the same as the Surface Book 2 as well.
The new Surface Laptop Studio looks interesting but I am very hesitant to buy Microsoft hardware again. It looks nice but is plagued with issues even today from what friends and colleagues tell me. Real shame. Hopefully things are better with the new models announced this week but I will be sitting back and waiting a few months to see how they are in the real world rather than a 3 day review.
That reminds me of last time I upgraded my mac by doing the transfer from one machine to the other. When the new mac booted for the first time, it had the same unsaved documents I had open on the old one. Things have come a long way.
It appears you can instruct it to avoid connecting to the internet to do stuff while in standby. I hope this works since my Surface Book has bad standby drain after sitting on my desk for 2-3 days off charge.
> powercfg /setdcvalueindex scheme_current sub_none F15576E8-98B7-4186-B944-EAFA664402D9 0
> powercfg /setacvalueindex scheme_current sub_none F15576E8-98B7-4186-B944-EAFA664402D9 0
I'm in awe at how much contempt some guy at Microsoft must have for users and their use-cases to conceive of a feature like that. One imagines Microsoft thinks of all of their users as yokels doing nothing more important than playing Solitaire all day.
It solidified in my mind the impression that Windows is not meant to be run on any machine you consider more important than a toy.
However, as a security professional, I think the general population doesn't understand just how critical it is to stay up to date with software updates. Sometimes we have to force them!
It's my computer, you see. It's not yours. You're welcome to buy your own, of course. But this one is mine. That's why they call it a "Personal Computer."
The rest of us aren't going to let you turn the Internet into the modern equivalent of a closed IBM shop, at least not without opposition. There's a history here, one you might be too young to have experienced personally. It's been well-documented, though. Steven Levy's Hackers is a great place to start, highly recommended.
Neither is getting awakened at 4am by plinks from the OS intending to alert you to the installation of updates. If you're going to have so little respect for the user then just install them w/o making any noise.
But forcibly shutting down a machine in the middle of the day during active usage is a cardinal sin, just about the most fundamental user-hostile activity I can imagine. Microsoft may be right, and there may be a portion of the general population whose computer usage is 100% pointless nonsense that can be interrupted as easily as you'd interrupt your child's videogame to make him do homework. But I'm not in that group, and I doubt anybody here would consider everything they do on their computer to fall into that bucket.
Computers touch _everything_. I'm not an NSA agent or a hacker on a heist team, and I can think of a dozen (non-work) times in the last month where a shutdown-interruption of the work I was doing would have been a big problem.
Which brings me to my tldr: I'm not suggesting that Windows' decision is a generally bad one. I'm saying that it's a poor fit for anyone who considers their computer to be anything but a useless toy.
Some interesting observations:
1. fan spins crazily for no reason randomly, and the laptop seemed to be always heated (in comparison with MBP and other laptops running Linux).
2. it can become overly hot and fan can spin even if it was in sleep! This was scary so after seeing it once I tend to power if off whenever finishing using it. Some times it didn't wake up, giving a QR code (BSOD...)
3. the not-too-bad specs failed to pump out expected performance (so sluggish), in comparison with similar hardware running Linux x86_64 or macOS (not surprised)
NOTE: Feeling lucky that my kids school allows BYOD, simply picked M1 MBA for both to avoid the Windows debt (in most cases hardware is not to blame, I've used many Dell Latitude models with positive impression).I then got an iPad via a ridiculously good deal from Comcast (128 GB 6th generation (which was the latest generation at the time) for $120. The iPad took over most browsing, reading, and scratchpad duties, with the SP4 just getting occasional use when I needed something more general than the iPad.
What I noticed when the SP4 went from daily use to weekly or so is that the battery would always be low when I went to use it. Charge it up fully and shut it down...and a week later it needs charging again.
I believe that is because shut down is really some kind of sleep or hibernate. I've tried disabling all of those, and fast start. I've tried shutting down from the start menu, with and without the modifiers that are supposed to make it really shut down. I've tried command line commands that are supposed to really shut it down. I've tried shutting down from the BIOS.
But no matter what I do it consumes significant power while off. If I leave it on the charger so that it will be ready when I need it, it seems to charge to full, then stop charging until the battery drains a bit, and then repeats that cycles.
The result is after a couple years of sporadic use, the battery was degraded enough that now just using it for light browsing I'm lucky if I get 30 minutes of battery time. So now it is pretty much relegated to only being usable when hooked to external power.
I'm never buying another Surface product. And I'm not buying any Windows laptops or tablets unless there is some reasonable way to definitely turn them all the way off and have them stay that way.
I never figured out what caused it, maybe it was something in the firmware. Or something bumping the power button? However it was in a padded laptop compartment on its own.This was actually from full-off. Not even standby.
What didn't help was that I used LUKS full disk encryption so it would be sitting there waiting for a password and there was no sleep timeout.
In the end I found the SP3 was just not great for Linux, I had so many hardware issues. Sometimes I'd detach the keyboard and reattach, and it'd just not work. Or the pen would stop working or the rotation etc. Mind you this is around the time it came out. So a good while ago.
That's misleading.
LTSC version does everything regular versions do exactl wrt automatic updates and wakeups.
Only difference is you can disable these with group policy in enterprise versions (which ltsc is)
I personally turned them on intentionally, as I mostly use my PC as a music/fine server these days; I configured most of my applications (bubbleupnp, nginx, airsonic, everything, etc) to start up either as system services on boot; the rest (WSL, fb2k, calibre) start up on login via schtasks, so if my they aren't working remotely I can just login via TeamViewer to log into my profile. Without this setup, my computer would _never_ get updates, as I don't sit down at it much anymore.
Basically if I know I won't be using my laptop for a bit and am putting it in a bag I always make sure to turn it off now.
The Dell with Linux out of the box had cooling issues and a high-pitched fan. Sure the cores would be disabled to deal with the power issues, which supports your point.
This whole post is actually pretty confusing to me. I don't use Windows that frequently myself, but my work laptop, my wife's laptop, my child's laptop, and my Surface Pro 1 all have Windows 10 on them, and this sort of thing has never happened to me. But I do my updates in a timely manner, shut down my PCs regularly, and only use sleep for temporary moments when I'm away from my PC.
I just feel like a lot of the problems people have with Windows 10 aren't really in the software, but are between the keyboard and chair.
Because it's extremely convenient and I don't remember ever losing anything on my Mac. I close the lid in the evening, open it the next morning and everything is there exactly like I left it. MariaDB is still running, my IDE is still running, and I can jump right in. Day after day after day, my uptime is usually the number of days since the last macOS update.
My workflow involves closing up the laptop, carrying it elsewhere (while it sleeps - it has to survive being in a bag so not heating up), reopening with all the exact state it had, potentially many times each day. Then at the end of computer-day closing it (to sleep mode), and starting the next morning exactly where I left off - not from a clean after-shutdown state. Even for an unavoidable reboot (e.g. install of OS version update) I'd expect most of that state to be restored e.g. OS X and compatible apps restoring most the open apps and documents as they were - sadly it doesn't work as well as it should, so sleep is strongly preferable to anything involving a reboot.
A full shutdown is an extraordinary event that's done when placing an unused system in long-term storage or when giving it to someone else, because all other daily usage (and short breaks e.g. weekends, not just "temporary moments when I'm away from my PC.") is better suited by a sleep/hibernate mode, at least if that works properly.
TL;DR - a need to shutdown regularly is a fundamental design flaw, not a problem between keyboard and chair.
In my case, it was mostly executables that I'm in the process of debugging and stepping through. I'm not aware of any debugger which can save and restore open file handles.
> I just feel like a lot of the problems people have with Windows 10 aren't really in the software, but are between the keyboard and chair.
I would have argued just like you before I encountered the cursed tablet. That thing had an integrated battery, so no matter what you tried, it could still turn on by itself if it wanted to. The only reliable way to make it stop making noises in the middle of the night was to thoroughly drain its battery.
That said, the Dell XPS support post that I commented on is by itself pretty detailed about all the issues that Dell machines are having with Windows 10. I think you'll believe me that Dell wouldn't publicly post that unless they had a lot of support requests related to it. So it's apparently a widespread issue.
In my case, virtual-machines. When Windows 10 decided it had to reboot, it would kill them dead. You can't quicksave those, and even if you did they have a higher-than-normal chance of not coming back up cleanly.
Close my work laptop, take it to the office, open it up - it's hot to the touch, stuck on the Dell high temperature warning screen, and needs to cool down and reboot.
Of course it would be crazy for me to keep repeating this scenario (I tried changing the hibernation settings, and now just shut it down) - but we can wish for it to be better, especially since it's obviously possible.
Because on other computers it just works. And if the computer stops it will re-open your unsaved documents.