Remix.run Logo
▲ bartread a day ago

Yes, exactly this. Or it's run its battery down because sleep seems to be completely broken on every Windows laptop I've had over the past 17 years.

▲jazzyjackson a day ago | parent | next [-]

Sleep modes are CPU dependent and lots of CPU have sleep bugs.

My favorite laptop has been a GPD mini laptop with the ryzen max chip. Instant sleep and wake via fingerprint scan.

But as a point against windows, a good experience will be ruined by a regression of a forced security update. I wanted to love the bleeding edge and bought a 48GB Blackwell surface book. In typical fashion everything felt instantaneous and fluid on first boot, and after the 24-48 hours of letting Windows Update do its thing, lag and sleep problems were introduced. so disappointing. returned it and went back to my macbook air.

▲cowlevel 4 hours ago | parent [-]

It's not actually the CPU itself, which sleeps reliably. it's the whole very complicated ACPI thing and the drivers and hardware devices.

Because the PC platform can run on almost any hardware the OS needs a standard way to enter a sleep state, no matter the hardware. The hardware does this using something called ACPI tables, which essentially hold a bytecode program that's distributed as part of the BIOS flash image and is a black box to the OS. The program in ACPI tries to suspend all the hardware but it doesn't know what the OS is doing, and the OS doesn't know what the ACPI is doing, so they frequently conflict and get into weird states.

On embedded devices, suspend actually works quite well. Your phone doesn't have ACPI or BIOS, it has a kernel with direct access to hardware and that has no problem just toggling a few register bits to shut down certain clock domains and voltage regulators. In fact it works so well it all comes back online within half a second when you press the wake-up button, not the 20-second wake-up you get on PCs. It works so well the operating system continually suspends itself whenever apps aren't using a certain hardware feature. As I'm typing this the CPU is probably suspending itself between keystrokes, the radio is powering down its AFE outside of its timeslot, the speaker amplifier is probably off because I'm not listening to music. This stuff is why phones have good battery life but Linux phones don't, because desktop Linux is built around the whole computer being turned on while it's turned on.

▲yehoshuapw a day ago | parent | prev [-]

at least in some cases the laptop itself is partly to blame for this specifically.

"modern standby" is a microsoft designed feature implemented in (some? many?) business laptops, which keeps them partially awake (for wifi, updates, and other things we mostly did not ask for when putting to sleep)