LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Disable discreet AMD GPU with Dedicated AMD GPU (https://www.linuxquestions.org/questions/linux-hardware-18/disable-discreet-amd-gpu-with-dedicated-amd-gpu-4175710886/)

nooobeee 04-16-2022 08:08 AM

Disable discreet AMD GPU with Dedicated AMD GPU
 
I have a laptop that, for various reasons, I would like to disable the discreet graphics and solely use the dedicated GPU. It is a Ryzen laptop with both Renior and Radeon RX. I'm on updated Arch and running X11 Plasma.

Code:

$ lspci | grep ATI
01:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c2)
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c2)
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6)
07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller

I've verified that the Renior graphics is active:

Code:

$ glxinfo|egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: AMD
OpenGL renderer string: AMD RENOIR (LLVM 13.0.1, DRM 3.44, 5.17.2-arch3-1)

I've read numerous articles and forum posts on this topic but the steps being suggested seem to break down either because my dedicated GPU isn't NVIDIA or because my integrated GPU isn't intel (eg. I can't use bumblebee because that's for NVIDIA and I can't blacklist ATI drivers because that's also my dedicated GPU).

Following: https://wiki.archlinux.org/title/hybrid_graphics
I attempted to use the acpi_call and provided turn_off_gpu.sh script but all of the devices failed.

How do I disable the discreet AMD/ATI graphics without breaking my dedicated AMD/ATI graphics?

Jan K. 04-16-2022 02:11 PM

Surely it can be disabled in BIOS?

mrmazda 04-16-2022 07:32 PM

Discreet graphics and dedicated GPU generally refer to the same thing. Consequently, what you're asking is unclear. iGPU (integrated GPU) or IGP (integrated graphics processor) generally provide a clear reference to a GPU provided on a CPU die, a combination which AMD calls an APU.

nooobeee 04-17-2022 07:13 AM

No place to disable in BIOS. I apologize for the confusion. What I'm looking for is a way to disable the integrated gpu (renior) and use only the dedicated gpu (radeon).

Jan K. 04-17-2022 11:45 AM

Quote:

Originally Posted by nooobeee (Post 6346658)
No place to disable in BIOS...

That can't be right. What's the make and model of laptop, if I may ask?


For a bunch of MBs here https://itigic.com/disable-integrate...herboard-bios/

mrmazda 04-17-2022 01:51 PM

It might be worth trying suse-prime. I just asked about it here.

Arnulf 04-17-2022 02:09 PM

It is very common that integrated GPUs and this annoying shared memory can completely be disabled on mainboards for desktop computers.

Unfortunally, it is uncommon that integrated GPUs can be disabled in laptops. Laptops with a dedicated GPU normally use switchable graphics to save power by using integrated GPU especially in battery mode and to provide maximum performance if required by using dedicated GPU especially in AC power supply mode. Both GPUs write to the same framebuffer that is located in shared memory. This means that shared memory can't disabled too.

nooobeee 04-18-2022 08:05 AM

@Arnulf, you are correct, this is a laptop and (I suspect) the reason you mentioned is likely the reason there is no option for disabling in the bios.

@Jan_K., This is a dell G5s (5505 I think). I can appreciate your surprise as, historically, there used to be options in the bios to control these things. But now everything seems to be baked into the "secret sauce" of the drivers. And, as we all know, linux is treated as 2nd class by manufacturers when it comes to drivers.

@mrmazda, Thanks for the link. I'm not going to hold my breath since many of those sorts of projects have specific hooks and what-not that only apply to nvidia (eg. bumblebee) but I'll definitely do some digging on that.

Jan K. 04-18-2022 05:58 PM

You do not want to disable anything... *waves hand jedi style*

Have a look at AMD SmartShift, like here https://www.windowscentral.com/amd-smartshift


Old rules don't count anymore, gpus are cpus, bios executes own apps, the world's gone mad! :D

Got the idea that maybe AMD used the two gpus in a crossfire-like setting and stumbled on that SmartShift thing.

I would just make sure SmartShift is enabled and carry on.


Nice piece of kit, btw.

nooobeee 04-18-2022 06:44 PM

Quote:

Originally Posted by Jan K. (Post 6347013)
You do not want to disable anything... *waves hand jedi style*

Have a look at AMD SmartShift, like here https://www.windowscentral.com/amd-smartshift


Old rules don't count anymore, gpus are cpus, bios executes own apps, the world's gone mad! :D

Got the idea that maybe AMD used the two gpus in a crossfire-like setting and stumbled on that SmartShift thing.

I would just make sure SmartShift is enabled and carry on.


Nice piece of kit, btw.

Thanks, you may be right. Perhaps there are other ways of accomplishing my objective. One of my objectives here is to passthrough the Radeon GPU to an OSX KVM in order to have a better experience with DaVinci Resolve. Apparently the free version of Resolve for OSX allows for GPU acceleration (which it doesn't on Windoze or Linux...not to mention the atrocious codec issues in the Linux variant of Resolve). Unfortunately I'm having issues booting OSX with the Radeon passed through and I think it's because Renior is not ceding to the GPU the VM is trying to use. It could be something else though.

I've been working with Shotcut and Kdenlive but I miss the "Noise Reduction" audio effect built into Resolve that allows me to take a sample and minimize/eliminate background noise from within the video editor. I'm getting by with Shotcut and Kdenlive for now but really wanted an environment I could boot into for a better video editing experience the one time every week I need it.

Mike_Walsh 04-18-2022 07:31 PM

Admittedly, most of the normally-referred-to "combos" are usually Intel/Nvidia. It's unusual for someone to add-in a discrete GPU of the same make as the iGPU; would you not run into driver issues of some kind (if you're wanting the AMD proprietary drivers)..?

Just a thought; would Lightworks be able to do what you want?


Mike. :scratch:

nooobeee 04-18-2022 10:20 PM

Quote:

Originally Posted by Mike_Walsh (Post 6347032)
Admittedly, most of the normally-referred-to "combos" are usually Intel/Nvidia. It's unusual for someone to add-in a discrete GPU of the same make as the iGPU; would you not run into driver issues of some kind (if you're wanting the AMD proprietary drivers)..?

Just a thought; would Lightworks be able to do what you want?


Mike. :scratch:

Thanks for the suggestion. I did some more digging and found a forum with some suggestions on audio plugins:
https://archived.forum.manjaro.org/t...-noise/86189/4

From a brief test project, it seems these give me the audio tools I need in Kdenlive but I won't really know until I try to produce a full project with them. If they work, then I'll just pull the compiled version of ffmpeg with gpu acceleration from Shotcut to use with Kdenlive and I should be good. Wish I had found that plugin suggestion earlier (probably should've asked here). Most (or at least many) posts relating to the lack of audio plugins just resign themselves to what comes with Kdenlive so I didn't dig as deep as I should have.

mrmazda 04-19-2022 12:45 PM

Quote:

Originally Posted by mrmazda (Post 6346755)
It might be worth trying suse-prime. I just asked about it here.

Worth a try suggested here.

Mike_Walsh 04-19-2022 08:48 PM

Quote:

Originally Posted by nooobeee (Post 6347075)
Thanks for the suggestion. I did some more digging and found a forum with some suggestions on audio plugins:
https://archived.forum.manjaro.org/t...-noise/86189/4

From a brief test project, it seems these give me the audio tools I need in Kdenlive but I won't really know until I try to produce a full project with them. If they work, then I'll just pull the compiled version of ffmpeg with gpu acceleration from Shotcut to use with Kdenlive and I should be good. Wish I had found that plugin suggestion earlier (probably should've asked here). Most (or at least many) posts relating to the lack of audio plugins just resign themselves to what comes with Kdenlive so I didn't dig as deep as I should have.

Hm. Interesting.

I also do a fair bit of video-editing, and have on occasion found myself wishing for a method for reducing background hiss.

Thanks for the 'heads-up'. I'll do some investigating. Cheers!


Mike. ;)


All times are GMT -5. The time now is 05:12 PM.