this post was submitted on 05 Nov 2024
26 points (88.2% liked)

Linux Gaming

15355 readers
60 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 1 year ago
MODERATORS
 

Hi guys!

I purchased a few months ago a new AMD PC, with a 7700 CPU, 32GB of RAM and a 7800XT GPU. I've noticed since, that my electric bill has been increased (compared to when I used an Intel i7 6700 with a 1070 GPU), I was wondering, is it possible to use a hybrid GPU setup kinda like laptops, where the iGPU from the CPU is activated for normal tasks, and the discrete GPU is only activated on demand? Would the GPU be unpowered/sleeping in the meantime?

....all this from a Linux perspective, I'm running Nobara 40.

Thanks!

top 15 comments
sorted by: hot top controversial new old
[–] [email protected] 13 points 2 weeks ago (2 children)

I don't think that's your PC. I actually measured how much power my PC and my monitors consumed in a week and used that to calculate how much that would be for the year and compared to the total used energy for that year. My PC setup was only a small fraction of the yearly usage. The vast majority of your energy is gonna be consumed by things like fridges, ovens, heating, water pumps, etc.

[–] [email protected] 1 points 2 weeks ago (1 children)

Well I used to turn off the monitors and leave it running...And the last month I started actively suspending it, and the bill went down. I'm waiting to setup some sockets with smart power measuring features, and I'll have more reliable data on power consumption...but I'm afraid I might need to wait a few days on these.

[–] [email protected] -1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Good call. Though, if you use natural gas for heating and water heating and don't own any AC... It'll be a lot less energy in total and you'll notice a new gaming PC. Especially if it coincides with a new game you've been playing nonstop for a few weeks. But I agree, there are a lot of electrical devices in a regular home. And my usage changes with the seasons. For example I watch a lot more TV when it's rainy and cold outside, and the TV is like 100W. And I turn on the lights hours before I'd need them in summer. And it's difficult to tell apart the things in a home just by looking at an electricity bill.

You should have a look at your computer, though. Have you had a look at powertop? And I suppose there is a tool for AMD graphics cards to tell you if it's running at full speed all the time or clocking down as it's supposed to. Or you could get a power meter to plug your PC in to. And do a measurement with GPU and one with the thing ripped out entirely.

[–] [email protected] 1 points 2 weeks ago (1 children)

I did the power measurement using a power meter. We also use natural gas for heating and don't have any AC.

[–] [email protected] 1 points 2 weeks ago

I mainly meant to address OP with the recommendations. (And make a general statement that it depends on circumstances.) But sure. It's the same for me. My PC makes a small share of total electricity. Each time I take a shower adds more to the electricity bill than having the computer running a full day. And all the household appliances add up, like doing laundry, cooking something or baking a cake in the oven. And the fridge etc is running 24/4 and I measured that, too and it's like 260kWh a year. I forgot the numbers for the computer. But I don't really play games so my numbers don't translate to this situation anyways.

[–] [email protected] 11 points 2 weeks ago (1 children)

Any halfways decent GPU driver and device firmware will put it into a low power state when it's idle.

[–] [email protected] 1 points 1 week ago (1 children)

Sadly ours isn't in this regard.

[–] [email protected] 1 points 1 week ago (1 children)

I have an RTX 4090 and use the proprietary driver. It works just fine on Fedora and Windows 11 alike. So IDK what to tell you. AMD and Intel are even easier since the drivers are baked into the Linux kernel. I have an AMD iGPU in my desktop and an Intel one in my laptop. Both work just fine and handle power management correctly.

[–] [email protected] 1 points 1 week ago

It's nice that it's well integrated but that doesn't mean it works well.

Power management of AMDGPUs has always been an absolute shitshow from my perspective.

With dGPUs they've now resorted to always running them in the highest power mode because they couldn't get power management to properly function.

I can't speak for modern intel GPUs but my old ones were fine.

[–] [email protected] 9 points 2 weeks ago

Has the actual KwH increased on your bill? Power bills are like 50% fees so double check the fees aren't the thing catching you out.

[–] [email protected] 7 points 2 weeks ago* (last edited 2 weeks ago)

I built a new machine pretty recently, also with an RX 7800XT GPU (factory overclocked). When sitting idle at the desktop, the system draws about the same amount of power as my old machine did with an RX 480. So I think trying to put the big GPU to sleep during desktop use might be barking up the wrong tree.

I suggest getting a power monitor, like a Kill-A-Watt, and taking measurements while you experiment. Here are some ideas to consider:

  • Are you using multiple monitors? I have read that newer AMD GPUs sometimes draw more power than they should in this case. It might depend on the resolution and/or windowing system in use. (I don't remember if the reports I read were on Wayland or Xorg.) It almost certainly is a driver issue.
  • Are you using nonstandard timings? Have you tried different refresh rates? https://community.amd.com/t5/graphics-cards/which-monitor-timing-parameter-allows-gpu-vram-frequency-to/td-p/318483
  • Have you been playing games for hours every day, with no frame rate limit? The graphics card can draw considerably more power pushing polygons at 1440p@180Hz than it does at 90Hz, for example, and I don't think the wattage progression from idle to full load is linear.
  • Are you using recent kernel and firmware versions?
[–] [email protected] 6 points 2 weeks ago (1 children)

That should be mostly the default. My secondary Vega 64 is reporting using only 3W which, on a laptop would be worth it but I doubt 3W affects your electricity. It's nothing compared to the overall power usage of the rest of the desktop, the monitors. Pretty sure even my fans use more.

The best way to address this would be to first take proper measurements. Maybe get a kill-a-watt and measure usage with and without the card installed to get the true usage at the wall. Also maybe get a baseline with as little hardware as possible. With that data you can calculate roughly how much it costs to run the PC and how much each component costs, and from there it's easier to decide if it's worth.

Just the electric bill being higher isn't a lot to go with. Could just be that it's getting cold, or hot. Little details can really throw expectations off. For example, mining crypto during the winter is technically cheaper than not for me because I have electric heat, so between 500W in a heating strip or 500W mining crypto, they both produce the same amount of heat in the room but one of them also made me a few cents as a byproduct. You have to consider that when optimizing for cost and not maximizing battery life on a laptop.

[–] [email protected] 2 points 2 weeks ago

Lol...I didn´t consider that. What crypto can you mine that can give you at least some cents back? Sorry for the offtopic. Yeah I'm in the process of setting up some sockets with zigbee switches and power metering. I'll install the one for the desktop soon, and start measuring more accurately. Is there a way to know which GPU are you using at any given time?

[–] [email protected] 1 points 2 weeks ago

For this to work with a desktop PC, you would need to connect your display cable to your iGPU instead of your dGPU. The driver should take care of the rest. This might yield lower performance when using dGPU for processing (probably unnoticeable, depending on circumstances).