You are not logged in.

#1 2022-12-27 20:39:08

mrzen
Member
Registered: 2022-12-27
Posts: 8

[SOLVED] Xorg uses NVIDIA GPU when it shouldn't

Hello everyone! I have one problem is due to which I basically can't do seamless dGPU passthrough (NVIDIA) to the guest VM when it is enabled and on host when it isn't.

The problem is as I said is in that I can't detach my dGPU.

This command hangs up

virsh nodedev-detach pci_0000_01_00_0

and this throws "Module nvidia is in use".

modprobe -r nvidia-drm nvidia-modeset nvidia-uvm nvidia

"nvidia-smi" says "No running processes found", Command "lsof | grep nvidia" said that Xorg is using NVIDIA's libraries
Here's it's output

Xorg      3823                mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823                mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823                mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823                mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823                mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823                mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823                mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3833 Xorg:disk mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3833 Xorg:disk mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3833 Xorg:disk mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3833 Xorg:disk mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3833 Xorg:disk mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3833 Xorg:disk mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3833 Xorg:disk mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3834 Xorg:sh0  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3834 Xorg:sh0  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3834 Xorg:sh0  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3834 Xorg:sh0  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3834 Xorg:sh0  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3834 Xorg:sh0  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3834 Xorg:sh0  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3835 Xorg:sh1  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3835 Xorg:sh1  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3835 Xorg:sh1  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3835 Xorg:sh1  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3835 Xorg:sh1  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3835 Xorg:sh1  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3835 Xorg:sh1  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3836 Xorg:sh2  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3836 Xorg:sh2  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3836 Xorg:sh2  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3836 Xorg:sh2  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3836 Xorg:sh2  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3836 Xorg:sh2  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3836 Xorg:sh2  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3837 Xorg:sh3  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3837 Xorg:sh3  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3837 Xorg:sh3  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3837 Xorg:sh3  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3837 Xorg:sh3  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3837 Xorg:sh3  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3837 Xorg:sh3  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3838 Xorg:sh4  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3838 Xorg:sh4  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3838 Xorg:sh4  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3838 Xorg:sh4  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3838 Xorg:sh4  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3838 Xorg:sh4  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3838 Xorg:sh4  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3839 Xorg:sh5  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3839 Xorg:sh5  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3839 Xorg:sh5  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3839 Xorg:sh5  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3839 Xorg:sh5  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3839 Xorg:sh5  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3839 Xorg:sh5  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3840 Xorg:sh6  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3840 Xorg:sh6  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3840 Xorg:sh6  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3840 Xorg:sh6  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3840 Xorg:sh6  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3840 Xorg:sh6  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3840 Xorg:sh6  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3841 Xorg:sh7  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3841 Xorg:sh7  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3841 Xorg:sh7  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3841 Xorg:sh7  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3841 Xorg:sh7  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3841 Xorg:sh7  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3841 Xorg:sh7  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3842 Xorg:sh8  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3842 Xorg:sh8  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3842 Xorg:sh8  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3842 Xorg:sh8  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3842 Xorg:sh8  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3842 Xorg:sh8  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3842 Xorg:sh8  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3843 Xorg:gdrv mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3843 Xorg:gdrv mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3843 Xorg:gdrv mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3843 Xorg:gdrv mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3843 Xorg:gdrv mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3843 Xorg:gdrv mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3843 Xorg:gdrv mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3844 Xorg:disk mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3844 Xorg:disk mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3844 Xorg:disk mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3844 Xorg:disk mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3844 Xorg:disk mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3844 Xorg:disk mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3844 Xorg:disk mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3845 Xorg:sh0  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3845 Xorg:sh0  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3845 Xorg:sh0  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3845 Xorg:sh0  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3845 Xorg:sh0  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3845 Xorg:sh0  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3845 Xorg:sh0  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3846 Xorg:sh1  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3846 Xorg:sh1  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3846 Xorg:sh1  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3846 Xorg:sh1  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3846 Xorg:sh1  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3846 Xorg:sh1  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3846 Xorg:sh1  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3847 Xorg:sh2  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3847 Xorg:sh2  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3847 Xorg:sh2  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3847 Xorg:sh2  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3847 Xorg:sh2  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3847 Xorg:sh2  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3847 Xorg:sh2  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3848 Xorg:sh3  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3848 Xorg:sh3  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3848 Xorg:sh3  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3848 Xorg:sh3  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3848 Xorg:sh3  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3848 Xorg:sh3  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3848 Xorg:sh3  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3849 Xorg:sh4  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3849 Xorg:sh4  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3849 Xorg:sh4  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3849 Xorg:sh4  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3849 Xorg:sh4  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3849 Xorg:sh4  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3849 Xorg:sh4  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3850 Xorg:sh5  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3850 Xorg:sh5  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3850 Xorg:sh5  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3850 Xorg:sh5  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3850 Xorg:sh5  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3850 Xorg:sh5  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3850 Xorg:sh5  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3851 Xorg:sh6  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3851 Xorg:sh6  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3851 Xorg:sh6  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3851 Xorg:sh6  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3851 Xorg:sh6  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3851 Xorg:sh6  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3851 Xorg:sh6  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3852 Xorg:sh7  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3852 Xorg:sh7  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3852 Xorg:sh7  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3852 Xorg:sh7  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3852 Xorg:sh7  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3852 Xorg:sh7  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3852 Xorg:sh7  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3853 Xorg:sh8  mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3853 Xorg:sh8  mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3853 Xorg:sh8  mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3853 Xorg:sh8  mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3853 Xorg:sh8  mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3853 Xorg:sh8  mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3853 Xorg:sh8  mrzen   21u      CHR              195,0       0t0        662 /dev/nvidia0
Xorg      3823 3856 InputThre mrzen  mem       REG                8,2  42042552     312477 /usr/lib/libnvidia-eglcore.so.525.60.11
Xorg      3823 3856 InputThre mrzen  mem       REG                8,2     22656     312475 /usr/lib/libnvidia-egl-gbm.so.1.1.0
Xorg      3823 3856 InputThre mrzen  mem       REG                8,2    648136     312487 /usr/lib/libnvidia-glsi.so.525.60.11
Xorg      3823 3856 InputThre mrzen  mem       REG                8,2   1333232     312451 /usr/lib/libEGL_nvidia.so.525.60.11
Xorg      3823 3856 InputThre mrzen   19u      CHR            195,255       0t0        661 /dev/nvidiactl
Xorg      3823 3856 InputThre mrzen   20u      CHR              195,0       0t0        662 /dev/nvidia0

So what's the problem? I will be glad for any activity smile

Last edited by mrzen (2023-01-03 17:13:08)

Offline

#2 2022-12-27 21:02:03

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

If you run X11 in the default prime configuration, the GPU is available and thus claimed.

If you then want to use the server w/o the nvidia GPU you'll have to
1. restart it
2. with an intel-only config

It's somewhat a more or less rare good usecase for optimus-mananger.

Offline

#3 2022-12-28 08:38:27

mrzen
Member
Registered: 2022-12-27
Posts: 8

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

Sorry for late responce tongue

seth wrote:

If you then want to use the server w/o the nvidia GPU you'll have to
1. restart it
2. with an intel-only config

Already tried to put "Ignore" option to nvidia screen and nvidia itself like this

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        Option "Ignore"
EndSection

Section "Screen"
        Identifier "nvidiaScreen"
        Device "nvidia"
        Monitor "nvidiaMonitor"
        Option "Ignore"
        SubSection "Display"
        EndSubSection
EndSection

.. There's also a monitor but you got the idea

but that didn't help

seth wrote:

It's somewhat a more or less rare good usecase for optimus-mananger.

I was looking at that option, but seems like it hasn't been updated in almost a year and I was just wondering if it works now? If so, maybe I should try it? (I'm currently using PRIME)

Last edited by mrzen (2022-12-28 08:46:34)

Offline

#4 2022-12-28 09:08:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,661

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

The simplest is to have a device section that only references the intel card. Optimus-manager in integrated mode will set that up, to do it manually just do a xorg.conf of

Section "Device"
  Identifier "iGPUOnly"
  BusID "PCI:0:2:0" #Double check xorg log and lspci, this is the token that actually identifies the device and this must match with the PCI slot of the iGPU
  Driver "modesetting"
EndSection

without any other sections this will logically disable device detection for graphics devices and only use what you specify explicitly.

Last edited by V1del (2022-12-28 09:10:45)

Offline

#5 2022-12-30 18:05:01

mrzen
Member
Registered: 2022-12-27
Posts: 8

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

I apologize for the long absence, for some time I did not have physical access to the computer.

So, I decided to install optimus-manager, but the situation has not changed. I can run programs via prime-run (with nvidia-prime) even in integrated mode, which is not normal. I have installed optimus-manager, optimus-manager-qt5 and gdm-prime

Any ideas?

I will change the topic title and the initial post as the problem has no connection with Wayland anymore. As it turned out, Wayland was NOT disabled from the GDM configuration, so I did that and now even Xorg doesn't use NVIDIA's Wayland libraries (which was really weird)

Last edited by mrzen (2022-12-30 18:12:33)

Offline

#6 2022-12-30 20:28:51

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

Any ideas?

Please post an xorg log.

Offline

#7 2023-01-01 17:50:12

mrzen
Member
Registered: 2022-12-27
Posts: 8

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

seth wrote:

Any ideas?

Please post an xorg log.

[    33.767] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[    33.767] _XSERVTransMakeAllCOTSServerListeners: server already running
[    33.767] (--) Log file renamed from "/home/mrzen/.local/share/xorg/Xorg.pid-1028.log" to "/home/mrzen/.local/share/xorg/Xorg.1.log"
[    33.767] 
X.Org X Server 1.21.1.6
X Protocol Version 11, Revision 0
[    33.767] Current Operating System: Linux mrpc 6.1.1-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 21 Dec 2022 22:27:59 +0000 x86_64
[    33.767] Kernel command line: initrd=\intel-ucode.img initrd=\booster-linux-zen.img root=PARTUUID=5d27aa7e-8a7a-4f6b-8e4d-c791e636a1ca zswap.enabled=0 rw intel_pstate=no_hwp rootfstype=ext4 i915.modeset=1 intel_iommu=on nvidia-drm.modeset=1 acpi_osi=! acpi_osi="Windows 2009" quiet splash
[    33.767]  
[    33.767] Current version of pixman: 0.42.2
[    33.767] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    33.767] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    33.767] (==) Log file: "/home/mrzen/.local/share/xorg/Xorg.1.log", Time: Sun Jan  1 19:48:36 2023
[    33.767] (==) Using config file: "/etc/X11/xorg.conf"
[    33.767] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    33.767] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    33.767] (==) ServerLayout "noIntel"
[    33.767] (**) |-->Screen "intelScreen" (0)
[    33.767] (**) |   |-->Monitor "<default monitor>"
[    33.768] (**) |   |-->Device "intel"
[    33.768] (**) |   |-->GPUDevice "integrated"
[    33.768] (==) No monitor specified for screen "intelScreen".
	Using a default monitor configuration.
[    33.768] (==) Automatically adding devices
[    33.768] (==) Automatically enabling devices
[    33.768] (==) Automatically adding GPU devices
[    33.768] (==) Automatically binding GPU devices
[    33.768] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    33.768] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    33.768] 	Entry deleted from font path.
[    33.768] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[    33.768] 	Entry deleted from font path.
[    33.768] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[    33.768] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    33.768] 	Entry deleted from font path.
[    33.768] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    33.768] 	Entry deleted from font path.
[    33.768] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    33.768] 	Entry deleted from font path.
[    33.768] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    33.768] 	Entry deleted from font path.
[    33.768] (==) FontPath set to:
	
[    33.768] (==) ModulePath set to "/usr/lib/xorg/modules"
[    33.768] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    33.768] (II) Module ABI versions:
[    33.768] 	X.Org ANSI C Emulation: 0.4
[    33.768] 	X.Org Video Driver: 25.2
[    33.768] 	X.Org XInput driver : 24.4
[    33.768] 	X.Org Server Extension : 10.0
[    33.768] (++) using VT number 2

[    33.769] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[    33.770] (II) xfree86: Adding drm device (/dev/dri/card0)
[    33.770] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[    33.770] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 15 paused 0
[    33.772] (--) PCI: (0@0:2:0) 8086:3e92:1462:7b28 rev 0, Mem @ 0xa3000000/16777216, 0x80000000/268435456, I/O @ 0x00004000/64
[    33.772] (--) PCI:*(1@0:0:0) 10de:1f08:1462:3752 rev 161, Mem @ 0xa4000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/131072
[    33.772] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    33.772] (II) LoadModule: "glx"
[    33.772] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    33.773] (II) Module glx: vendor="X.Org Foundation"
[    33.773] 	compiled for 1.21.1.6, module version = 1.0.0
[    33.773] 	ABI class: X.Org Server Extension, version 10.0
[    33.773] (II) LoadModule: "modesetting"
[    33.773] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    33.774] (II) Module modesetting: vendor="X.Org Foundation"
[    33.774] 	compiled for 1.21.1.6, module version = 1.21.1
[    33.774] 	Module class: X.Org Video Driver
[    33.774] 	ABI class: X.Org Video Driver, version 25.2
[    33.774] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    33.774] (II) modeset(0): using drv /dev/dri/card0
[    33.774] (WW) Falling back to old probe method for modesetting
[    33.774] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    33.774] (II) modeset(0): Creating default Display subsection in Screen section
	"intelScreen" for depth/fbbpp 24/32
[    33.774] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    33.774] (==) modeset(0): RGB weight 888
[    33.774] (==) modeset(0): Default visual is TrueColor
[    33.774] (II) Loading sub module "glamoregl"
[    33.774] (II) LoadModule: "glamoregl"
[    33.774] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    33.776] (II) Module glamoregl: vendor="X.Org Foundation"
[    33.776] 	compiled for 1.21.1.6, module version = 1.0.1
[    33.776] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    33.805] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) UHD Graphics 630 (CFL GT2)
[    33.805] (II) modeset(0): glamor initialized
[    33.805] (==) modeset(0): VariableRefresh: disabled
[    33.805] (==) modeset(0): AsyncFlipSecondaries: disabled
[    33.833] (II) modeset(0): Output HDMI-1 has no monitor section
[    33.843] (II) modeset(0): Output HDMI-2 has no monitor section
[    33.843] (II) modeset(0): Output DP-1 has no monitor section
[    33.853] (II) modeset(0): Output HDMI-3 has no monitor section
[    33.880] (II) modeset(0): EDID for output HDMI-1
[    33.880] (II) modeset(0): Manufacturer: SAM  Model: d2c  Serial#: 809653809
[    33.880] (II) modeset(0): Year: 2019  Week: 12
[    33.880] (II) modeset(0): EDID Version: 1.3
[    33.880] (II) modeset(0): Digital Display Input
[    33.880] (II) modeset(0): Max Image Size [cm]: horiz.: 52  vert.: 29
[    33.880] (II) modeset(0): Gamma: 2.20
[    33.880] (II) modeset(0): DPMS capabilities: Off
[    33.880] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    33.880] (II) modeset(0): First detailed timing is preferred mode
[    33.880] (II) modeset(0): redX: 0.646 redY: 0.337   greenX: 0.328 greenY: 0.615
[    33.880] (II) modeset(0): blueX: 0.146 blueY: 0.056   whiteX: 0.313 whiteY: 0.329
[    33.880] (II) modeset(0): Supported established timings:
[    33.880] (II) modeset(0): 720x400@70Hz
[    33.880] (II) modeset(0): 640x480@60Hz
[    33.880] (II) modeset(0): 640x480@67Hz
[    33.880] (II) modeset(0): 640x480@72Hz
[    33.880] (II) modeset(0): 800x600@56Hz
[    33.880] (II) modeset(0): 800x600@60Hz
[    33.880] (II) modeset(0): 800x600@72Hz
[    33.880] (II) modeset(0): 1024x768@60Hz
[    33.880] (II) modeset(0): 1024x768@70Hz
[    33.880] (II) modeset(0): Manufacturer's mask: 0
[    33.880] (II) modeset(0): Supported standard timings:
[    33.880] (II) modeset(0): #0: hsize: 1680  vsize 1050  refresh: 60  vid: 179
[    33.880] (II) modeset(0): #1: hsize: 1280  vsize 720  refresh: 60  vid: 49281
[    33.880] (II) modeset(0): #2: hsize: 1280  vsize 800  refresh: 60  vid: 129
[    33.880] (II) modeset(0): #3: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[    33.880] (II) modeset(0): #4: hsize: 1440  vsize 900  refresh: 60  vid: 149
[    33.880] (II) modeset(0): #5: hsize: 1600  vsize 900  refresh: 60  vid: 49321
[    33.880] (II) modeset(0): Supported detailed timing:
[    33.880] (II) modeset(0): clock: 148.5 MHz   Image Size:  521 x 293 mm
[    33.880] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    33.880] (II) modeset(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    33.880] (II) modeset(0): Ranges: V min: 50 V max: 72 Hz, H min: 30 H max: 81 kHz, PixClock max 175 MHz
[    33.880] (II) modeset(0): Monitor name: C24F390
[    33.880] (II) modeset(0): Serial No: HLLM300340
[    33.880] (II) modeset(0): Supported detailed timing:
[    33.880] (II) modeset(0): clock: 74.2 MHz   Image Size:  521 x 293 mm
[    33.880] (II) modeset(0): h_active: 1280  h_sync: 1720  h_sync_end 1760 h_blank_end 1980 h_border: 0
[    33.880] (II) modeset(0): v_active: 720  v_sync: 725  v_sync_end 730 v_blanking: 750 v_border: 0
[    33.880] (II) modeset(0): Supported detailed timing:
[    33.880] (II) modeset(0): clock: 27.0 MHz   Image Size:  521 x 293 mm
[    33.880] (II) modeset(0): h_active: 720  h_sync: 732  h_sync_end 796 h_blank_end 864 h_border: 0
[    33.880] (II) modeset(0): v_active: 576  v_sync: 581  v_sync_end 586 v_blanking: 625 v_border: 0
[    33.880] (II) modeset(0): Supported detailed timing:
[    33.880] (II) modeset(0): clock: 27.0 MHz   Image Size:  521 x 293 mm
[    33.880] (II) modeset(0): h_active: 720  h_sync: 736  h_sync_end 798 h_blank_end 858 h_border: 0
[    33.880] (II) modeset(0): v_active: 480  v_sync: 489  v_sync_end 495 v_blanking: 525 v_border: 0
[    33.880] (II) modeset(0): Number of EDID sections to follow: 1
[    33.880] (II) modeset(0): EDID (in hex):
[    33.880] (II) modeset(0): 	00ffffffffffff004c2d2c0d31564230
[    33.880] (II) modeset(0): 	0c1d010380341d782a5295a556549d25
[    33.880] (II) modeset(0): 	0e5054bb8c00b30081c0810081809500
[    33.880] (II) modeset(0): 	a9c001010101023a801871382d40582c
[    33.881] (II) modeset(0): 	450009252100001e000000fd0032481e
[    33.881] (II) modeset(0): 	5111000a202020202020000000fc0043
[    33.881] (II) modeset(0): 	3234463339300a2020202020000000ff
[    33.881] (II) modeset(0): 	00484c4c4d3330303334300a2020019f
[    33.881] (II) modeset(0): 	02031af14690041f1312032309070783
[    33.881] (II) modeset(0): 	01000066030c00100080011d00bc52d0
[    33.881] (II) modeset(0): 	1e20b828554009252100001e8c0ad090
[    33.881] (II) modeset(0): 	204031200c4055000925210000188c0a
[    33.881] (II) modeset(0): 	d08a20e02d10103e9600092521000018
[    33.881] (II) modeset(0): 	00000000000000000000000000000000
[    33.881] (II) modeset(0): 	00000000000000000000000000000000
[    33.881] (II) modeset(0): 	000000000000000000000000000000c9
[    33.881] (II) modeset(0): Printing probed modes for output HDMI-1
[    33.881] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    33.881] (II) modeset(0): Modeline "1920x1080"x50.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[    33.881] (II) modeset(0): Modeline "1920x1080"x59.9  148.35  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[    33.881] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[    33.881] (II) modeset(0): Modeline "1600x900"x60.0  108.00  1600 1624 1704 1800  900 901 904 1000 +hsync +vsync (60.0 kHz e)
[    33.881] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    33.881] (II) modeset(0): Modeline "1440x900"x59.9   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[    33.881] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
[    33.881] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    33.881] (II) modeset(0): Modeline "1280x720"x50.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
[    33.881] (II) modeset(0): Modeline "1280x720"x59.9   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    33.881] (II) modeset(0): Modeline "1024x768"x70.1   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[    33.881] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    33.881] (II) modeset(0): Modeline "800x600"x72.2   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[    33.881] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    33.881] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    33.881] (II) modeset(0): Modeline "720x576"x50.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[    33.881] (II) modeset(0): Modeline "720x480"x60.0   27.03  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    33.881] (II) modeset(0): Modeline "720x480"x59.9   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    33.881] (II) modeset(0): Modeline "640x480"x72.8   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[    33.881] (II) modeset(0): Modeline "640x480"x66.7   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[    33.881] (II) modeset(0): Modeline "640x480"x60.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    33.881] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    33.881] (II) modeset(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[    33.891] (II) modeset(0): EDID for output HDMI-2
[    33.891] (II) modeset(0): EDID for output DP-1
[    33.900] (II) modeset(0): EDID for output HDMI-3
[    33.900] (II) modeset(0): Output HDMI-1 connected
[    33.900] (II) modeset(0): Output HDMI-2 disconnected
[    33.900] (II) modeset(0): Output DP-1 disconnected
[    33.900] (II) modeset(0): Output HDMI-3 disconnected
[    33.900] (II) modeset(0): Using exact sizes for initial modes
[    33.900] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +0+0
[    33.900] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    33.900] (==) modeset(0): DPI set to (96, 96)
[    33.900] (II) Loading sub module "fb"
[    33.900] (II) LoadModule: "fb"
[    33.900] (II) Module "fb" already built-in
[    33.920] (==) modeset(0): Backing store enabled
[    33.920] (==) modeset(0): Silken mouse enabled
[    34.061] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[    34.061] (==) modeset(0): DPMS enabled
[    34.061] (II) modeset(0): [DRI2] Setup complete
[    34.061] (II) modeset(0): [DRI2]   DRI driver: iris
[    34.061] (II) modeset(0): [DRI2]   VDPAU driver: va_gl
[    34.061] (II) Initializing extension Generic Event Extension
[    34.061] (II) Initializing extension SHAPE
[    34.061] (II) Initializing extension MIT-SHM
[    34.061] (II) Initializing extension XInputExtension
[    34.062] (II) Initializing extension XTEST
[    34.062] (II) Initializing extension BIG-REQUESTS
[    34.062] (II) Initializing extension SYNC
[    34.062] (II) Initializing extension XKEYBOARD
[    34.062] (II) Initializing extension XC-MISC
[    34.062] (II) Initializing extension SECURITY
[    34.062] (II) Initializing extension XFIXES
[    34.062] (II) Initializing extension RENDER
[    34.062] (II) Initializing extension RANDR
[    34.062] (II) Initializing extension COMPOSITE
[    34.063] (II) Initializing extension DAMAGE
[    34.063] (II) Initializing extension MIT-SCREEN-SAVER
[    34.063] (II) Initializing extension DOUBLE-BUFFER
[    34.063] (II) Initializing extension RECORD
[    34.063] (II) Initializing extension DPMS
[    34.063] (II) Initializing extension Present
[    34.063] (II) Initializing extension DRI3
[    34.063] (II) Initializing extension X-Resource
[    34.063] (II) Initializing extension XVideo
[    34.063] (II) Initializing extension XVideo-MotionCompensation
[    34.063] (II) Initializing extension GLX
[    34.068] (II) AIGLX: Loaded and initialized iris
[    34.068] (II) GLX: Initialized DRI2 GL provider for screen 0
[    34.068] (II) Initializing extension XFree86-VidModeExtension
[    34.068] (II) Initializing extension XFree86-DGA
[    34.068] (II) Initializing extension XFree86-DRI
[    34.068] (II) Initializing extension DRI2
[    34.069] (II) modeset(0): Damage tracking initialized
[    34.069] (II) modeset(0): Setting screen physical size to 508 x 285
[    34.100] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[    34.100] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    34.100] (**) Power Button: Applying InputClass "system-keyboard"
[    34.100] (II) LoadModule: "libinput"
[    34.100] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    34.101] (II) Module libinput: vendor="X.Org Foundation"
[    34.101] 	compiled for 1.21.1.3, module version = 1.2.1
[    34.101] 	Module class: X.Org XInput Driver
[    34.101] 	ABI class: X.Org XInput driver, version 24.4
[    34.101] (II) Using input driver 'libinput' for 'Power Button'
[    34.102] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 32 paused 0
[    34.102] (**) Power Button: always reports core events
[    34.102] (**) Option "Device" "/dev/input/event2"
[    34.103] (II) event2  - Power Button: is tagged by udev as: Keyboard
[    34.103] (II) event2  - Power Button: device is a keyboard
[    34.103] (II) event2  - Power Button: device removed
[    34.103] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[    34.103] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    34.103] (**) Option "xkb_model" "pc105+inet"
[    34.103] (**) Option "xkb_layout" "us"
[    34.103] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    34.116] (II) event2  - Power Button: is tagged by udev as: Keyboard
[    34.116] (II) event2  - Power Button: device is a keyboard
[    34.116] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[    34.116] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    34.116] (**) Video Bus: Applying InputClass "system-keyboard"
[    34.116] (II) Using input driver 'libinput' for 'Video Bus'
[    34.117] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 35 paused 0
[    34.117] (**) Video Bus: always reports core events
[    34.117] (**) Option "Device" "/dev/input/event5"
[    34.118] (II) event5  - Video Bus: is tagged by udev as: Keyboard
[    34.118] (II) event5  - Video Bus: device is a keyboard
[    34.118] (II) event5  - Video Bus: device removed
[    34.118] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input5/event5"
[    34.118] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[    34.118] (**) Option "xkb_model" "pc105+inet"
[    34.118] (**) Option "xkb_layout" "us"
[    34.118] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    34.118] (II) event5  - Video Bus: is tagged by udev as: Keyboard
[    34.118] (II) event5  - Video Bus: device is a keyboard
[    34.119] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    34.119] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    34.119] (**) Power Button: Applying InputClass "system-keyboard"
[    34.119] (II) Using input driver 'libinput' for 'Power Button'
[    34.119] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 36 paused 0
[    34.119] (**) Power Button: always reports core events
[    34.119] (**) Option "Device" "/dev/input/event1"
[    34.120] (II) event1  - Power Button: is tagged by udev as: Keyboard
[    34.120] (II) event1  - Power Button: device is a keyboard
[    34.120] (II) event1  - Power Button: device removed
[    34.120] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1"
[    34.120] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[    34.120] (**) Option "xkb_model" "pc105+inet"
[    34.120] (**) Option "xkb_layout" "us"
[    34.120] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    34.121] (II) event1  - Power Button: is tagged by udev as: Keyboard
[    34.121] (II) event1  - Power Button: device is a keyboard
[    34.121] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[    34.121] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[    34.121] (**) Sleep Button: Applying InputClass "system-keyboard"
[    34.121] (II) Using input driver 'libinput' for 'Sleep Button'
[    34.121] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 37 paused 0
[    34.122] (**) Sleep Button: always reports core events
[    34.122] (**) Option "Device" "/dev/input/event0"
[    34.122] (II) event0  - Sleep Button: is tagged by udev as: Keyboard
[    34.122] (II) event0  - Sleep Button: device is a keyboard
[    34.122] (II) event0  - Sleep Button: device removed
[    34.122] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0/event0"
[    34.122] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[    34.122] (**) Option "xkb_model" "pc105+inet"
[    34.122] (**) Option "xkb_layout" "us"
[    34.122] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    34.123] (II) event0  - Sleep Button: is tagged by udev as: Keyboard
[    34.123] (II) event0  - Sleep Button: device is a keyboard
[    34.123] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event10)
[    34.123] (II) No input driver specified, ignoring this device.
[    34.123] (II) This device may have been added with another device file.
[    34.123] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event11)
[    34.123] (II) No input driver specified, ignoring this device.
[    34.123] (II) This device may have been added with another device file.
[    34.124] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event12)
[    34.124] (II) No input driver specified, ignoring this device.
[    34.124] (II) This device may have been added with another device file.
[    34.124] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event9)
[    34.124] (II) No input driver specified, ignoring this device.
[    34.124] (II) This device may have been added with another device file.
[    34.125] (II) config/udev: Adding input device UVC Camera (046d:0804) (/dev/input/event13)
[    34.125] (**) UVC Camera (046d:0804): Applying InputClass "libinput keyboard catchall"
[    34.125] (**) UVC Camera (046d:0804): Applying InputClass "system-keyboard"
[    34.125] (II) Using input driver 'libinput' for 'UVC Camera (046d:0804)'
[    34.125] (II) systemd-logind: got fd for /dev/input/event13 13:77 fd 38 paused 0
[    34.125] (**) UVC Camera (046d:0804): always reports core events
[    34.125] (**) Option "Device" "/dev/input/event13"
[    34.126] (II) event13 - UVC Camera (046d:0804): is tagged by udev as: Keyboard
[    34.126] (II) event13 - UVC Camera (046d:0804): device is a keyboard
[    34.126] (II) event13 - UVC Camera (046d:0804): device removed
[    34.126] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input13/event13"
[    34.126] (II) XINPUT: Adding extended input device "UVC Camera (046d:0804)" (type: KEYBOARD, id 10)
[    34.126] (**) Option "xkb_model" "pc105+inet"
[    34.126] (**) Option "xkb_layout" "us"
[    34.126] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    34.127] (II) event13 - UVC Camera (046d:0804): is tagged by udev as: Keyboard
[    34.127] (II) event13 - UVC Camera (046d:0804): device is a keyboard
[    34.128] (II) config/udev: Adding input device Kingston HyperX Pulsefire FPS Gaming Mouse (/dev/input/event3)
[    34.128] (**) Kingston HyperX Pulsefire FPS Gaming Mouse: Applying InputClass "libinput pointer catchall"
[    34.128] (II) Using input driver 'libinput' for 'Kingston HyperX Pulsefire FPS Gaming Mouse'
[    34.128] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 39 paused 0
[    34.128] (**) Kingston HyperX Pulsefire FPS Gaming Mouse: always reports core events
[    34.128] (**) Option "Device" "/dev/input/event3"
[    34.129] (II) event3  - Kingston HyperX Pulsefire FPS Gaming Mouse: is tagged by udev as: Mouse
[    34.129] (II) event3  - Kingston HyperX Pulsefire FPS Gaming Mouse: device is a pointer
[    34.129] (II) event3  - Kingston HyperX Pulsefire FPS Gaming Mouse: device removed
[    34.129] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:0951:16BC.0001/input/input3/event3"
[    34.129] (II) XINPUT: Adding extended input device "Kingston HyperX Pulsefire FPS Gaming Mouse" (type: MOUSE, id 11)
[    34.130] (**) Option "AccelerationScheme" "none"
[    34.130] (**) Kingston HyperX Pulsefire FPS Gaming Mouse: (accel) selected scheme none/0
[    34.130] (**) Kingston HyperX Pulsefire FPS Gaming Mouse: (accel) acceleration factor: 2.000
[    34.130] (**) Kingston HyperX Pulsefire FPS Gaming Mouse: (accel) acceleration threshold: 4
[    34.130] (II) event3  - Kingston HyperX Pulsefire FPS Gaming Mouse: is tagged by udev as: Mouse
[    34.131] (II) event3  - Kingston HyperX Pulsefire FPS Gaming Mouse: device is a pointer
[    34.131] (II) config/udev: Adding input device Kingston HyperX Pulsefire FPS Gaming Mouse (/dev/input/mouse0)
[    34.131] (II) No input driver specified, ignoring this device.
[    34.131] (II) This device may have been added with another device file.
[    34.132] (II) config/udev: Adding input device Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard (/dev/input/event4)
[    34.132] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: Applying InputClass "libinput keyboard catchall"
[    34.132] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: Applying InputClass "system-keyboard"
[    34.132] (II) Using input driver 'libinput' for 'Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard'
[    34.132] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 40 paused 0
[    34.132] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: always reports core events
[    34.132] (**) Option "Device" "/dev/input/event4"
[    34.133] (II) event4  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: is tagged by udev as: Keyboard
[    34.133] (II) event4  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: device is a keyboard
[    34.133] (II) event4  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: device removed
[    34.133] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:0951:16D2.0003/input/input4/event4"
[    34.133] (II) XINPUT: Adding extended input device "Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard" (type: KEYBOARD, id 12)
[    34.133] (**) Option "xkb_model" "pc105+inet"
[    34.133] (**) Option "xkb_layout" "us"
[    34.133] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    34.134] (II) event4  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: is tagged by udev as: Keyboard
[    34.134] (II) event4  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: device is a keyboard
[    34.135] (II) config/udev: Adding input device Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control (/dev/input/event6)
[    34.135] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: Applying InputClass "libinput keyboard catchall"
[    34.135] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: Applying InputClass "system-keyboard"
[    34.135] (II) Using input driver 'libinput' for 'Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control'
[    34.136] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 41 paused 0
[    34.136] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: always reports core events
[    34.136] (**) Option "Device" "/dev/input/event6"
[    34.137] (II) event6  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: is tagged by udev as: Keyboard
[    34.137] (II) event6  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: device is a keyboard
[    34.137] (II) event6  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: device removed
[    34.137] (II) libinput: Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: needs a virtual subdevice
[    34.137] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1/0003:0951:16D2.0004/input/input6/event6"
[    34.137] (II) XINPUT: Adding extended input device "Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control" (type: MOUSE, id 13)
[    34.137] (**) Option "AccelerationScheme" "none"
[    34.137] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: (accel) selected scheme none/0
[    34.137] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: (accel) acceleration factor: 2.000
[    34.137] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: (accel) acceleration threshold: 4
[    34.138] (II) event6  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: is tagged by udev as: Keyboard
[    34.138] (II) event6  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: device is a keyboard
[    34.138] (II) config/udev: Adding input device Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard (/dev/input/event8)
[    34.138] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: Applying InputClass "libinput keyboard catchall"
[    34.138] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: Applying InputClass "system-keyboard"
[    34.138] (II) Using input driver 'libinput' for 'Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard'
[    34.139] (II) systemd-logind: got fd for /dev/input/event8 13:72 fd 42 paused 0
[    34.139] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: always reports core events
[    34.139] (**) Option "Device" "/dev/input/event8"
[    34.140] (II) event8  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: is tagged by udev as: Keyboard
[    34.140] (II) event8  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: device is a keyboard
[    34.140] (II) event8  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: device removed
[    34.140] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.2/0003:0951:16D2.0005/input/input8/event8"
[    34.140] (II) XINPUT: Adding extended input device "Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard" (type: KEYBOARD, id 14)
[    34.140] (**) Option "xkb_model" "pc105+inet"
[    34.140] (**) Option "xkb_layout" "us"
[    34.140] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    34.141] (II) event8  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: is tagged by udev as: Keyboard
[    34.141] (II) event8  - Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard: device is a keyboard
[    34.141] (II) config/udev: Adding input device HDA Intel PCH Front Mic (/dev/input/event14)
[    34.141] (II) No input driver specified, ignoring this device.
[    34.141] (II) This device may have been added with another device file.
[    34.142] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event15)
[    34.142] (II) No input driver specified, ignoring this device.
[    34.142] (II) This device may have been added with another device file.
[    34.142] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event16)
[    34.142] (II) No input driver specified, ignoring this device.
[    34.142] (II) This device may have been added with another device file.
[    34.142] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event17)
[    34.142] (II) No input driver specified, ignoring this device.
[    34.142] (II) This device may have been added with another device file.
[    34.142] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event18)
[    34.142] (II) No input driver specified, ignoring this device.
[    34.142] (II) This device may have been added with another device file.
[    34.143] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event19)
[    34.143] (II) No input driver specified, ignoring this device.
[    34.143] (II) This device may have been added with another device file.
[    34.143] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event20)
[    34.143] (II) No input driver specified, ignoring this device.
[    34.143] (II) This device may have been added with another device file.
[    34.143] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event21)
[    34.143] (II) No input driver specified, ignoring this device.
[    34.143] (II) This device may have been added with another device file.
[    34.143] (II) config/udev: Adding input device PC Speaker (/dev/input/event7)
[    34.143] (II) No input driver specified, ignoring this device.
[    34.143] (II) This device may have been added with another device file.
[    34.161] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: Applying InputClass "libinput keyboard catchall"
[    34.161] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: Applying InputClass "system-keyboard"
[    34.161] (II) Using input driver 'libinput' for 'Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control'
[    34.161] (II) systemd-logind: returning pre-existing fd for /dev/input/event6 13:70
[    34.161] (**) Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: always reports core events
[    34.161] (**) Option "Device" "/dev/input/event6"
[    34.161] (II) libinput: Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control: is a virtual subdevice
[    34.161] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1/0003:0951:16D2.0004/input/input6/event6"
[    34.161] (II) XINPUT: Adding extended input device "Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard Consumer Control" (type: KEYBOARD, id 15)
[    34.161] (**) Option "xkb_model" "pc105+inet"
[    34.161] (**) Option "xkb_layout" "us"
[    34.161] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    34.610] (II) modeset(0): EDID vendor "SAM", prod id 3372
[    34.610] (II) modeset(0): Using EDID range info for horizontal sync
[    34.610] (II) modeset(0): Using EDID range info for vertical refresh
[    34.610] (II) modeset(0): Printing DDC gathered Modelines:
[    34.610] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    34.610] (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
[    34.610] (II) modeset(0): Modeline "720x576"x0.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[    34.610] (II) modeset(0): Modeline "720x480"x0.0   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    34.610] (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    34.610] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[    34.610] (II) modeset(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    34.610] (II) modeset(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    34.610] (II) modeset(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[    34.610] (II) modeset(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[    34.610] (II) modeset(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    34.610] (II) modeset(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[    34.610] (II) modeset(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[    34.610] (II) modeset(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    34.610] (II) modeset(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[    34.610] (II) modeset(0): Modeline "1680x1050"x0.0  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[    34.610] (II) modeset(0): Modeline "1280x800"x0.0   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
[    34.610] (II) modeset(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    34.610] (II) modeset(0): Modeline "1440x900"x0.0   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[    34.610] (II) modeset(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz e)

Offline

#8 2023-01-01 20:06:56

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

The nvidia GPU isn't referenced.
What's the output of

prime-run glxinfo -B

in this condition?

Offline

#9 2023-01-01 20:09:00

mrzen
Member
Registered: 2022-12-27
Posts: 8

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

seth wrote:

The nvidia GPU isn't referenced.
What's the output of

prime-run glxinfo -B

in this condition?

I'm in integrated mode right now but it runs... fine?

name of display: :1
display: :1  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 6144 MB
    Total available memory: 6144 MB
    Currently available dedicated video memory: 5920 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 2060/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 525.60.11
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 525.60.11
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 525.60.11

Offline

#10 2023-01-01 20:39:27

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

[    33.767] (==) Log file: "/home/mrzen/.local/share/xorg/Xorg.1.log", Time: Sun Jan  1 19:48:36 2023

What's happening on the server on :0 ?
Does the prime-run invocation add anything to the xorg log?

Offline

#11 2023-01-02 09:48:10

mrzen
Member
Registered: 2022-12-27
Posts: 8

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

seth wrote:

What's happening on the server on :0 ?

There is no Xorg.0.log for some reason (things are even weirdier)

seth wrote:

Does the prime-run invocation add anything to the xorg log?

I checked Xorg logs, no updates. journalctl shows that gdm-x-session terminates on startup

Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: not releasing fd for 13:71, still in use
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:72
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:71
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:70
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:69
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:73
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:64
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:65
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:67
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) UnloadModule: "libinput"
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) systemd-logind: releasing fd for 13:66
Jan 02 11:29:08 mrpc /usr/lib/gdm-x-session[522]: (II) Server terminated successfully (0). Closing log file.

Maybe that's why the logs are in ~/.local/share/xorg/ (aka the location of the rootless X logs)? That is, root X (which was started by GDM itself) is killed by optimus-manager and it starts rootless X with its own X11 configuration? Just curious

Last edited by mrzen (2023-01-02 09:49:53)

Offline

#12 2023-01-02 14:12:17

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

If you're using GDM, all the xorg logs should™ be in the system journal.

Offline

#13 2023-01-02 14:17:06

mrzen
Member
Registered: 2022-12-27
Posts: 8

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

seth wrote:

If you're using GDM, all the xorg logs should™ be in the system journal.

Yea I know it, but as I mentioned in my previous post, Xorg terminates at startup

Maybe that's why the logs are in ~/.local/share/xorg/ (aka the location of the rootless X logs)? That is, root X (which was started by GDM itself) is killed by optimus-manager and it starts rootless X with its own X11 configuration?

Last edited by mrzen (2023-01-02 14:18:40)

Offline

#14 2023-01-02 14:31:28

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

Your post doesn't show that it terminates "at startup", but only some X11 server terminating.

Offline

#15 2023-01-03 17:12:42

mrzen
Member
Registered: 2022-12-27
Posts: 8

Re: [SOLVED] Xorg uses NVIDIA GPU when it shouldn't

seth wrote:

Your post doesn't show that it terminates "at startup", but only some X11 server terminating.

Yes, you are correct. Sorry for not clarifying.

Anyway, finally the seamless GPU pass-through works as it should and all I had to do was switch from X to Wayland. I wanted to do this earlier but ran into this bug, so I decided to go back to X11, but some time after I tried again and the workaround for this bug wasn't too difficult, it's to disable loading NVIDIA modules using this environment variable. There were a couple of other little things (For example, nvidia-drm.modeset=1 made the video card not want to detach), but now nothing uses the dGPU by default, I can still use it thanks to PRIME, and most importantly I can now pass through the dGPU without any hindrance.

I usually try to find a solution to a problem on my own, but when it comes to creating a post, the solution is always so trivial lol

Well, thanks to everyone who participated in solving the problem, I appreciate it. Now I can say that the problem is SOLVED cool

Offline

Board footer

Powered by FluxBB