But she has now crossed the line by buying me a Christmas present which actually taught me something I didn't already know about computers.
The present in question is an EcoButton(tm) which is basically a big green glowing button that you plug into a USB port and which puts your computer to sleep when you press it, thus saving the planet.
Obviously I initially dismissed this as a complete gimmick - after all, how is this any different from me putting my laptop to sleep by just shutting the lid? But before totally writing it off, I did go as far as reading their FAQs and then discovered that there was more to sleeping than I previously was aware of. After a bit of browsing around I am now slightly less ignorant so thought I should share.
Like most people, I thought that there were a few options for the power state of a PC:
- Fully on
- Sleep mode (minimal power to keep the memory going)
- Hibernate (state dumped to disk but powered down)
- Off
- S1 - low wake latency sleep, processor clock off, bus clock stopped, <= 2secs wake
- S2 - similar to S1, but processor and some buses are powered down. Slower than S1 to wake.
- S3 - similar to S2, but all context is lost apart from system memory. Similar wake time to S2.
- S4 - all devices (including memory) powered off with memory state stored to disc, i.e. this is what we know of as hibernate.
- S5 - everything off, all context lost, i.e. this is what we know of as "shut down".
So it turns out that what the EcoButton does when you press it is to run a command to force the machine into the S3 state rather than S1, and then show you a nice page when you reawaken that tells you how much money and CO2 you've saved.
Various people have found an undocumented Microsoft tool called dumppo.exe (download here) that shows you your current configuration and allows you to force the minimum sleep level to be S3 rather than S1:
C:\>dumppo adminAdmin policy overridesMin sleep state......: S1Max sleep state......: S4 - hibernateMin video timeout....: 0Max video timeout....: -1Min spindown timeout.: 0Max spindown timeout.: -1
To force the min sleep to be S3 do dumppo admin minsleep=s3 maxsleep=s4 and then reboot. Note that some USB devices may have problems with this, so you may need to revert if you experience any of these.
In Vista, Microsoft introduced a new "Hybrid" sleep mode where it saves a hibernate image in case power is lost, but then drops to S3 mode. It appears though that by default this is disabled in laptops - the thinking being that in a laptop you don't want it to sit there draining the battery but instead just go straight to hibernate if you're leaving for a long time. Checking my Windows 7 configuration this also seems to be the case there (control panel - power options - edit plan settings - change advanced power settings).
So what am I going to do? I spend most of my home life using a laptop, and tend to shut the lid when I'm not using it to send it to sleep. The big green glowing EcoButton is not going to make me do this any more often so I'll probably just plug that in to my less-used desktop. But I will switch on hybrid sleep mode, and as soon as my new power meter arrives I'll check out what the consumption really is.
And in case you're wondering, EcoButton claim that a typical user can save 135KG of CO2 in a year by using their button, so compare this against a single flight from the UK to NY at 1.3 metric tons of CO2 and you can see that although it's not earth-shattering it does make a difference.
Further reading:
- Microsoft's description of sleeping states: http://msdn.microsoft.com/en-us/library/ms798270.aspx
- Dennis Forbes article: http://www.yafla.com/dennisforbes/On-PC-Power-Saving-S1-to-S3-standby-dumppo-exe/On-PC-Power-Saving-S1-to-S3-standby-dumppo-exe.html
- Wikipedia on ACPI: http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface
- TechRepublic article on setting up S3 in Vista: http://articles.techrepublic.com.com/5100-10878_11-6185330.html
- Robert Hensing on hybrid sleep mode in Vista: http://blogs.technet.com/robert_hensing/archive/2007/08/05/hybrid-sleep-in-vista-and-s0-s5-explained.aspx
- EcoButton: http://www.eco-button.com/