# Any way to disable dGPU

**URL:** <https://community.frame.work/t/any-way-to-disable-dgpu/57353>\
**Category:** Linux\
**Tags:** gentoo\
**Created:** [September 6, 2024, 7:02pm UTC](https://community.frame.work/t/any-way-to-disable-dgpu/57353 "2024-09-06T19:02:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waltercool](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@waltercool](https://community.frame.work/u/waltercool)\
**Post date:** [September 6, 2024, 7:02pm UTC](https://community.frame.work/t/any-way-to-disable-dgpu/57353/1 "2024-09-06T19:02:26Z")

</div>

Hi, just wondering if someone knows how to disable the dGPU without “physically remove” it from the laptop.

I want to avoid this scenario where apps and games randomly “detect” and “wakes” my dGPU from D3Cold state.

Also, second question. If I connect an external monitor into dGPU, it activates and works fantastic, but then it becomes impossible to put it back on D3Cold. Anyone knows a good way to send it back to sleep mode?

Which Linux distro are you using?  
Gentoo

Which release version?  
2.15

Which kernel are you using?  
6.10.7-waltercool

Which BIOS version are you using?  
03.03

Which Framework Laptop 16 model are you using? (AMD Ryzen™ 7040 Series)  
Framework 16 w/Radeon 7700S

---

<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:** [September 7, 2024, 2:45pm UTC](https://community.frame.work/t/any-way-to-disable-dgpu/57353/2 "2024-09-07T14:45:13Z")

</div>

I don’t have a dGPU yet (this issue is why I didn’t buy one), but I am interested in following this thread. Have you tried seeing which processes are binding to the dGPU?

---

<div class="post-metadata">

**Author:** ![waltercool](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@waltercool](https://community.frame.work/u/waltercool)\
**Post date:** [September 7, 2024, 3:02pm UTC](https://community.frame.work/t/any-way-to-disable-dgpu/57353/3 "2024-09-07T15:02:48Z")

</div>

If I’m using GPU intensive games or apps, then apps can completely ignore flags like DRI\_PRIME, specially if they use protocols like Vulkan.

If I’m using AI related tools, then HIP\_VISIBLE\_DEVICES should do the job, but actually it doesn’t. It still turns on my dGPU when I need some small LLM.

If I’m connecting my external monitor directly to dGPU for a small performance gain, then Xorg (X11) or kwin (KDE Wayland) will attach your GPU and never release it.

---

<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:** [September 7, 2024, 3:17pm UTC](https://community.frame.work/t/any-way-to-disable-dgpu/57353/4 "2024-09-07T15:17:35Z")

</div>

Regarding Vulkan, perhaps this snippet from the Arch forums will help

> For `DRI_PRIME` to work on Vulkan applications [vulkan-mesa-layers](https://archlinux.org/packages/?name=vulkan-mesa-layers) needs to be installed, as well as [lib32-vulkan-mesa-layers](https://archlinux.org/packages/?name=lib32-vulkan-mesa-layers) for 32 bit applications.

[https://wiki.archlinux.org/title/PRIME](https://wiki.archlinux.org/title/PRIME)

Naturally the package names may change for Gentoo.

---

<div class="post-metadata">

**Author:** ![waltercool](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@waltercool](https://community.frame.work/u/waltercool)\
**Post date:** [September 7, 2024, 3:34pm UTC](https://community.frame.work/t/any-way-to-disable-dgpu/57353/5 "2024-09-07T15:34:47Z")

</div>

Oh, it’s not like vulkan apps doesn’t work, it’s the whole opposite. It works fantastic, but Vulkan apps have complete freedom to use whatever they find best.

DRI\_PRIME works perfect for OpenGL apps, but there is nothing similar like that for Vulkan apps.

Using games with DXVK (like Proton), you can still use DXVK\_FILTER\_DEVICE\_NAME with the name listed on vulkaninfo, but videogames will still use your dGPU CPU but won’t use VRAM.

Example, playing ESO with DXVK\_FILTER\_DEVICE\_NAME=“AMD Radeon 780M (RADV GFX1103\_R1)”

 ![Screenshot_20240907_112845](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/3X/9/6/9658e755bcd39e6a080f0ce75330a28888a91ffc.png)

This could be something related to AMD PMC, but not sure.

Still, my concern goes by apps waking up dGPU when not needed. If I don’t want to use dGPU by whatever reason, it should be great to just disable until I want to use it again.
