Background
- Nvidia live iso Cassi Nova Install
- nvidia 980ti pass through
- qemu/kvm through virt-manager
Problem
Apps use the Virtio GPU to render instead of the nvidia gpu by default. I can use the nvidia gpu if I install nvidia-prime
and then launch apps with prime-run
. Is there a way to default all apps into using the gpu without appending prime-run
?
Things I Tried
- run
nvidia-xconfig
, created a file at/etc/X11/xorg.conf
, system hangs at something along the lines of[ OK ] Started Hostname Service
. - use the
prime-run
script mentioned above, but I am not trying to save power on the desktop machine, therefore I want everything offloaded to gpu by default.
Outputs
nvidia-smi
output without the xorg.conf
:
Fri Mar 17 20:08:22 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 ... Off | 00000000:05:00.0 Off | N/A |
| 0% 48C P8 22W / 275W | 6MiB / 6144MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 533 G /usr/lib/Xorg 3MiB |
+-----------------------------------------------------------------------------+
xorg.conf
that impeded x server from starting:
prime-run glxgears
yields an entry in nvtop
and nets 5000fps versus running glxgears alone
, which yields 2000fps.