I’m in the process of getting my Home Assistant environment up and running, and decided to run a test: it turns out that my gaming PC (custom 5800X3D/7900XTX build) uses more power just sitting idle, than both of my storage freezers combined.
Background: In addition to some other things, I bought two “Eightree” brand Zigbee-compatible plugs to see how they fare. One is monitoring the power usage of both freezers on a power strip (don’t worry, it’s a heavy duty strip meant for this), and the other is measuring the usage of my entire desktop setup (including monitors and the HA server itself, a Lenovo M710q).
After monitoring these for a couple days, I decided that I will shut off my PC unless I’m actively using it. It’s not a server, but it does have WOL capability, so if I absolutely need to get into it remotely, it won’t be an issue.
Pretty fascinating stuff, and now my wife is completely on board as well; she wants to put a plug on her iMac to see what it draws, as she uses it to hold her cross-stitch files and other things.
Chest freezers are exceptionally energy efficient. It’s not a very good comparison.
Ah, but only one is a chest freezer 😉
That, and I used to have a freezer that was a power suck.
I discovered a similar issue. PC desk was using 8-9W when the PC was turned OFF! My power strip was taking a bit under 1W (the little light, old), two smart bulbs as well but I’ll allow those losses. An older Logitech speaker setup (2+1) was taking 6-7W, turned off! Crazy… and illegal if it were made today (in EU). So this is completely wasted energy in my opinion… started disconnecting the whole desk now.
For comparison, my home server is averaging 7-8W, turned on all the time:
I also learned that PC’s draw a lot of power lol. I used to sit on my PC all day, now I know how much it cost. Even the monitor turning off splits the power draw by half.
I also learned that PC’s draw a lot of power lol. I used to sit on my PC all day, now I know how much it cost. Even the monitor turning off splits the power draw by half.
My state has a green energy initiative that gives us free home energy audits, mostly it means we get a lot of free led lights. But it also got us these nice automated power strips, you plug one item (the pc) into a control socket, and when that device turns off, it cuts power to the other managed sockets (monitors, speakers, etc). A really simple solution that must save a bunch of power.
What brand are those power strips? Last time I went shopping for power strips, they were all the rage and I could hardly find one WITHOUT that feature. Today, several years later, I can’t find any. Except, perhaps, some Chinese ones without safety approvals. I need one for my tv.
The brand seems to be “Tricklestar” (I have to admit I’ve never even heard of the brand, but it’s been working for years now).
What are you running your server on?
Older speakers like that use always on transformers, constantly wasting energy to keep the core energized. You’re correct those cannot be made any more, they must use efficient switch mode supplies.
Couple of thoughts:
-
That smart plug may not be rated to the max wattage when GPU and CPU are at full blast. Be careful, because that could be an expensive mistake. Place a surge protector between the smart plug and the PC to be safe. Also run the PC full tilt for a while and make sure the smart plug doesnt get warm. If it does, fores have been known to start from those.
-
Sounds like you know this with WoL, but suspend is your friend 😉 If the gaming PC is linux and you run into suspend issues, let me know, I’ve seen 'em all.
Place a surge protector between the smart plug and the PC to be safe.
What benefit does this serve in this situation?
Fail safe. It’ll trip the power before it hits the wall and burns the house potentially limiting a fire or containing whatever did happen.
how do you deal with kb+trackpad not working after wake?
Depends on the driver. Usually for finicky ones you can do an rmmod at suspend and a modprobe on resume. What distro, and are you using the default suspend mechanism?
yes, i’m on ubuntu, using all the default drivers.
and i would guess its finnicky because its an old laptop.
is it a matter of scripting rmmod and modprobe to run on suspend/wake?
There are a couple of ways:
- Formally add a system entry to run at suspend/resume (like how nvidia does in their driver package)
Or
- Write a script that rmmods, suspends, sleeps, modprobes, and map it to Cntrl-Alt-Shift-S
I usually do 2 because I like the hotkey method for desktops, and it keeps things the same for both. Also allows me to close a lid on a laptop and leave it on. But 1 is more “formal”.
Happy to share some scripts if you’d like, on my phone now, though.
how do i do 1? having timeout to suspend and lid close to suspend would be great. and id like to see some example scripts!
i had pretty much given up on standby with this one.
Will grab some when I back, but assuming you are using
systemd
, it’s easy if you follow this old but good method: https://blog.christophersmart.com/2016/05/11/running-scripts-before-and-after-suspend-with-systemd/If that doesn’t work out of the box, it’s likely because you’re hitting S1 instead of S3, but give that test script a shot and let me know how it goes!
what kind of driver could the keyboard be using? lsmod shows nothing beyond the HID driver, but thats being used by the external mouse which works normally after sleep.
lshw shows it going by /dev/input/event6 or something like it?
deleted by creator
The plugs are rated for 1800W each. Should be fine. I hit 670W a bit earlier, running Furmark VK and Cinebench R23 multi-core simultaneously for shits and giggles.
Oh nice. Do you have a link to the plugs you chose? I got some 20amp ZigBees from Aliexpress for $3 each, work great, but I wouldn’t trust them to handle their rating.
-
It has never occured to me my whole life to not suspend or shut down computers overnight. It wakes up in like 2 seconds why wouldnt you, even if it used only an extra 1W
TBH I didn’t think it used a whole lot at idle, what with modern manufacturing processes and all. I was fairly surprised.
You must be pretty young, because back in the dark days of spinning HDDs a computer would take 5+ minutes to boot.
Those days were at worst almost 10 years ago.
Stop living in the past with those situations.And you get an SSD.
And YOU get an SSD.
And you fine sir also get an SSD!Suspend != boot
Even in 2010 or earlier waking a pc from suspend would have only taken 2-3 seconds because the whole system state is in RAM not on disk.
At least until MS muddied the waters with “hibernate”.
Those were different times.
They are not relevant anymore with current self hosting setups.
The problem I have with this I put the PC to sleep overnight every night - and like clockwork, Windows wakes it back up sometime overnight to do… Something.
I’ve been diagnosing the issue for years - checking wake timers, switching hardware devices permissions to wake the system off. I might fix it for a few months and then a new Windows update comes along and it’s back to its usual routine of waking itself.
Looking forward to seeing if it persists with Linux when I move at the end of support period for Win10 later this year.
Looking forward to seeing if it persists with Linux
I have never had what you described happen in my past 15 years of using linux, i hope you find your way around things, linux is dope once you get used to it.
My PC goes down from 70W idle to 2W when suspended. I also have a master slave power strip, that turns of all my peripherals (speakers, lights, audio interface, etc) when the PC drops below 10W so that saves some extra energy.
Windows is gonna Windows. Even if you did track down the issue your one update from a borked system or square one when they alter the setting and relocate it on their own accord.
It has never occured to me my whole life to not suspend
Reliability issues with suspend-to-ram are rather common. Shutting down is an option, but session save and restore is a relatively recent thing and not supported by all desktop environments. I.e. it’s the post startup part that takes the longest.
I bought two “Eightree” brand Zigbee-compatible plugs to see how they fare.
Did you need a Zigbee hub to get them working? I was gifted an Eighttree Zigbee plug with energy monitoring, but it seems to require using a hardware hub :(
Yeah, anything Zigbee needs a hub of some sort that interfaces with the server. Zigbee is a mesh-like network of its own - it doesn’t use wifi or Bluetooth or anything.
I bought Nabu Casa’s Connect ZBT-1 dongle; it’s like $35 and plugs directly into the HA server. Super simple to configure as well, since HAOS detects it automatically. Plus, the smart plugs act as routers, so as long as there is a path of router-enabled devices that can see each other all the way to the dongle on the server, you shouldn’t need anything else.
What kind of freezers are they? I hear that top loading freezers are quite efficient because the cool doesn’t escape when it gets opened like a front loading one.
That’s true; once everything inside is brought down to temp, they use very little power to stay cold.
My regular fridge uses ~500-800wh a day (depending on how much it got opened). My chest freezer though, uses ~200wh/day pretty consistently.
One is a smaller chest freezer, about 3 feet tall, probably 6 or 7 cubic feet if I had to guess. The other is a Hamilton Beach upright freezer from Costco. Both are full, so that helps with keeping them cold.
Both are full so it reduces the amount of cold air that can escape when you open them.
Without space between the contents, though, they freeze in phases and it affects how they come out. Watch out or just keep air gaps.
Is your upright the one with all the little compartments? That one looked to me like the most efficient upright design I’ve ever seen.
Yep, it’s awesome. We got it for $300 from Costco to supplement the smaller chest freezer, and it’s been an absolute godsend.
And why the old “ice boxes” are top load only. And why most boat fridges/freezers are top-load, because energy is scares/finite when disconnected from power.
Any time I clear out the chest freezer to defrost or get to something at the bottom, the lower half stays below freezing for quite a while. Love that little freezer.
Evaporative clay-pot coolers are also top-load for efficiency.
My desktop PC idles quite high as well. The semi high-end consumer motherboards on the AMD side tend to use a lot of power at idle, so I think that’s a big part of it (at least the x570 series, can’t speak for later). And as others have said, high refresh rate and multiple monitors can make things worse.
I’ll add though that people’s perception of how much power there system is using can be skewed by software based monitoring tools. People may think there system is using only 50W because that’s what software reports but it’s actually drawing a 100W at the wall.
I’m eyeballing HWINFO64 right now, it’s saying my GPU is idling at ~28W and the CPU is idling at ~36W. Add a couple watts for the fans, various peripherals, and waste heat; it’s close to what I saw earlier.
The dual 1080p monitors eat up about 30W apiece on their own, when powered and actively displaying something. Barely a watt or two each when in standby mode.
36 Watts idle sounds like a lot for a 5800X3D. I’ll see what my 5700X3D does, never checked that. Not in software and not at the wall.
My X670E system also uses a shitload of power. Literally 150w at idle, no matter what I do. Tried disabling every unnecessary feature in the BIOS and enabling all the energy efficient settings I can find, to no avail. Drives me nuts.
Yeah I made a similar discovery after installing a Shelly Switch with Power Metering. The monitors and their brightness make a huge difference as well when in or near idle (for photography, so not a surprise). I’ve also implemented an “anti-standby” function, so the switch opens whenever the current falls under a specific threshold.
For the WoL, since I have a switch, I configured my BIOS so it would turn on after power loss. Now I can start to boot up from afar :)
That’s certainly one way to do it…
I love my old desktops that pull almost nothing.
Those storage freezers are doing nothing the vast majority of the time. Not really a fair comparison.
Yeah, I noticed haha. Though I did have a big freezer some years ago that was a pretty hefty power suck… I never measured it, but it definitely affected my power bill.
If I’m reading that correctly, that shows the system is drawing around 100W just sitting idle.
Something is not right there.
Either the power meter is way out of calibration, or there is a configuration issue with your PC. Maybe you have a performance setting that is causing the CPU and GPU to not idle down ever? Or a rogue antivirus software that is cranking the CPU constantly?
Are there any spinning disk hard drives in your PC? They can sometimes use around 5W each on idle. That was the biggest cause of idle power consumption on my old xeon server, with 8 HDDs.
PSU choice can also affect it. Eg, if you buy into marketing and buy a monster 850W PSU, but it’s idle all the time and only uses 450W under load, then the PSU is spending the whole time outside it’s efficiency curve, and can end up causing more power draw than expected.
It’s ~90W at idle; the plug is monitoring everything at my desk. No spinning rust, all solid state. Settings for CPU and GPU are all default at the moment. It does have an 850W PSU, but I’ve had it pulling over 700W at one point (dimming my bedroom lights), so that’s somewhat justified 😅
I’ll dig into settings later, but for now I’m good just turning it off unless I’m using it.
(dimming my bedroom lights)
Thats terrifying. Your desk outlet should not share a circuit with your bedroom lighting circuit, that makes no sense (unless you’re talking about a desk lamp).
And regardless, if a 700W load can make your lights dim, then there’s a major wiring issue in your house. Don’t plug in an electric cooker, kettle, or space heater until you get that checked out.
deleted by creator
The bedrooms, including my entire master bedroom suite, each have one 15A circuit. No more. That’s how most duplex townhouses are. The lights are currently those damn CFL lights, so they aren’t exactly difficult to dim - CFLs almost do it on their own when they’re close to dying (which these ones are).
That, and it’s a rental house.
Major issue lol short circuit or too thin of wire/breaker, old house probably. Instant dim and back to normal turning on a heavy appliance can happen as the power circuit lags but it’s a mere fraction of a second.
So to turn on an appliance I’m pretty sure it takes 3000 watts to cycle on then reduces to say 1500 watts to operate a normal 1500w appliance. Nothing should ever continuously dim lights. Major fire hazard if so.
Most rented bedrooms in my area dont even have built-in lighting. Its all floor and table lamps, usually on a smart outlet these days
That’s nothing; my Ryzen 7000 machine uses 150w at idle. Modern high-end desktops draw a lot of power.
Yeah, energy monitoring ruined several things for me. Can’t let my PC idle anymore, can only turn on the dishwasher when the sun is shining, need to explain regularly to my wife, why our home network and server infrastructure consume 130 Watts per hour, have to automate all plugs with standby devices connected…
The damn freezer consumes only 400 Watts per day while Network infrastructure, server, Wallpanels and KNX consume 3 Kilowatts, I wish I would have never learned this.
I’ve got a decent handle on my electric bill. I already have it set to “equal pay”, so I pay roughly the same amount every month - which includes my server cluster running 24/7.
I did some quick math, and my PC’s estimated usage for a month is ~70 kW/h, which is ~$10 in my area. My last power bill was 1,145 kW/h total.
70 kW is 16€ where I live and I have around 4000 kW per year.
Nice!
There is a reason people opt for old desktop CPUs and SSD’s
Part of why I’m going with the ‘T’ variant of the Pentium G4560 on my custom NAS build.
Just fyi, Watts is a measure of power, and WattHours is power over time. So your home network and server consume 130w, which would be 130wh after an hour, or 3120wh after a day. The chest freezer would be 400wh in a day, rather than 400w in a day.
Thanks for the heads up, I often let the time slip when casually talking about stuff like this.
Actually the server and network consumes 130Wh or around 3120Wh a day, while my freezer (actually a fridge) consumes 400Wh per day or around 16Wh. That’s also the reason why I was shocked about the consumption, as you would guess a fridge takes more.
Easy to miss typing in a hurry too. I just did it above.
How is it possible that it draws 100W at idle? What is it even doing?
Hard drives, especially spinning discs, and RAM are probably the biggest factor at idle. I dropped my servers’ idle draw from 220w to 180w by dropping it’s RAM and replacing some older drives.
People underestimate how more RAM can be more power usage.
The PC was drawing ~90W. All solid state, no spinning rust. Lots of fans though, since it’s air-cooled. Not entirely sure what was causing the draw, but it’s definitely something I want to investigate at some point.
Check your GPU power usage, I remember seeing people complaining about theirs not clocking down if they had a second monitor plugged in, and similar bugs
Worth a look. One monitor uses HDMI, the other uses DisplayPort. They’re just cheap secondhand 1080p monitors to get me by until I toss them for an ultrawide 1440p unit.
If you want to expand from just monitoring a couple sockets to monitoring the whole house; I’d recommend Iotawatt. I’ve been using one of these to monitor every circuit in my house for a few years now.
You can use the built in webpages shown below to view it’s internal graphs, or setup an exporter to feed the data into external DBs like influxDB+Graphana or Emoncms.
Very cool! However, my house is a rental, so any monitoring equipment has to be somewhat non-invasive.
Edit: it helps if I actually look at the product before spouting nonsense… Looks promising.
I’m in a rental too. It’s non-invasive; just gotta pop the panel cover off, clip the transformers over the wires without disconnecting them, and put the cover back. It can all be removed just as easily.
just
Uh oh. Red flag.
gotta pop the panel cover off,
This may be where the rental agreement is broken. Define ‘pop’ . Two hands and a tool? Clear it with the landlord first. The company running the 400-unit building where I am now is gonna say F No.
Spaces before a full stop? Really?
That’s between you and your landlord. Mine was fine with it as it doesn’t actually modify any of the wiring.
I had a similar revelation. Home assistant has a WOL component, so you can set that up for easy starts. I’ve had mixed success with mechanisms to get HA to sleep the computer, though.
Ideally I want the machine to be sleeping I’d I’m not using it.
I use Kasm for remote access, I believe that has a WOL component as well. I haven’t set it up as such, but I plan to later on.
If you get a reliable way to sleep a windows machine via MQTT (not sure if that’s a route you’d take) but I’d be super interested in hearing about it.
I use HASS.agent to help manage my Windows desktop and expose various sensors to HA. It can suspend or hibernate the system. It does use MQTT as its connectivity plane.
Oh nice, I’ll give that a shot. I was using IOTlink but the service wasn’t reliable on my machine and needed to be restarted constantly…
I’ll give HASS.agent a shot! Thanks
That’d be interesting, but I don’t plan to integrate my PC that deeply into HA, if at all.