You are not logged in.
Having two GPUs can give one a really bad headache.
Here's what I have:
lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-S UHD Graphics (rev 04)
DeviceName: Onboard - Video
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 13cd
--
01:00.0 VGA compatible controller: NVIDIA Corporation GN21-X11 [GeForce RTX 4090 Laptop GPU] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 13cd
Kernel driver in use: nvidia
glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel (0x8086)
Device: Mesa Intel(R) Graphics (RPL-S) (0xa788)
Version: 22.3.6
Accelerated: yes
Video memory: 63999MB
Unified memory: yes
Preferred profile: core (0x1)
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Graphics (RPL-S)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
I think all the necessary software is there, nvidia-settings shows all the information regarding dGPU.
pacman -Qs nvidia
local/egl-wayland 2:1.1.11-3
EGLStream-based Wayland external platform
local/lib32-nvidia-utils 525.89.02-1
NVIDIA drivers utilities (32-bit)
local/libva-nvidia-driver 0.0.8-1
VA-API implementation that uses NVDEC as a backend
local/libvdpau 1.5-1
Nvidia VDPAU library
local/libxnvctrl 525.89.02-1
NVIDIA NV-CONTROL X extension
local/nvidia 525.89.02-7
NVIDIA drivers for linux
local/nvidia-prime-rtd3pm 1.0-2
Configure your discrete NVIDIA GPU to power down when not in use.
local/nvidia-settings 525.89.02-1
Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 525.89.02-2
NVIDIA drivers utilities
local/nvtop 3.0.1-1
GPUs process monitoring for AMD, Intel and NVIDIA
And what I want, is to have a working PRIME profile in nVidia settings. This is a great problem, as Steam detects only my iGPU, so all the games cannot utilize my discrete nVidia GPU. According to ArchWiki there is no magical config file, that should be additionally edited, AFAIK.
Help
Last edited by Zibi1981 (2023-03-16 11:30:47)
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
install the nvidia-prime package which gives you the prime-run command you can run applications with, use it. Also generally speaking what steam itself detects matters little, DXVK and other proton Vulkan implementations will automatically make use of the nvidia card.
Last edited by V1del (2023-03-10 16:02:04)
Offline
Oh I wish it was true! Unfortunately tried this already
$ export_LANG=C prime-run glxinfo | grep "OpenGL renderer"
bash: prime-run: nie znaleziono polecenia
...command not found.
Besides when I run a game, nVidia shows very low percentage of utilization.
P.S. OK, I was missing the package nvidia-prime, althought I'm quite sure it was written somewhere that nvidia-utils contains it. Now the command prime-run runs from the console, but cannot make Steam to run via prime-run via editing KMenu entry.
Last edited by Zibi1981 (2023-03-10 16:08:58)
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
You did not install the nvidia-prime package... nvidia-prime-rtd3pm only contains (... unnecessary but not detrimental for your GPU) config files, not the command.
Which games? Things that still use OGL you will need to run with prime-run. Also this is a monster of a card unless you play an actually taxing game this could well be normal, to know whether a process is actively using the nvidia card check nvidia-smi
Last edited by V1del (2023-03-10 16:08:08)
Offline
Your advices are priceless! Thank you so much!
nvidia-smi
Fri Mar 10 17:09:45 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.89.02 Driver Version: 525.89.02 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A |
| N/A 42C P8 3W / 150W | 340MiB / 16376MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 941 G /usr/lib/Xorg 73MiB |
| 0 N/A N/A 27972 G ...e/Steam/ubuntu12_32/steam 29MiB |
| 0 N/A N/A 28079 G ...ef_log.txt --shared-files 234MiB |
+-----------------------------------------------------------------------------+
Any help with the KMenu entry?
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
Right click on the launcher -> edit -> add prime-run in front of the actual command
Offline
It didn't work that way - I had to put the prime-run command higher, in the "environmental variables" (at least that's what this command line is called in Polish).
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
Reopening...
Althought while running Tropico 6 via Steam system states, that nVidia card is running the game (but still 0% GPU util???)
$ nvidia-smi
Sat Mar 11 19:54:43 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.89.02 Driver Version: 525.89.02 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A |
| N/A 47C P8 3W / 150W | 144MiB / 16376MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 955 G /usr/lib/Xorg 56MiB |
| 0 N/A N/A 6815 G ...e/Steam/ubuntu12_32/steam 37MiB |
| 0 N/A N/A 7000 G ...ef_log.txt --shared-files 42MiB |
| 0 N/A N/A 230775 G ...x/Tropico6-Linux-Shipping 5MiB |
+-----------------------------------------------------------------------------+
The game itself is really laggy on low settings, and in the settings I can see, that it utilizes Intel iGPU and I cannot change that from the inside the game.
EDIT
When I used MUX and switched Intel's iGPU off and then booted into Arch
$ nvidia-smi
Sun Mar 12 09:41:18 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.89.02 Driver Version: 525.89.02 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 On | N/A |
| N/A 39C P8 8W / 150W | 1725MiB / 16376MiB | 14% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 889 G /usr/lib/Xorg 345MiB |
| 0 N/A N/A 1353 G /usr/bin/kwalletd5 4MiB |
| 0 N/A N/A 1641 G /usr/bin/ksmserver 4MiB |
| 0 N/A N/A 1643 G /usr/bin/kded5 4MiB |
| 0 N/A N/A 1644 G /usr/bin/kwin_x11 722MiB |
| 0 N/A N/A 1815 G /usr/lib/kf5/klauncher 4MiB |
| 0 N/A N/A 1933 G /usr/bin/plasmashell 105MiB |
| 0 N/A N/A 1937 G /usr/bin/kwalletmanager5 4MiB |
| 0 N/A N/A 2008 G ...de-authentication-agent-1 4MiB |
| 0 N/A N/A 2010 G ...ib/xdg-desktop-portal-kde 4MiB |
| 0 N/A N/A 2173 G /usr/lib/kdeconnectd 4MiB |
| 0 N/A N/A 2188 G /usr/bin/kaccess 4MiB |
| 0 N/A N/A 2194 G /usr/lib/DiscoverNotifier 4MiB |
| 0 N/A N/A 2196 G /usr/bin/kalendarac 4MiB |
| 0 N/A N/A 2202 G /usr/bin/konqueror 12MiB |
| 0 N/A N/A 2204 G /usr/bin/kmix 4MiB |
| 0 N/A N/A 2293 G /usr/bin/akonadi_control 4MiB |
| 0 N/A N/A 2477 G ...akonadi_akonotes_resource 4MiB |
| 0 N/A N/A 2478 G ...akonadi_archivemail_agent 4MiB |
| 0 N/A N/A 2479 G ...konadi_birthdays_resource 4MiB |
| 0 N/A N/A 2480 G ...akonadi_contacts_resource 4MiB |
| 0 N/A N/A 2481 G ...di_followupreminder_agent 4MiB |
| 0 N/A N/A 2482 G ...bin/akonadi_ical_resource 4MiB |
| 0 N/A N/A 2491 G ...in/akonadi_indexing_agent 4MiB |
| 0 N/A N/A 2493 G .../akonadi_maildir_resource 4MiB |
| 0 N/A N/A 2495 G ...nadi_maildispatcher_agent 4MiB |
| 0 N/A N/A 2496 G .../akonadi_mailfilter_agent 4MiB |
| 0 N/A N/A 2497 G ...n/akonadi_mailmerge_agent 4MiB |
| 0 N/A N/A 2498 G ...n/akonadi_migration_agent 4MiB |
| 0 N/A N/A 2499 G ...adi_newmailnotifier_agent 4MiB |
| 0 N/A N/A 2500 G /usr/bin/akonadi_notes_agent 4MiB |
| 0 N/A N/A 2502 G ...n/akonadi_sendlater_agent 4MiB |
| 0 N/A N/A 2504 G ...nadi_unifiedmailbox_agent 4MiB |
| 0 N/A N/A 3423 G /usr/bin/kdocker 4MiB |
| 0 N/A N/A 3714 G /usr/bin/konsole 4MiB |
| 0 N/A N/A 16527 G ...RendererForSitePerProcess 172MiB |
| 0 N/A N/A 21803 C+G ...eoDecoderForPepper,Vulkan 215MiB |
| 0 N/A N/A 22000 G ...-browser-integration-host 4MiB |
+-----------------------------------------------------------------------------+
Also nvidia-settings shows much more info and gives more options. It's not the solution to my problem though.
Last edited by Zibi1981 (2023-03-12 08:45:30)
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
The solution to my problem was installing Steam via flatpak - now prime-run for games runs as it should be. Don't have any idea why it wasn't via Steam installed from Arch repo.
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline