• Technus@lemmy.zip
    link
    fedilink
    arrow-up
    53
    ·
    edit-2
    1 day ago

    My Windows 10 computer eerily waking itself from sleep got me in the habit of shutting it down completely every night. I’d be lying in bed, turn over and open my eyes, and see the light of the screen reflecting off the wall. It was like something out of a shitty horror movie about computers taking over the world.

    To this fucking day, even in Windows 11, it takes “Update and Shut Down” as a mere fucking suggestion. About half the time, it’ll restart after the update and just sit there chilling at the login screen. Not a single fuck given.

    Linux is a breath of fresh air by comparison. Though, if you choose to run Arch you need to stay on top of updates or else a day will come where you won’t be able to update because you’re now too far behind. It can be fixed manually, but it’s still annoying and a little scary if you’re not familiar with it.

      • highball@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        CPU interrupts. There are timer interrupts that can be used for this. In hibernate, only a tiny fraction of the CPU is changing the transistor states. A transistor only uses power when it changes state; i.e. “off” or Hibernate. Transistor state changes when you cycle the clock on a CPU. Anyways, set the register for the timer interrupt and signal the CPU for Hibernate. The timer circuit is still listening to the clock while the rest of the CPU stops listening to the clock. Each clock cycle you subtract one from the register. When the register reaches zero, the timer interrupt wakes the rest of the CPU. Just like moving your mouse or pressing the power button; they signal an interrupt which wakes the CPU.

          • muhyb@programming.devOP
            link
            fedilink
            arrow-up
            6
            ·
            1 day ago

            Yeah, update arriving part is not necessary but it wakes the PC up, checks for updates and install them if there are any, does this every night. And if you disabled auto-sleep it just stays like that until you interfere.