You are not logged in.
Hello comunity!
I have a laptop with both Intel and nvidia GPUs. I used this guide to set up PRIME render offload with PCI-Express Runtime D3 (RTD3) Power Management.
My laptop has an indicator in the power button that shows white or orange signal when Intel or Nvidia GPU is in use. So everything seems good.
System uses Intel GPU:
glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)And when no apps running the power button indicates Intel GPU.
I can run apps with Nvidia GPU and Davinci Resolve works well:
prime-run glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NVIDIA GeForce GTX 1650 with Max-Q Design/PCIe/SSE2But every time I run Google Chrome or some other apps without 'prime-run' the power button indicates orange. And battery drains very quickly. It is a laptop and I am pretty sure that I need mobility.
Some other apps: Obsidian, Wine installed windows-app
When I run Davinci Resolve without 'prime-run' it starts but does not work properly.
It seems that Power Management works well but my system still using nvidia gpu directly even when I didn't ask.
Please help me identify where the problem is.
The output of nvidia-smi
Thu Dec 22 22:50:07 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.60.11 Driver Version: 525.60.11 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:02:00.0 Off | N/A |
| N/A 51C P8 2W / N/A | 148MiB / 4096MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 865 G /usr/lib/Xorg 44MiB |
| 0 N/A N/A 7071 C+G ...890533080050398342,131072 102MiB |
+-----------------------------------------------------------------------------+~xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associated providers: 0 name:modesetting
Provider 1: id: 0x23e cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0Last edited by zetaooreticuli (2022-12-22 20:37:13)
Offline
General rule of thumb, anything Windows/Proton/Vulkan will actively seek out and use the discrete GPU. DXVK has a flag to set which GPU it should use but to be absolutely certain you must adjust which driver is actually getting listed on Vulkan queries via the VULKAN_ICD_FILENAMES variable, see: https://bbs.archlinux.org/viewtopic.php?id=280222
Not entirely sure what the deal with chrome is, did you set up HW accel and/or the vulkan rendering backend?
Offline