# Selecting gpu for programs?

**URL:** <https://community.frame.work/t/selecting-gpu-for-programs/56837>\
**Category:** Linux\
**Tags:** fedora\
**Created:** [August 27, 2024, 1:53pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837 "2024-08-27T13:53:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![DraconicBovine](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DraconicBovine](https://community.frame.work/u/DraconicBovine)\
**Post date:** [August 27, 2024, 1:53pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/1 "2024-08-27T13:53:58Z")

</div>

So I have the dGPU on my FW16, running Fedora 40, and I was looking into power usage.

I was checking to see that my dGPU was asleep when the system was idle, which it turns out it doesn’t seem to be.

Using `nvtop` and only filtering on the `AMD Radeon RX 7700S` things like Slack, Discord, Steam and Chrome are using it, which I would image are the culprits.

Is there any ways to force these to use the iGPU instead?  
Some of these things are flatpaks, if it makes a difference.

I’ve only been using linux as my main OS since I got my framework last month so there’s an infinite number of things I don’t know.  
I know exactly where to set this up in windows, but alas not on here.

---

<div class="post-metadata">

**Author:** ![TechPriestNhyk](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/techpriestnhyk/32/27853_2.png) [@TechPriestNhyk](https://community.frame.work/u/TechPriestNhyk)\
**Post date:** [August 27, 2024, 1:56pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/2 "2024-08-27T13:56:22Z")

</div>

you should be able to select iGPU by launching the application with `DRI_PRIME=0` as an environment variable, e.g. for steam this means adding `DRI_PRIME=0 %command%` as the command line parameter in the game’s properties. Alternatively, you can launch games through Lutris (which connects to a bunch of other launchers) and it has graphical menu options for selecting the GPU. I.e. configure \> system \> display \> GPU.

Edit: I evidently skimmed past your second sentence. Lutris likely wouldn’t help with what you’re trying to do.

---

<div class="post-metadata">

**Author:** ![DraconicBovine](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DraconicBovine](https://community.frame.work/u/DraconicBovine)\
**Post date:** [August 27, 2024, 6:25pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/3 "2024-08-27T18:25:58Z")

</div>

Thanks, though this isn’t really for games.

The steam application itself is using the dGPU. I’m fine with the games using it.  
Just trying to keep the power consumption low when the system is idle and the iGPU should be able to handle those workloads just fine

Setting `DRI_PRIME=0` on either the system or changing the flatpak desktop files with `--env=DRI_PRIME=0` had no effect.

---

<div class="post-metadata">

**Author:** ![TechPriestNhyk](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/techpriestnhyk/32/27853_2.png) [@TechPriestNhyk](https://community.frame.work/u/TechPriestNhyk)\
**Post date:** [August 27, 2024, 7:27pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/4 "2024-08-27T19:27:51Z")

</div>

Yeah, I misread your post at first. I definitely understand your frustration, I anticipated issues like that and it’s why I didn’t pick up the dGPU tbh. I wish I knew more.

---

<div class="post-metadata">

**Author:** ![DraconicBovine](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DraconicBovine](https://community.frame.work/u/DraconicBovine)\
**Post date:** [August 28, 2024, 1:42pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/5 "2024-08-28T13:42:16Z")

</div>

I found [supergfxctl](https://gitlab.com/asus-linux/supergfxctl), which isn’t really guaranteed to work with FW 16.  
I tried it out anyway and found it to work flawlessly (I did have issues launching things like slack afterwards, and ended up having to clean reinstall them and rebooting before they would work again for some reason)

Sadly you need to logout when you want to switch between hybrid and integrated mode.  
Had hoped that you could just switch over to integrated-only when opening up the apps you want to force to use it, and then switch back to hybrid.

I hope there is actually a better way of doing this out there.  
However for now I have gone from maybe 4h battery life on balanced, if I’m being generous, to over 8h (9+ on power saver).

So there’s a lot of battery life on the table being drained by the dGPU for no reason just because some apps are choosing it over the iGPU.

---

<div class="post-metadata">

**Author:** ![Aj\_France](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Aj\_France](https://community.frame.work/u/Aj_France)\
**Post date:** [July 29, 2025, 1:32am UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/6 "2025-07-29T01:32:06Z")

</div>

Any update on this? For the life of me cant figure out how to get this installed from the link you posted. Care to explain?

---

<div class="post-metadata">

**Author:** ![DraconicBovine](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DraconicBovine](https://community.frame.work/u/DraconicBovine)\
**Post date:** [July 31, 2025, 1:46pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/7 "2025-07-31T13:46:32Z")

</div>

I just followed the instructions in the link and it worked without issues. Not sure if something has changed or not.

That said I don’t use it anymore.

I instead spent some time looking at the problematic applications. I used stuff like [this](https://github.com/FrameworkComputer/dgpu-power-state-linux) which just tells you when the dGPU is suspended, and quit programs until it did in fact suspend.

For me the real culprit was Chrome at the time (don’t know if that is still the case), it would just either contiunously keep the dGPU active, or would wake it very frequently.

I replaced it with firefox and now most of these issues are just gone. Steam etc does wake it up sometimes, but usually when you launch it and then it settles down again.

Then I use the DRI\_PRIME or MESA\_VK\_DEVICE\_SELECT environment variable to force games etc to use the iGPU if it’s powerful enough to handle it (like simple 2d games etc).

In general I don’t fiddle with this anymore and I’m satisfied with how it works

---

<div class="post-metadata">

**Author:** ![Aj\_France](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Aj\_France](https://community.frame.work/u/Aj_France)\
**Post date:** [March 9, 2026, 4:00pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/8 "2026-03-09T16:00:02Z")

</div>

Dragonic, I am experiencing the inverse of the problem, using lutris to play old windows games line NFS Carbon, and the game only wants to use the iGPU and doesn’t want to use the dGPU. While Most wanted works as intended

Not sure how to solve this lol Does using DRI\_PRIME=1 typically choose the dgpu?

---

<div class="post-metadata">

**Author:** ![DraconicBovine](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DraconicBovine](https://community.frame.work/u/DraconicBovine)\
**Post date:** [March 9, 2026, 4:21pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/9 "2026-03-09T16:21:53Z")

</div>

Since my use case is the exact opposite I don’t know exactly what would work for you.  
I use this to force it to use the IGPU in steam etc `DRI_PRIME=0 MESA_VK_DEVICE_SELECT=1002:15bf!`

[This](https://community.frame.work/t/solved-dri-prime-1-for-a-steam-game-without-function/55421) thread might be more in line with what you need

---

<div class="post-metadata">

**Author:** ![TechPriestNhyk](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/techpriestnhyk/32/27853_2.png) [@TechPriestNhyk](https://community.frame.work/u/TechPriestNhyk)\
**Post date:** [March 9, 2026, 4:27pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/10 "2026-03-09T16:27:23Z")

</div>

You guys can also try using Lutris to launch your games, as it allows you to select which GPU you want to use (likely using a lot of the same commands already being shared).

---

<div class="post-metadata">

**Author:** ![Aj\_France](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Aj\_France](https://community.frame.work/u/Aj_France)\
**Post date:** [March 9, 2026, 4:54pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/11 "2026-03-09T16:54:35Z")

</div>

I’ve been using Lutris, the 7700S still doesn’t get leveraged

---

<div class="post-metadata">

**Author:** ![TechPriestNhyk](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/techpriestnhyk/32/27853_2.png) [@TechPriestNhyk](https://community.frame.work/u/TechPriestNhyk)\
**Post date:** [March 9, 2026, 4:55pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/12 "2026-03-09T16:55:26Z")

</div>

If you run `nvtop` does it show both GPUs?

---

<div class="post-metadata">

**Author:** ![Aj\_France](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Aj\_France](https://community.frame.work/u/Aj_France)\
**Post date:** [March 9, 2026, 4:57pm UTC](https://community.frame.work/t/selecting-gpu-for-programs/56837/13 "2026-03-09T16:57:24Z")

</div>

THIS WORKED! Thank you!!!
