S3 Standby State Done Right 216
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.
And Linux? (Score:5, Insightful)
Re:And Linux? (Score:5, Informative)
Re:And Linux? (Score:4, Informative)
Blame Bill Gates if it does not work. (Score:2, Interesting)
Anyone who has not Bill Gate's memo about this [edge-op.org] should. Anything M$ touches is shit: winmodems, wifi, ACPI, APM and the list goes on and on. They can't make their own stuff work, so they have to break everyone else's.
Despite his efforts, power management can be made to work. It's not easy and you can't expect the latest and greatest to work. The closer a company's working relationship to M$ is, the harder it will be to make things work. For example, Dell is more difficult and Thinkpad is easier. As
Nice FUD (Score:5, Informative)
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 [sourceforge.net] and ACPI for FreeBSD [freebsd.org]. 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 [wikipedia.org] (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.
Re: (Score:3, Informative)
Micros
Re: (Score:3, Informative)
Of course it does (Score:2)
Yes, that's been a great success. Are you working on this or other standard to replace all the "shit" Microsoft has given you so far? How's that going?
I'm surprised Bill was dumb enough to document his intent.
What you are implying is action. I asked for you to document how Microsoft "screwed" Linux power management with ACPI, possibly screwing themselves (if I follow your logic) in the process, since Windows contains an ACPI implementati
Re:APM Sucks too. (Score:4, Informative)
Once you're done getting an education, I'd like for you to explain how "M$" allegedly sabotaged ACPI on Linux. You pointed [slashdot.org] 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?
Re: (Score:3, Insightful)
Re: (Score:2)
what are the options to set up a Linux system to reduce power usage and fan noise when idle?
I just built an amd x64 dual-core system, and it only draws 51 W for the whole system when the screen powers down. AMD has something called cool'n'quiet, which was supported automagically when I installed Ubuntu Edgy. It ramps down the cpu frequency when the processors are idle. Because the system draws so little power, I was able to disable the case fan, so now all I have running is the cpu fan and the power supp
Re:And Linux? (Score:5, Funny)
Disconnect those pesky cooling fans. They just make a lot noise and suck up power. Truth is, your PC will run fine without them. It's just a scam by equipment manufacturers to make a few extra bucks out of you. I've been running with them removed for years, no problems.
regards
Scott E. Brown
NOAA Antarctic Station
Re: (Score:2, Funny)
Disconnect those pesky cooling fans. They just make a lot noise and suck up power. Truth is, your PC will run fine without them.
"You've got a hole in your mainboard. [google.com]"
On a more serious note, cooling fans are recommended as they help keep the CPU cool. PC case fans are considered optional, but can be used if your CPU is reporting temperatures that are considered higher than what they should be (which may actually be ambient heat from the power supply.)
When referring to laptops or notebooks, it depends on the model. While my notebook is at a normal temperature most of the time, I have been running a few 100% CPU tasks which does hea
Re:And Linux? (Score:4, Informative)
Re: (Score:3, Interesting)
service syslog stop
hdparm -B 1
hdparm -S 5
echo 5
Re: (Score:2, Informative)
Re: (Score:3, Funny)
Also available on Linux (Score:4, Informative)
The documentation is probably on your own computer at:
Laptops? (Score:2, Interesting)
Re: (Score:3, Informative)
S3 and MCE (Score:4, Interesting)
Re:S3 and MCE (Score:4, Informative)
Re: (Score:2)
Re: (Score:2, Informative)
network broadcast traffic (Score:3, Insightful)
Will it not wake up whenever any workgroup broadcasts are sent to it?
Re:network broadcast traffic (Score:4, Informative)
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.
Re: (Score:2, Informative)
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?
FreeBSD (Score:3, Interesting)
My desktop _almost_ worked. I had to swap-out my ATI video card to get it to resume from S3.
Now, the big problem is X.org... Since X doesn't play well with suspend, FreeBSD is supposed to switch off of X, to a virtual console before entering suspend mode. Unfortunately, I've found that, unfortunately, X 6.9.0 freezes about 1 in 3 times. Once I figured that out, it was just a matter of manually switching to a console, then typing "suspend" before I walk away. Now I haven't rebooted my machine in months, and it's on and usable (right where I left everything) in about 3 seconds.
Of course, the drawback to X not cooperating is that I can't set my machine to auto suspend when it's been idle for a few minutes, but I'm hopeful the next release of FreeBSD will fix that. X6.9.0 is the latest ported release, and compiling from vanilla sources goes horribly, horribly wrong, right now. I could try downgrading, but it's not worth the hassle and lost features, IMHO.
Re: (Score:2)
As a FreeBSD user, I'd be interested in hearing how you configure this.
Re:FreeBSD (Score:5, Funny)
Shouldn't you guys exchange phone numbers or something?
Re:FreeBSD (Score:4, Informative)
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.
Re: (Score:2)
Re: (Score:2)
I looked, and found nothing.
chvt isn't installed on FreeBSD, it isn't available in ports, Freshmeat.net doesn't know about it, a web search turned up man pages for it but no source code, etc., etc.
Re: (Score:2)
Re: (Score:2)
Re:FreeBSD (Score:4, Interesting)
Perhaps, but the issue is a lot more complicated than that. We're talking about the BIOS, the OS, and then how the two relate to each other. That said, it doesn't suprise me that the article is lame. Setting a fixed IP address and making use of WOL? What's that got to do with Windows, and what does "done right" refer to?
The only informative (and amusing) bit was the Microsoft chosen USB behaviour (hidden) that requires an "easy" registry edit to change. So much for "Oh, no, not manually editing a config file!" I guess having all the behaviour and options explicitly set forth and easily editable is the wrong approach.
X.org... Since X doesn't play well with suspend, FreeBSD is supposed to switch off of X, to a virtual console before entering suspend mode. Unfortunately, I've found that, unfortunately, X 6.9.0 freezes about 1 in 3 times. Once I figured that out, it was just a matter of manually switching to a console
I'm going by memory here, but IIRC, that's handled with a sysctl. You shouldn't need to manually do anything. Read through acpi(4) and then Google for more info, or better yet, just search the 'mobile' archives for some possible settings and the merits of each.
Of course, the drawback to X not cooperating is that I can't set my machine to auto suspend when it's been idle for a few minutes, but I'm hopeful the next release of FreeBSD will fix that.
I'm not sure you want an S3 state every few minutes. It would make more sense to blank the screen (and kill the backlight on a notebook) by setting the DPMS option in xorg.conf, and set your screensaver options in
For a full suspend after x minutes, why not script your own approach? One option would be to use xscreensaver-command to invoke a count-down timer to invoke zzz(8)? Or if power usage is a Really Big Deal, make use of WOL and start/stop the system at set times. Dunno if that would work for a desktop system, but it might cut down the hours on
Re: (Score:2)
It's certainly complicated, but FreeBSD seems to have the most people putting in effort to get it working, working-around bugs in the hardware, etc.
First, there's no sysctl. Second, yes, it is supposed to handle it automatically, but it's buggy, so manually doin
Re: (Score:2)
So what exactly does 'sysctl -d hw.acpi.reset_video' return on your system?. Or 'sysclt -d hw.syscons.sc_no_suspend_vtswitch'?
I don't understand the emotional aspect of your comments, but FWIW, yes, there could be improvements to default values, default configurations, but that's another issue that we could
Re: (Score:2)
And the only reason why reading from a file system should require a write to the disk(s) it's on would be to update the last access time, so, if mount or other options are available to disable access time updates, that might help, although
dumppo.exe the Microsoft Power Tool (Score:5, Informative)
Par for the couse. M$ booby trap. (Score:2, Insightful)
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
How typical, a DOS only power tool to manipulate your hardware and everyone else is out of luck. Yeah, that stinks. [edge-op.org] Thanks, Bill.
Re:dumppo.exe the Microsoft Power Tool (Score:4, Informative)
The biggest downside of S3 sleep is that about 1 out of every 200 recovers or thereabouts it completely fails to come back, thought that's probably a mainboard issue more than an OS or technology issue.
Oh, and a great little helper app if you use S3 is WakeUpOnStandBy [dennisbabkin.com]. It allows you to configure a machine to "come alive" at scheduled times, even from an S3 sleep (apparently the BIOS supports configured wake-up times, and this app knows to tell it to wake up accordingly just as going to sleep). Very helpful little app -- I have my PC set to come alive in the morning when I know I'll be remoting in.
Oh, and rather than waking up on all network traffic, as the article recommends, it's far better to wake up on WakeOnLan packets. There are lots of resources out there for that.
want a "file transfer" powerdown mode. (Score:5, Interesting)
Ive noticed all companies, including apple, whose products i use, are giving you only a black and white choice. you either have the computer awake or its fully asleep.
i'd like to have a low power transfer mode, where the cpu is reduced (to 1 core at say 500 mhz), the monitor is turned off, and as much memory as possible is dedicated to the apps which are doing intensive file reads/writes. this will allow the hard drives to be used less by caching the files in ram and pulsing the hard disk.
Re: (Score:2)
That is "awake",
Re: (Score:2)
You can set the monitor to switch off anytime - the 2 'mini' powersave options are 'turn off monitor' and 'turn off hard disks' - so go ahead and put some minutes in the boxes.
You don't really want to 'pulse' the hard disks, I think that'll just wear them out. Its also better to keep the
Re: (Score:3, Interesting)
Bear in mind that big, fancy SCSI arrays on big boxes have special circuitry to bring the dri
Re: (Score:3, Insightful)
Thanks to AMD's CnQ, and Intel later following suit, any CPU made in at least the past year (and more for AMD64 CPUs), will idle down to low power states automatically.
Also easy. You can hit the power button on the monitor, you can wait for it to automatically shut off after 15-20 minutes, or with X11, you can run xset and tell the video card o shut-off the monitor.
Re: (Score:3, Informative)
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 c
Re: (Score:2)
Perhaps noflushd will work, however, I don't know any details about how it works, and you may well risk corrupting your filesystem. Just mounting a fs noatime certainly won't work, and yes, read-only filesystems can spin-down, but that's not the situation we're talking about here.
Re: (Score:2)
Re: (Score:2)
There is no reason a filesystem needs periodic activity in order to prevent corruption; after all, it doesn't get corrupted when your system is powered off... Journaling protects against corruption when a transaction that is in progress is interrupted. If you don't mind integrity checks after a power loss, you can work just fine without a journaled filesystem. People have done it for decades. We can go with your theory that you can't do this, or we can go w
Re: (Score:2)
On Linux, that's not easy at all, and noflushd appears to be Linux-only.
The only reasonably capable, non-journaled file system is Ext2. Using Ext2, you have the choice of either mounting it read-only, and getting horrible performance, OR leaving it async (default) and running an extremely high risk of corrupting your entire file system in the event of power outage, or other system crash... Note: that means corrupting your ENTIRE file system, not just losi
Re: (Score:2)
Re: (Score:3, Insightful)
Hate to tell you, but that's exactly what happens. You can't guaranty file system consistency when doing out-of-order writes. That's among the main reasons Ext3 does a full "fsync" every 6 seconds. It's a serious limitation of Ext2 in it's default mode. You're simply playing Russian Roulette with your data, and eventually you'll lose.
You certainly don't have to take my word for it. It's a well known issue, and there are several write-ups of it.
Re: (Score:2)
Do you mean only corrupting to the point where you have to use fsck or something unrecoverable without more work? How is this worse than other non-journaled file systems like ufs which are also fixed by fsck after unexpected power loss?
Re: (Score:2)
No, I mean CORRUPT. As in data loss. Seemed a pretty simple term.
Re: (Score:2)
I've never heard of an ext2 file system not surviving a power failure. Sure, it has to be fdisked. Sure, sometimes a file or even a directory is corrupted (in the latter case stuff shows up in "lost+found"), but the file system as a whole is usually fine.
Re: (Score:3, Interesting)
Another old trick, which I still use regularly, is to copy all the data you're serving into a ramdisk or a tmpfs, and then unmount all disk based partitions. Turn on PowerNOW! or SpeedStep, force the CPU multiplier low, and you can serve thousands of pages per second for un
Re: (Score:2)
No, it doesn't affect the journal activity at all. atime is absolutely not the main problem with modern file systems spinning down.
They need to constantly update the journal, or other file system info, atime or no, every few seconds to assure whatever fsck program, that the fs info contained in the journal or elsewhere is up-to-date. Of course that COULD be worked around, but that's how modern file systems work, and it's certai
Re: (Score:2)
They need to update the journal, or otherwise push stuff to disk, if there's stuff on disk that's not up-to-date with what's in memory. Once that's done, everything that was pushed from memory to disk is now up-to-date on disk, so only stuff changed in memory after it was pushed to disk needs to go to dis
Re: (Score:3, Informative)
Re: (Score:2)
That's not a modern Macintosh.
I don't know which of the PPC processors used in Macs supported that sort of speed adjustment.
Re: (Score:2)
OK, it's not a sufficiently modern Macintosh. The PowerMac G5 family is almost 4 years old. The 970FX supports frequency scaling (see the IBM PowerPC 970FX RISC Microprocessor User's Manual [ibm.com]), but I can't find any user's manual for the earlier 970's, so I don't know whether they support it as well. If they don't, you're out of luck, and need to get a more modern machine.
I also don't know whether it would be possible to switch off individual processors i
Re: (Score:2)
A PowerMac G5 with a 970FX is a more modern machine than one with the original 970, and this "New Product Focus" note [ibm.com] seems to indicate that the 970FX was the first 970 to support changing the clock speed and voltage on the fly, so, if you want to have the OS able to adjust the processor speed (or the processor able to adjust its speed spontaneously), and you h
Slow down HD? (Score:2)
Maybe there isn't a big enough power difference to make it worthwhile, I dunno.
Anyway, with flash is getting so cheap, sooner or later I'll find a way to delegate those things to flash and let the HDD actually go into sleep mode at night.
Re: (Score:2)
Re: (Score:2)
thanks! (Score:2)
Re: (Score:2)
What about wireless ? (Score:3, Interesting)
There was some useful info in this article about configuring your network adapter to support wake-on-lan, but what about wireless adapters? In my experience they don't seem to support WOL or any equivalent. The only solution I can think of is to connect an ethernet client device to my computer so that I can use the WOL of the computer's ethernet, but this is not really a good solution.
Is there any sort of WOL capabilities in the new 802.11n?
Re: (Score:3, Informative)
At least at one point, I found one 802.11 adapter or chipset that supported OnNow-style [microsoft.com] 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
Bad Assumption (Score:4, Informative)
* 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.
Re: (Score:3, Informative)
Incidentally I have two PCs (with >85% efficiency PSUs) and a 19" CRT monitor plugged through a power-meter right now and they are drawing 510W total, and 425W if I turn off the monitor.
One of the PCs is a dual socket A machine with cpus that won't go below 60C despite some really powerful air cooling, and the other is an AMD A64-X2 3800+ with ATI X1900XTX. Both are fairly
Calculations are a bit off (Score:4, Interesting)
That doesn't sound very reasonable to me.
".4 kW (400watts) * 720 Hours * $0.12kW/h = $34.56"
Nope, that's way off what the average PC costs to run.
He does have a point thought about using lower power modes. On newer PCs it seems to work well and it will save you bucks if you have several PCs in your house.
Re: (Score:3, Informative)
400 watts has got to be way off.
400 watts is high (Score:3, Informative)
Re:Calculations are a bit off (Score:4, Informative)
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.
Re: (Score:2)
There is *one* setup that could require the BFPS - Geforce 8800 GTXs running in SLI. Those bastards chew up like 160W each. Figure 360W total just for the two vid boards. Then figure another 150W to run the rest of the system at peak load (drives, dual core
Re: (Score:3, Insightful)
Some good options now are Seasonic S12, Antec NeoHE, Silverstone ST30NF, Nexus NX-80x0 series.
My weeks only have 7 days in them. (Score:5, Funny)
Does that mean my PC costs one-quarter of what he calculates?
Re: (Score:3, Funny)
Not really applicable to servers? (Score:2)
Re: (Score:2)
What an opening (Score:5, Funny)
Welcome to the exciting new world of UGC.
In before the morons (Score:2)
Well, i used to have my computer always on. When it wasnt needed, it went into hybernation mode. After i upgraded my system (changed from amd and old socket 939 to core2. Btw, against the "wisdom" of the typical moron, without reinstalling windows. Isnt needed since win2000, people...), S3 was activated automatically.
And it NEVER made any problems. The limiting factor for wake
A nice way to rub salt in a wound. (Score:2)
that will now cry that their computer _has_ to be on, 24/7 (because otherwise, they couldnt improve their epenis, er, i mean uptime).
Uptime is something M$ can't deliver, but they have done a nice job of making sure systems with good uptime can't do power management easily [edge-op.org]. ACPI is sabotaged. I'd love to be able to have all my systems hibernate AND be network accessable, but I have not had the time to see that it does or does not work on my system yet.
From what I've heard, M$ has also unable to delive
re: S3 Standby State Done Right (Score:3, Interesting)
Slightly off tangent, but hibernation (S4) fails in WinXP SP2 if you have more than 1GB of RAM. [microsoft.com]
My biggest problem with standby on my WinXP machine is that my machine will randomly wake up after a random amount of time. I've already disabled WOL and Wake-on-USB, but my computer will wake up randomly from standby anywhere from 3 minutes to never. I still can't figure out what's causing the problem. :(
Re: S3 Standby State Done Right (Score:4, Informative)
Works just fine for me. Probably because I installed the udpate mentioned in the resolution section of the article sometime last year.
Re: (Score:2)
Those nSomnia cards cause nothing but grief.
I'd seriously consider blaming the mouse. Try unplugging it before sending the computer into standby, and see what happens. Micromovements are always what cause
Re: (Score:2)
Re: (Score:2)
Programmatically disabling sleep mode on Vista. (Score:2)
Ideally I'd like to recompile the app with code inserted to disable sleep mode while it's running, or register some kind of user activity. Anyone know how this is accomplished on Vista? Another option would be to write another app that monitors network activity, and disables sleep mode when it sees activity over a certain threshold.
Re: (Score:2)
ACPI is a clusterfuck (Score:2)
If you haven't done that, go do it. Now. Gain an appreciation for either the difficulty in following the spec properly or the incompetence of the OEMs to implement their part prope
sounds like a great way to wreck disks (Score:2, Interesting)
To see available Sleep modes from Windows Prompt (Score:5, Informative)
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 [tech-recipes.com]
In my expirence power saving in Windows crashes (Score:2)
My laptop works that way and so does my desktop. It is very annoying and in order to avoid the lockups I have to turn power saving off and then the system doesn't lock up anymore.
Re: (Score:2)
Re: (Score:3, Informative)
Re: (Score:2)
Put some effort into it at least! Let me get you started with a helpful guide to trolling http://www.urban75.com/Mag/troll.html [urban75.com]