Why does my KDE X11 run on Nvidia rather than my laptop's iGPU?

in hybrid mode both monitors should work…
post output when in hybrid mode from:
inxi -xG

Hello, here is the output:

inxi -xG                                                                                       ✔ 
Graphics:
  Device-1: NVIDIA GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB]
    vendor: Lenovo driver: nvidia v: 525.89.02 arch: Ampere bus-ID: 01:00.0
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5 bus-ID: 05:00.0
    temp: 32.0 C
  Display: x11 server: X.Org v: 21.1.7 driver: X: loaded: amdgpu,nvidia
    unloaded: modesetting,nouveau dri: radeonsi gpu: amdgpu resolution: 1: N/A
    2: 2560x1600~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.5 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.7 DRM 3.49 6.2.7-2-MANJARO) direct-render: Yes

Related?..
https://wiki.archlinux.org/title/PRIME#XRandR_specifies_only_1_output_provider

1 Like

both are loaded…
and switching to discrete mode worked? both monitors were on?
when you were installing manjaro were both monitors working in the live usb session?

1 Like

Hello @cscs

I will read it now thank you for sharing!

@brahma

When I switched it on discrete mode on now, yes, both monitor worked. and I was sucessfully able to enable and disable the built-in monitor. But now, I am unable to enable the built-in monitor even tho I see it on GUI display settings window. I can check and uncheck the enable or primary options but when I apply, nothing changes. The built-in screen blinks for a second and then nothing happens on the external screen.

On live install, I don’t remember, on some live usb installs, the external monitor doesnt work, on dsome others it does. I think that on live install it worked. I still have it on usb, I will boot into it and report back.

so if both worked on discrete why not use it?
but boot the live usb with proprietary drivers while in dynamic/hybrid mode…

1 Like

But does that works when HDMI is wired to dGPU? Maybe this is the one case, where it really needs to have nvidia only? Maybe in Windows it works like laptop screen on iGPU and external with dGPU, but does that work in the same way in Linux? I only heard about dGPU on hybrid mode running on demand fo windows, not monitors.
Just being curious.

1 Like

Hello! Tried it, and no, on live usb, even tho I boot with proprietary drivers, the external screen didn’t work. The computer detected it but I was unable to enable it.

Let me explain. When I opened this thread, the intention was to be able to run the AMD GPU to render the linux desktop and NVIDIA for all the resource heavy tasks like 3D rendering. Then a couple hours ago I found out that it is impossible because of how the ports are wired in my computer.

Then, the reason I wanted so badly to try the hybrid mode on Linux at least on the built-in screen was to see the performance on the AMD GPU and to compare it to the performance that I get on my NVIDIA rendered Linux Desktop to experiment and find out how much of a performance hit that I am getting.

Since I am still new to Linux, I am trying to experiment and experience as many different things possible that my hardware permits me both to see, learn and also trying to fix things let’s me learn more about linux. Such as, thanks to this, I learned a tiny bit about the mhwd commands and also I found out the TTY mode to fix my system - as much as my limited knowledge permits me - without reinstalling the system each time I hit a wall.

So yes, I will probably use it on discrete mode as I need my external screen. I also wanted to experience the AMD hybrid mode because I am planing/hoping to buy a used lightweight laptop with AMD/intel CPU with if possible an Nvidia RTX 3050 Ti gpu ( I need nvidia for Blender, but I still do not rule out an AMD GPU option if i find something with RX 6600m …etc that I can use on the go. I know that buying a desktop could have been a more intelligent choice rather than the Legion laptop if i will buy a 14 inch lightweight laptop, but even as a powerful machine, I need a laptop because I travel a lot for long periods, so I prefer to bring my powerful computer with me rather than let it sit in the house. So, this AMD hybrid experiment was kind of to see, experience how the lightweight laptop could/would act under Linux.

Thank you all of you, for your patience, and also the time and attention that you have dedicated, I appreciate it!

@michaldybczak ,

Hello! I think that it depends on the laptop. In my case, what I found out so far is that it wont work. Apparently the hdmi is hard wired to my NVIDIA gpu so whatever I try, it won’t work. I will try tomorrow, with a usb-c dongle that I have at work. But still, I’m afraid that it won’t work, from what I read on internet, tho I will still try as the info I found about the usb-c was a bit unclear.

I think in that case is the best to set dGPU as a main and only GPU. The only difference will be that it will use a little more energy, that is all. Performance for everyday tasks should be the same on any GPU, but if you need both monitors working, setting it to nvidia only is the best choice IMO.

HDMI attached to dGPU is a very rare hardware setup and I’m afraid that it’s not that flexible on Linux as it should be. Of course, it may be, that there is some special setting to make it work, but we just don’t know about it. Who knows?

To sum up, I would set Nvidia only mode for now, but patiently look around if there is no solution to make it work as you want. @brahma, what do you think?

1 Like

@michaldybczak

True, I will be using the discrete GPU and yes, I realize that it is much more powerful than my iGPU. At home the power consumption is not really a concern as it is plugged in and it does not have an exceptional battery life like a macbook pro anyways.

The reason I wanted to run the desktop on AMD iGPU was because - proven with my limited experience on the built-in screen - with the integrated igpu, even tho it is much less powerful than my discrete gpu, the system, desktop, runs much snappier, window resizing lag is almost inexistent, google chrome resizing…etc is muuuuuuuuch less laggy…etc. My system is still quite fast and useable, I was just trying to make it as snappy as the hardware deserves to be since it is a powerful hardware. I know and read about the Nvidia and Linux “problems”, so, that is why I was trying hard to use the igpu for the desktop. Guess, for now, it is a lost battle on my end. :slight_smile:

in the hybrid mode both gpus are loaded and powered, so both screens should work…
lets install optimus:
kate /etc/sddm.conf
and put a # before the line starting with DisplayCommand and the one starting with DisplayStopCommand. You may not have these lines there, so proceed to install:
pamac install optimus-manager optimus-manager-plasma
reboot and switch to the dynamic/hybrid mode and see if it helped…
if you end up with a black screen, you alredy know how to enter into tty, so remove optimus and reboot…

@brahma hello,

I did the modifications that you have asked, I then rebooted with the dynamic drivers. It boots on built-in screen, the external screen is not detected on the display settings gui. I guess that because of the hdmi setting of my computer - beeing hardwired to the gpu - doesn’t permit it. But at least it should run and use may be Nvidia even tho it is on the dynamic mode. I have no clue.

so if it didnt help, remove optimus:
sudo pacman -Rs optimus-manager optimus-manager-plasma
reboot and boot with nvidia only, and see if everything works

Hello,

Yes did that already as it was not booting. And after removing it booted again.

so everything is working on nvidia as it should?