You are not logged in.

#1 2023-05-20 20:36:02

BackToUSSR
Member
Registered: 2023-05-17
Posts: 26

[SOLVED] dGPU is used instead of iGPU by default

Greetings!
I'm not sure about my video system is set up and working properly. After installing the following packages: lib32-nvidia-utils lib32-opencl-nvidia nvidia-dkms nvidia-settings nvidia-utils opencl-nvidia it seems that the system started using dGPU instead of the default iGPU. I need to use only the iGPU by default (window manager, browser, etc.)
And the use of dGPU only happened after an explicit call through a prime-run. When using glxinfo | grep "OpenGL renderer" with or without prime-run I always get only dGPU:

glxinfo | grep "OpenGL renderer"

prime-run glxinfo | grep "OpenGL renderer"

xrandr --listproviders

lspci -k | grep -A 2 -E "(VGA|3D)"

mkinitcpio.conf

/etc/default/grub

Additional installed packages: mesa vulkan-radeon lib32-vulkan-radeon

Last edited by BackToUSSR (2023-05-20 21:51:48)

Offline

#2 2023-05-20 20:47:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,256

Re: [SOLVED] dGPU is used instead of iGPU by default

Online

#3 2023-05-20 20:56:12

BackToUSSR
Member
Registered: 2023-05-17
Posts: 26

Re: [SOLVED] dGPU is used instead of iGPU by default

seth wrote:

Xorg.0.log

Offline

#4 2023-05-20 21:01:43

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,256

Re: [SOLVED] dGPU is used instead of iGPU by default

[     7.855] (II) xfree86: Adding drm device (/dev/dri/card0)
[     7.855] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/drm/card0
[     7.855] (II) xfree86: Adding drm device (/dev/dri/card1)
[     7.855] (II) Platform probe for /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/drm/card1
[     7.857] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[     7.858] (--) PCI:*(1@0:0:0) 10de:2520:1043:1e8c rev 161, Mem @ 0xfb000000/16777216, 0x7c00000000/8589934592, 0x7e00000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[     7.858] (--) PCI: (5@0:0:0) 1002:1681:1043:1e8c rev 200, Mem @ 0x7e10000000/268435456, 0x7e20000000/2097152, 0xfc500000/524288, I/O @ 0x0000d000/256

It's not an X11 config thing, the nvidia GPU runs as card0

Remove the kms hook and add i915 to the MODULES in your mkinitcpio.conf, rebuild the initramfs => consequence?

Online

#5 2023-05-20 21:16:58

BackToUSSR
Member
Registered: 2023-05-17
Posts: 26

Re: [SOLVED] dGPU is used instead of iGPU by default

seth wrote:

Remove the kms hook

I'm sorry, but I didn't add it manually, as far as I remember, how to do it? I use nvidia-dkms, and i only added changes to files: /etc/mkinitcpio.conf: MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) and /etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="nvidia_drm.modeset=1 loglevel=3 quiet"

We are talking about the line "kms" in the HOOK= section in mkinitcpio.conf?

Last edited by BackToUSSR (2023-05-20 21:17:43)

Offline

#6 2023-05-20 21:19:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,256

Re: [SOLVED] dGPU is used instead of iGPU by default

We are talking about the line "kms" in the HOOK= Section in mkinitcpio.conf?

Yes.
kms is there by default, it adds the GPU modules.
Since you're adding them manually anyway, yo ucan just as much remove the hook, but ensure the intel module (i915) is there to hopefully restore the proper GPU order.

Otherwise we'll have to tell the X11 server which chip to prefer.

Online

#7 2023-05-20 21:51:26

BackToUSSR
Member
Registered: 2023-05-17
Posts: 26

Re: [SOLVED] dGPU is used instead of iGPU by default

seth wrote:

=> consequence?

I apologize for my carelessness. The problem was related to the fact that in the Armory Crate application (Windows). There, the maximum performance mode was selected, (only dGPU). After choosing standard mode, Arch started using the default iGPU and dGPU only when summoned via prime-run. I returned kms to hooks, and removed the i915 module.

Offline

#8 2023-05-20 21:53:07

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,256

Re: [SOLVED] dGPU is used instead of iGPU by default

Also see the 3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Online

#9 2023-05-20 21:58:07

BackToUSSR
Member
Registered: 2023-05-17
Posts: 26

Re: [SOLVED] dGPU is used instead of iGPU by default

seth wrote:

Also see the 3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

This was done at the preparatory stage, before installation, Thank you!

Offline

#10 2023-07-21 18:57:31

below-avg
Member
Registered: 2023-07-20
Posts: 2

Re: [SOLVED] dGPU is used instead of iGPU by default

Hey there OP, Is there a way to use iGPU for the internal monitor and use the dGPU for the external monitor? I'm having troubles with my dual-monitor setup. I can only use one monitor, either internal with AMD, or the External with Nvidia. And if I delete xorg.conf.d and restart sddm then only I can use the laptop's monitor. Help

Offline

Board footer

Powered by FluxBB