back to article Why Windows 95 left a handy power saving feature on the cutting-room floor

Microsoft vet Raymond Chen first told the story of HLT and Windows 95 more than 20 years ago. The instruction tells the CPU to effectively shut itself down until the next hardware interrupt – ideal for laptops, since power consumption would be hugely reduced. Microsoft had it implemented and working in Windows 95, but found …

  1. Kevin Johnston Silver badge

    I'm stunned

    Gosh how things have changed. So in the days of Win95 MS were risk averse when offering new features in the OS whereas now they have opened the sewers and it all just floods out regardless of what it might do to the investment people have made in their PC hardware.

    1. ThomH Silver badge

      Re: I'm stunned

      The power of competition, I guess?

      Windows 95 must have felt far from a sure-fire thing when development began: it provides a bridge towards a modern OS while retaining full backward compatibility — including support for devices with only DOS drivers — without incurring anything beyond a regular generational speed penalty, despite the underlying hardware being all over the map. And that's against IBM which already has a full modern OS on the market for the same hardware, without the legacy baggage.

      Modern Windows development must feel like a walk in the park.

    2. kmorwath

      Re: I'm stunned

      There was no "telemetry" back then - many machines were not even in LAN, and even less internet connected - so MS couldn't use customers as guinea pigs.

      1. DancesWithPoultry Bronze badge
        Terminator

        Re: I'm stunned

        > There was no "telemetry" back then

        Ah, the glory days when your software and OS didn't phone home behind your back.

        1. ThomH Silver badge

          Re: I'm stunned

          "Windows needs to send telemetry in order to improve future releases. Please find and plug in your modem cable, and ask your mother to get off the line for a few minutes."

  2. AlanSh

    There's still issues today

    My Scan computer (high end and only a year old) will not come back after a sleep as, when it sleeps, it shuts off all USB ports so there's no way to tell it to wake up.

    It's a pain, but one I've grown to live with.

    Alan

    1. anothercynic Silver badge

      Re: There's still issues today

      There should be something in BIOS that says wake-up on USB... so it leaves them powered to get a wakeup signal?

      1. AlanSh

        Re: There's still issues today

        I have checked but cannot see anything.

        Alan

        1. goblinski Bronze badge

          Re: There's still issues today

          There is for sure a setting like that for USB in the power plan settings. USB always active, or whatever it was.

          1. Martin an gof Silver badge

            Re: There's still issues today

            In terms of desktops I have found that often the first sign of a failing power supply is loss of always-on USB ports and kept-alive LAN ports. I use Wake on LAN quite a lot so notice this. The computer is usually otherwise perfectly healthy but sooner or later (could be many months) it will fail to start at all. New power supply cures all.

            M.

            1. Mike Flex
              Boffin

              Re: There's still issues today

              "The first sign of a failing power supply is loss of always-on USB ports and kept-alive LAN ports"

              The always-on and keep-alive ports are powered by the 5 volt standby power supply which is a separate set of circuitry inside the power supply case. So that will have failed in your case.

              1. Martin an gof Silver badge

                Re: There's still issues today

                Yeah, though the exact topology probably depends on the supply and there may be some shared parts. Not sure why manufacturers should skimp on the components of what should be a very simple, low power, section, but that's what seems to be the case. Anyway, very useful for me because it means I can change the power supply before the computer fails altogether :-)

                M.

    2. Rich 2 Silver badge

      Re: There's still issues today

      I know on Linux you can use some magic runes to fix exactly this problem. No use to you if you’re using a toy OS like Windows but at least it shows that it IS fixable in software so maybe further research would dig something up. Dunno

    3. Jou (Mxyzptlk) Silver badge

      Re: There's still issues today

      Check Windows and BIOS settings. In Windows the "device can wake up the PC" must be checked too, not only the BIOS setting.

      Additionally: If you have a USB hub between your computer and the mouse/keyboard it may not work too, since the hub draws too much power or does not handle the sleep-wakeup correctly. Same goes for some wireless mice and some gamer-RGB-1000Hz USB keyboards which draw too much to work on standby power.

      If you have a simple keyboard without any bells and whistles, usually the 20€ to 40€ range, test with that one whether it will wake up the machine.

      1. J.G.Harston Silver badge

        Re: There's still issues today

        €20 not 20€.

        1. Jou (Mxyzptlk) Silver badge

          Re: There's still issues today

          How to tell you are from USA without telling you are from USA.

        2. anothercynic Silver badge

          Re: There's still issues today

          You'll find that many Europeans write 20€, not €20 like us Anglicised folks do.

          Given @Jou appears to be German, their writing is consistent with what I've seen other Germans, Belgians and Dutchies do.

    4. GNU Enjoyer
      Angel

      Re: There's still issues today

      Another way to resume from ACPI S3 suspend is to press the power button (a quick press like you would boot the computer - ironically resuming from ACPI S3 suspend is booting - it's just the RAM is already trained and has everything already loaded).

  3. K555 Bronze badge

    rain.exe

    Brings back memories. Someone wrote an application to make use of this where WIndows didn't

    It was called 'RAIN' that you ran at idle priority and it chucked HLT instructions at the CPU. I just found it for download on a site that makes me wish plain flat HTML sites were a thing still.

    1. DS999 Silver badge

      Re: rain.exe

      Which didn't make sense at all. The people getting those halt enabling bits of code didn't have any idea whether their CPU was one of the "bad" ones that locked up in response to a HLT instruction. They'd found out if they tried it. Microsoft could have built the HLT thing into Win95 but left it disabled by default. People hear "hey you'll save battery if you enable power savings in Settings" and they'll try it and find out whether it works or not.

      1. An_Old_Dog Silver badge
        Facepalm

        3rd-Party Software to HLT Your CPU

        TESTING is a thing you can and should do with software like this.

        1. Boot DOS.

        2. At the DOS prompt, run the executable (the one I have is called IDLE.EXE).

        3. Did your computer lock up?

        3a. Yes: don't use this program on your particular computer. Reboot.

        3b. No: put this program in your AUTOEXEC.BAT file or Win95 Startup programs folder as appropriate.

        I don't expect home users to figure out this test, but do expect competent techs to do so!

    2. steviebuk Silver badge

      Re: rain.exe

      There is. Veronika Explains, her band has their own site and she said they've purposely made it HTML only :)

      https://www.thestopbits.net/

    3. AIBailey

      Re: rain.exe

      I remember rain.exe

      If my memory still works correctly, because it was gobbling up the spare computing resource in W95 to chuck HLT instructions, it ironically caused the task manager to show 100% CPU usage.

  4. Henry Wertz 1 Gold badge

    May not have saved much

    I'll note the HLT instruction actually ONLY halted the CPU until an interrupt came in (no power saving mode) on anything before the 486DX4 (marketing at it's finest, this was a clock tripled CPU not quadrupled as the DX4 name would imply.). Not a common chip so basically the Pentium. So on many Win95 machines this wouldn't have even saved power.

    Also, shocking given modern CPUs but that 486 used like 3 watts and Pentium 90 7.5 watt TDP so it's not like now where a 'lower powered' Intel CPU (other than Celeron N) would use like 30 watts without power saving.

    1. DS999 Silver badge

      Re: May not have saved much

      We had NIMH batteries in laptops back then, so while saving a piece of 7.5 watts doesn't sound like much versus today you gotta remember how much less power laptop batteries stored, even despite their larger size. There were fewer "other" things taking up battery too. No wifi, no bluetooth, no USB ports providing power to attached devices.

      1. Pat 9

        Re: May not have saved much

        That's because you were scared to add anything else to the laptop for fear of breaking your back

    2. Martin an gof Silver badge

      Re: May not have saved much

      486 used like 3 watts

      and if I remember correctly, the StrogARM 110, released around the same time as the DX4, which ran at a faster ~200MHz clock and beat any 486 for raw (integer) computing power used 600mW at full whack and came in a plastic package with no additional cooling, whereas the later 486es needed huge ceramic packages and some people started fitting passive heatsinks. Certainly in a laptop they benefitted from additional cooling.

      Small wonder ARM gained a foothold in mobile devices!

      M.

  5. Chewi
    Linux

    Ryzen

    The first generation AMD Ryzen CPUs basically did the same thing due to a bug in the deepest sleep state. Funnily enough, this was never noticed with Windows, not because they hadn't implemented it, but simply because it never gets that idle. XD It only became apparent after release when people like me started using them with Linux.

    1. Jou (Mxyzptlk) Silver badge

      Re: Ryzen

      Wasn't that fixed with a microcode (aka BIOS) update?

      1. Chewi

        Re: Ryzen

        There were several issues, one of which required me to RMA my first Ryzen. If I remember correctly, the best they could do for this issue was a BIOS update with a workaround. This was shown as a Low/Typical Idle Current setting.

  6. bartsmit
    Mushroom

    At least they didn't burst out in flames

    https://www.imdb.com/title/tt2543312/

    1. Dagg

      Re: At least they didn't burst out in flames

      I was waiting for a HCF instruction

  7. Chris Evans

    Confused!

    "The problem, Chen explained, was that "it was a brick until restart, but it restarts into a brick! The OS boots into a brick.""

    Surely there is a way to stop that. It's year since I did any programming but...

    Set a test flag saved to disc that you are about to use HLT

    Use HLT

    If you are able to restart you will now know that HLT can be used and set flag so HLT is used and you clear test flag.

    On subsequent boot, look for test flag if set then you know HLT can't ever be used.

  8. steviebuk Silver badge

    Nostalgia

    Is sometimes a wonder for but also sad feeling. I'd like to go back to those days but also want to continue with the PC tech we have now.

    So much so I found myself watching the whole of the

    Windows 95 Traincast training vids on YouTube restored by Blue OS Museum. Its seems like such a world away now.

    I remember when we finally got a decent PC that could do sound and had Windows 95 pre-installed. I looked over the CD in awe of the sounds and movie clips I could finally play and with sound. So every time I hear Edie Brickell - Good Times I get the rush of nostalgia. Back in the old, long gone family home, upstairs with this new PC, while still doing my IT course at college. It was amazing.

    I've always liked Windows, its just sad how Satnav is ruining it all.

    I'll get my coat.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like