I try to use NVIDIA PRIME on my desktop PC (Intel Core i7 6700K Intel HD 520 + Nvidia GTX 970, motherboard ASUS Z170 Pro Gaming). Manjaro KDE 20.1 fresh installation.
As you can see, video-hybrid-intel-nvidia-450xx-prime is not available when listing configurations.
My problem now is that my system is only using Nvidia graphics card, instead of PRIME offloading:
$ glxinfo | grep "OpenGL renderer"
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
$ prime-run glxinfo | grep "OpenGL renderer"
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
$ nvidia-smi
Mon Sep 21 09:20:26 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.66 Driver Version: 450.66 CUDA Version: 11.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 GeForce GTX 970 Off | 00000000:01:00.0 On | N/A |
| 0% 44C P0 46W / 200W | 381MiB / 4034MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 767 G /usr/lib/Xorg 133MiB |
| 0 N/A N/A 1010 G /usr/bin/kwin_x11 41MiB |
| 0 N/A N/A 1061 G /usr/bin/plasmashell 41MiB |
| 0 N/A N/A 1285 G ...AAAAAAAAA= --shared-files 156MiB |
+-----------------------------------------------------------------------------+
As you can see, in both cases, the renderer string shows Nvidia.
My question is, is it possible to configure my desktop to use PRIME offload? If so, how?
Thanks in advice.
Iām pretty sure, yes, but if want to use display outputs of the nvidia gpu, then I do not recommend it. Get rid of the mhwd created Xorg configuration, and try whatās here.
My mhwd-created xorg files are empty.
Why you do not recommend it? My goal is to have working video hardware acceleration in chromium, but I canāt make it work with NVIDIA drivers onā¦
The main issues I have, and seemingly many others is:
in reverse-prime mode the external + internal screens are treated as one large virtual screen with the smaller screen showing only a portion of the virtual screen.
laggy external display
above a certain res threshold the ext-display looks like a scrambled CRT (v-sync invalid on CRT style).
and
No change with 450.57
External as single display is extremely laggy
Same virtual desktop issue as above post with photos
Virtual desktop means that tiling windows left/right spans both screens
Native res on external of 3440x1440 is warped like a CRT with incorrect v-sync
@pobrn ā¦ I am not sure OP actually wants reverse-prime ā¦ I think they just want āprimeā to be installed at all. Their current āproblemā is that the prime profile is not offered and currently both āmodesettingā and ānvidiaā are in use in tandem.
Obliterating mhwd/xorg and manually creating files outside of the package manager, etc etc ā¦ is probably not required (or advisable).
If the Xorg server runs on the nvidia gpu (which is the case here), then PRIME render offload doesnāt really make any sense (in this case, at least). In my interpretation s/he wantās to run the Xorg server on the intel gpu to be able to to use VA-API hardware acceleration in Chromium, and render games/etc. on the the nvidia gpu with GPU with PRIME render offload.
In that case, if s/he wants to use the display outputs of the nvidia gpu, then āreverse PRIMEā (nvidia gpu as output sink) is needed.
Yes, I (he) want to run X11 on Intel GPU, but I want to have possibility to use Nvidia graphics with Steam or with virtual machine - so as I understand I need PRIME, not Reverse PRIME. I have installed properly hybrid drivers, but X11 still uses NVIDIA instead of Mesa
$ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-450xx-prime 2019.10.25 false PCI
video-modesetting 2020.01.13 true PCI
Warning: No installed USB configs!
I use PRIME on my laptop and itās working fine. I want the same thing on my desktop PC.
In that case youāll need āreverse PRIMEā. As Iāve explained to someone else, āreverse PRIMEā is an inadequate name in my opinion. Furthermore, reverse PRIME and PRIME render offload are not mutually exclusive.
If you want intel by default, and nvidia when you need it ā¦ thats āregularā prime.
With the above profile (video-hybrid-intel-nvidia-450xx-prime) ā¦ it should work like:
Cool, I thought these are mutually exclusive. The name suggests that.
Can you help me with xorg.conf file?
$ sudo nvidia-xconfig --prime
WARNING: Unable to locate/open X configuration file.
X Configuration file set up for PRIME. Please run "xrandr --setprovideroutputsource
modesetting NVIDIA-0" and "xrandr --auto" to enable. See the README for more details.
Option "AllowEmptyInitialConfiguration" "True" added to Screen "Screen0".
New X configuration file written to '/etc/X11/xorg.conf'
The config you just generated is actually the opposite of what you want. You want the config I linked. Please backup 90-mhwd.conf and delete it from /etc/X11/xorg.conf.d/, also delete /etc/X11/xorg.conf.
And when you try it, make sure to connect a display to an output of the intel gpu.
Iām reading once again all posts. This is exactly what I want, but I do not know what to do right nowā¦ I do not understand structure of xorg files, what are screens and monitors. Do I need to give BusID for GPUs? If not, how xorg determines which GPU is which one. Iām very confusedā¦
Of course, fill in the bus id for the intel device. Run lspci | grep -i "vga.*intel" | cut -d ' ' -f 1, if the output is, for example, 00:02.0, then youāll need to write