Standby TVs Waste Electricity, How About ACPI?
twitter asks: "There's power management and there's standby, do you know the difference? The BBC is running story on how much electricity is wasted by TV standby mode. Thanks to the very useful EnergyStar program, I'd be the one in seven who thought they were saving electricity, with the standby button. I've been very happy with APM and hibernation on laptops, and want to do something similar with the desktops I use. What's the state of APM / ACPI Wake-on-LAN for Linux these days?" Slashdot touched on this issue, earlier in the week, but that article was more on TVs, not on computer power saving technologies.
If it's more convenient we'll keep on wasting energy. The worst part is the standby circuits use practically no power compared to the transformers, which waste far more energy as heat than the standby circuitry uses. There should be a seperate battery power source powering the suspend-mode circuitry, which lets current into the transformer to provide the power needed for normal operation.. But of course this would cost extra, and consumers wouldn't pay extra for it even if it saved money on power bills in the long run.
// MD_Update(&m,buf,j);
While the vanilla version works basically, Suspend2 is a more complete implementation. I use it on my laptop regularly.
Escher was the first MC and Giger invented the HR department.
WakeOnLan is basicly a matter of sending a 'magic packet' to the MAC address of the comuter you want to wake up. There is no need ofr the OS on that machine to actually support that functionality (except for there being a few cards around that require WOL to be re-enabled after each boot).
Sending the 'magic packet' is not difficult, and there is a variety of tools that can do this, including a ready made perl script, on a gentoo system, type 'emerge wakeonlan'. I bet it is available with most other distributions as well.
You will save far more energy by investing in some compact flourescent light bulbs.
...servers run 24x365.25 no need for ACPI here.
Save power somwhere else...
There is a good reason why Java never became particularly popular, and this is it. It has an absolutely idiotic security model, in that it prohibits you from doing "dangerous" or "nonportable" things. Where "dangerous" or "nonportable" actually means "useful".
With the appropriate privileges, Perl (or any other native application) can send any type of packets, layer 2 or above (possibly even layer 1). A programming language is NOT the place to impose security constraints. That's what the operating system is for.
Since perl scripts running on a Linux machine have access to the commandline, yes, they can send raw ethernet packages, given they run with the correct privileges and availability of correct tools. No native capability in perl for doing this is required at all. When running natively compiled JAVA on the same platform, and giving it access to the commandline, you'd have the exact same situation.
Yeah, because those damn environmentalists wield so much power and have so much money, why they're practically running the US government!
That's nonsense. Slashdot ran an article on this just recently. Global wind power in class 3 areas alone could generate 72 terawatts which is 60 times global consumption. Class 3 wind turbines are financially comparable to brown coal. North America has the greatest number of class 3 areas in the world.
But let's not stop at wind power. A home with solar panels for hot water (not the expensive, dirty and inefficient photovoltaic) saves 50% on heating costs. The panels pay for themselves in 5 years and have a 25 year lifetime. They are maintenance free (they are effectively just black plastic pipes behind glass sheets) and easy to repair when damaged (simple plumbing that a home handyman could do).
But let's not stop at solar and wind power. Changing your light bulbs from incandescent to energy efficient flouros will save 75% on lighting costs. Modern flouros are compact, come in a variety of shapes, only need to be changed once every 5-10 years, degrade slowly rather than blowing suddenly at inconvenient times, and have equivalent candela output to a 75W incandescent.
But let's not stop at solar power and wind power and energy efficiency. Your SUV gets 10MPG yet a comfortable Subaru Legacy has equivalent seating and storage but gets 33MPG. Your average driver will save between $750 and $1250 per year while simultaneously slashing their automobile oil consumption by two thirds. That's financially sensible and enviromentally friendlier.
The solutions are here right now. You need to stop waiting for the magic silver bullet like fusion, or blaming "environmentalists" for preventing fission, or wondering why you're spending $2000+ per year on fuel for your gargantuan SUV, and simply start using the technology that is here right now and is economical right now and is practical right now. You can make the difference right now.
Getting raw ethernet frames, in Linux, is trivial. For example, to get such a socket from python: (copied from the scapy startup routines)
self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(ETH_P_ALL))
Whats that? You want to only get the traffic from a certain ethernet card, or want to transmit out a certain card? Easy. (In C, from my own code.)
struct sockaddr_ll device_sa;
int filedes;
filedes = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
device_sa.sll_family = AF_PACKET;
device_sa.sll_protocol = htons(ETH_P_ALL);
device_sa.sll_ifindex = ifindex;
bind(filedes, (struct sockaddr *)&device_sa, sizeof(device_sa));
You can get a device's ifindex with the SIOCGIFINDEX call, or with the rtnetlink RTM_GETLINK request.
All you need for this is root, or suid root. In fact, I think you can just use CAP_RAW and CAP_NET_ADMIN, I believe.
fnord.
Contrary to popular belief not everyone in the US owns a gas guzzling SUV... In fact my american car (Chrysler) gets better MPG than the subaru you mentioned.
As for everything else...
I did change my light bulbs, the effect I have to say seems negligable... Either my power company doens't bother to look at my meter to figure out energy use, or my lighting costs are fairly low and therefor the change made to small a difference to notice...
I don't have solar panels used for hot water... My house is already built (& I didn't build it), so the cost to change things now is to much for my fairly average salary to cover... I could try to get a loan to pay for it, but that would nuke any savings I'd see for years... I also doubt anyone would give me a loan... Winter would also cause some issues for this... Heating bills are largest in the winter and solar isn't very effective in general when the solar panels are covered in snow...
As for wind.... That's not a change I can make... Even if I did live in a good area (& I think winter would kill any effective use where I live), I'm not likely to be able to put up a tower... First their is the money issue again... Then I think my city would probably frown on it to... When I looked into wireless internet options I found out my area is heavily restricted on building anything over 30" tall... Less would probably not be so good with the number of trees around here...
Nice ideas, but practicality is questionable...
we are all invisible unless we choose otherwise
Linux's software suspend does just this, see my other post here. Well, in fact you have to boot the kernel normally (to initialize hardware, etc.) but instead of a lengthy init, you get the restored state.
Escher was the first MC and Giger invented the HR department.
I've been trying to get power management to work on PCs for over a decade now, and we're still not there...
S1 (aka. sleep) works on most every system, since it's been around forever, but it'll only save you maybe 2% over the system being normally up and running (doing useful tasks).
S3 (aka. suspend) is the damn-good one. It only uses about 0.5 watts more power than your computer being completely off (I suppose it might be different with a more effecient power supply like a Seasonic). However, it's damn near impossible to get it to work. Windows XP, Linux, FreeBSD. Tried on dozens of completely different machines, and I've never seen it work, once. The drivers for pretty much ALL the hardware need to be written with APCI in-mind.
Hell, if I could just find a list of the motherboards, soundcards, and other components that have drivers on FreeBSD6 that will resume successfully from S3, I'd put together a couple systems with just those componets. Electricity in CA isn't cheap, and I'd be saving lots with instant-on from S3. No more boot-up waits, no more opening-up the same apps every time, etc. Just hit a button, and start working (as soon as the monitor can warm up).
S5 (aka. hibernate) writes out RAM to disk, and reads from disk upon restart. I'm not a particular fan of this method, as it would take quite a while to resume on a system with a large ammount of RAM. Still, it has the potential to be even lower power provided you're going to be away long enough.
So, in my experience, you're still screwed... Just shut-off the machine when you're done.
Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
*ahem* I seem to remember a terawatt being one TRILLION watts, not one billion. That's just me, I could be wrong...but I'm not.
RIAA and the MPAA, putting the "F U" in "fair use".
Some things I've tested recently:
My PC speakers use 40 watts, even when "turned off". Result: they're on a power strip with a switch.
My HP Laserjet 2100N uses 12-16 watts (depending on the fan), when in Power Saver. Result: it gets turned off when not in use.
My PIII-650 desktop server consumed about 50 watts when idle. Result: replaced it with a Toshiba Tecra PIII-650 (with a broken screen, cheap on eBay), which draws 14 watts when idle.
I also realized that my Powerbook power supply consumes less than 1 watt when plugged in but no laptop is connected, or about 2 watts when the laptop is plugged in and fully charged, so I'm not as concerned about unplugging it anymore.
My next checks: the TV's, older transformer-based clock radios, wall warts and the deep freeze. I will also take running "baseline" checks of my major appliances (fridge, furnace, washer), so I can recheck them once a year and identify when an appliance is running too hard (bad motor bearing, etc.)