S3 Standby State Done Right
For Earth Day, Cameron Butterfield has written in with a pointer to his article on how to get your Windows PC into S3 sleep, and why you want to. It covers the question of how to take advantage of this extremely low-power mode even when your machine is an "always on" file server, remote desktop, or VNC server.
It doesn't seem to be a hot topic because I couldn't google a definitive page. There were lots of pages for individual computers or distros though.
/usr/src/linux/Documentation/power/ ... The exact file on my system is states.txt but it also seems to exist on other distros as suspend.txt
The documentation is probably on your own computer at:
Gentoo's Power Management Guide is a bit gentoo-centric, but most things carry to another distribution easily.
VKh
Windows XP will often times not give s3 suspend as an option even when turned on in BIOS. But with Microsofts dumppo.exe utility you can force it to use an S3 or S4 state. ftp://ftp.microsoft.com/products/Oemtest/v1.1/WOST est/Tools/Acpi/dumppo.exe To force it to S3, run this under command prompt "dumppo admin minsleep=s3"
yes it will.
Or it does for me. Even if the computer is alone on the router. It seems my router occasionally broadcasts something and wakes up all my computers.
I've switched to using the magic packet alternative. The only problem is that since my server PC is behind my router, I have to SSH into the router and sent the magic packet from there. ICKY.
I hear other routers (mine is a Linksys WRT54GS) will let you WOL remotely. Normally, you just send your magic packet to the router and set up the router to convert it to a broadcast.
If I remember correctly, a magic packet is just a packet with the correct header and the client's MAC address broadcast to the network.
I just pooped your party.
Most laptops come preconfigured to take advantage of most of the stuff in the article, though it wouldn't hurt to check. The last few new Dell laptops we've purchased at my organization default to S1 after a few minutes, S3 if you close the lid or hit sleep, and S4/S5 for shutdown.
ACs are modded -6. I don't read you, I don't mod you, I don't see you. Don't like it? Don't be a coward.
Under MCE, I use the MCE Standy Tool. MCE has a bad habit of waking up to record a show and then not returning to standby afterwards. This can result in the computer staying on all day instead of just 1/2 hour to record a small show. The Standby Tool has features to help MCE handle power management in better ways then Windows default methods. It makes me wonder why Microsoft couldn't get things to work as smoothly as this 3rd party software. http://www.xs4all.nl/~hveijk/mst/indexe.htm
* Power bills are generally measured in kilowatt hours or "kW/h"s. Power rates might be as much as $0.12 per kW/h
* Our total cost of having the computer on 24/7 for the month in this scenario would be as follows:
*
That said, it is a good article on how to keep the "instant-on" without using excess power.
Back in the pre-NT-based days, perhaps. Most modern operating system kernels issue the HLT instruction plus some extra power management jiggery-pokery to the CPU when it's not being used at max anyway. (Check out /proc/acpi/processor/CPU*/power under Linux.)
S3 mode is entered by running "acpiconf -s 3"
/etc/sysctl.conf to be automatically set upon boot-up. Basically you'll only need "hw.acpi.reset_video=" set to 0 or 1 depending on your system.
/etc/rc.suspend. Put the opposite commands in /etc/rc.resume.
All available options can be listed by running "sysctl -a hw.acpi" and included in
If you need to unload modules or any other action before suspending, see
That should be everything you need. Either your hardware will work, or it won't. In the latter case, strip your system down to nothing but video, and try different video cards. Then add a piece at a time to see what's causing problems.
Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
At least at one point, I found one 802.11 adapter or chipset that supported OnNow-style wakeup, but I don't know whether drivers supported that.
You'd have to keep the radio on, though, which means there's some power you can't save.
That's probably more of a chipset issue than a protocol/PHY issue, so I'm not sure there'd be any chanages in 802.11n - unless there's some radio-layer changes to allow the receiver to run in a low-power mode capable of receiving a wakeup indication.
It happened after watching live TV for me. If I was watching a recording or DVD and suspended, it would re-suspend after recording new shows just fine. But if I pressed the PC suspend button on my remote after watching live TV, the next time it woke up to record a show, the PC would stay on after the recording was done. Even if I pressed the pause or stop button before suspending it would still not power back off correctly. For a while there, I would always start playing a recording before suspending the PC. The Standy Tool fixed the issue and I haven't had any weird suspend problems since then.
I have a power monitor thing on the socket for my home server (it's just a box, no screen keyboard etc) and right now it's using 132 Watts downloading torrents and web serving (mostly as a web dev test site, so probably not really doing any work). It's a 3Ghz P4 too, so it's probably not as power efficient as it could be.
400 watts has got to be way off.
See this article: Debian HOW-TO : CPU power management. I used the info to configure a couple of Poweredge 860 server. Most of the time, it's at a CPU speed of 300Mhz instead of 3 Ghz. That saves quite some power, and you cannot notice the difference in speed.
No you don't, and in fact if you mount your filesystem read-only, or noatime, and run noflushd your hard drives can spin down indefinitely as long as your dataset fits in memory. I used to get 8-9 hours out of the battery on my PowerBook G3 using this method and low screen brightness.
Of course, if you are writing to files and you do this and then lose power, you lose data... But you could store the files you are working on in flash to avoid this.
Slightly off tangent, but hibernation (S4) fails in WinXP SP2 if you have more than 1GB of RAM.
Works just fine for me. Probably because I installed the udpate mentioned in the resolution section of the article sometime last year.
Chicken fried butter sticks? Do
average P4 class Desktops consume about 100W in idle
average centrino laptops consume about 25W in idle.
You mean something like this?
http://docs.info.apple.com/jarticle.html?path=Mac
Just a snippet from that page: Some models support the Automatic setting, which allows your computer to switch rapidly back and forth between the Highest and Reduced settings to optimize energy use, depending on how much work the processor is doing. This is basically what you are asking for. Your computer will automatically scale the processors according to the tasks you have running. I believe just about all modern Macintoshes support the Automatic setting.
Sapere aude!
I work as an HVAC engineer, and I have to take into account the PCs when designing air conditioning for an office. I figure 200 to 250 watts per workstation; that is supposed to take into account average usage including everything: the PC, monitor, peripherals, task lighting, occassional printers, etc. I've been told that this is too high, but my career has spanned a lot of changes - dummy terminals, energy inefficient monitors, heavy duty PC workstations, efficient but larger monitors, LCD monitors, thin clients, etc. - so I tend to take the conservative approach and assume that it can change again to higher wattages within the lifetime of the AC system. Power consumption of devices keeps on being improved, but instead of using less power, PCs do more with the same amount of power. If your PC has a 500 watt power supply it would probably never use much more than 400 watts (you need some safety margin) and it would probably use, on average, less than half that while working hard. With modern PCs it could easily use less than 50 watts when idle.
Those 600+ W power supplies are purely for people with inferiority complexes about other aspects of their lives/bodies. Here's a discussion about how much you can run on a 300W PSU. 300W suffices for a modern high-end CPU plus high-end GPU plus a bunch of drives, when under heavy load. Even a high end system will idle at around 150W. A more sensible system is probably idling around 80W.
NOTE: All the figures above are *not* including losses in the PSU. A modern PSU should be about 7 5% efficient, so increase the above by 1/3 to make them comparable to the 400W number in the article.
Quattuor res in hoc mundo sanctae sunt: libri, liberi, libertas et liberalitas.
Energy isn't measured in kW/h. I'm not sure what a kW/h would meassure. The article writer made this mistake and now everyone on /. is doing the same thing.
Energy is measured in kWh (or kilowatt-hours), which is one kilowatt of power used for the length of one hour.
Oh yeah.
Bill Gate's memo
That's an interesting email from 1999. Myself, I've been known to send emails to the tone of "how can we prevent the competition from leeching on our multi-million dollar R&D investment with our technology partners", but OK.
Would you like to point me to the follow up email from Eric Rudder that says "Hi Bill - As you requested, we've made the ACPI extensions specific to Windows so no one else can implement them. Cheers!" I can't seem to find it.
Oh, wait - here's ACPIfor Linux and ACPI for FreeBSD. Indeed, here's a quote from the WP entry:
Now, ACPI has its shortcomings. It's complicated. It might not be your ideal of a standard. But it is an open standard, which Linux indeed implements. It might be broken in some ways in Linux as it is in Windows, but implemented it is. It's an important standard because it takes hardware out of the equation, which is important for a general OS that's supposed to support a wide range of it.
I still use APM for the most part
Really? That's also a Microsoft-defined standard (along with Intel):
Is that standard "shit" as well? And if you all these standards from Microsoft are "shit", then why do you use them at all? You use Linux, right? Why don't you come up with your own standard and give it to the free software world so they can stop using all these "shit" open standards that Microsoft has bothered to make open for anyone to use? Which reminds me, I'd love to see that other email about ACPI I mentioned. Thanks.
powercfg -a
Works for both XP and Vista. Tells you what's available and what's not (S1, S2, S3,...) Vista tells you why something isn't support.
Got info from this page
I found an awesome blog post the other day which explained how to get a desktop linux box into S3 suspend. It's all about your BIOS settings. Now, I can turn my pc 'off', and it takes less than 5s to resume. http://shallowsky.com/blog/linux/desktop-suspend.h tml
I do not have the same problem, and I am allready using S3 powermode.
A "broadcast" package is not a package with a single specific receiver, so why would a machine in S3 mode wake up when it detects a broadcast package? The whole point is to make sure the machine only wakes up from LAN access when there is traffic directed specifically for that interface/address?
My security clearance is so high I have to kill myself if I remember I have it...
A way to make a computer quieter is replacing the smaller fans with somewhat bigger ones, and slow down their rotation (eg. with a suitable series resistor). The aim is to get comparable airflow over the heatsink with lower fan blade speed, which means less turbulence over them, which means much less noise.
Once you're done getting an education, I'd like for you to explain how "M$" allegedly sabotaged ACPI on Linux. You pointed to an eight-year old email from Bill Gates that, if anything, proves Microsoft did not do anything to impact the implementation of ACPI in Linux. Seriously, just in case your FSF distortion field is turned up too high, that's exactly what you are proving by linking to that email. You have ACPI in Linux. It might be as broken as it is on Windows, but you have it. You realize that, yes? God, please tell me you realize that?