You are not logged in.
Hi, i have freshly installed arch linux with X11
I have a Lenovo Laptop with 2 GPUs:
lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)
I added these two lines to the xinitrc all at the top:
xrandr --setprovideroutputsource modesetting NVIDIA-GO
xrandr --output eDP-1 --auto --primary
And i added 10-nvidia-drm-outputclass.conf in the xorg.conf.d:
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection
i get nvidia outputs like from nvidia-smi and when i start games from steam i can see in nvidia-settings that it gets hotter and requires more power.
But when i start Minecraft this isnt the case and when i press F3 i can see it uses the intel gpu.
here the intel driver:
glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
Offline
Run minecraft with prime-run from the nvidia-prime package https://wiki.archlinux.org/title/PRIME# … er_offload
Offline