[РЕШЕНО]Ошибки DRI_PRIME

Здравствуйте! Не могу заставить работать карту от nvidia, в то время как вcтройка работает

Проц: Ryzen 5 2500U Vega 8
Карта: GTX1050
Ноутбук: ASUS F570ZD-DM102

Сама ошибка:
[alexey@archlinux ~]$ DRI_PRIME=1 glxgears -info
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
GL_RENDERER   = AMD RAVEN (DRM 3.37.0, 5.7.12-arch1-1, LLVM 10.0.1)
GL_VERSION    = 4.6 (Compatibility Profile) Mesa 20.1.5
GL_VENDOR     = X.Org

xorg.conf:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/75dpi"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"                     # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "EnablePageFlip"            # [<bool>]
        #Option     "SubPixelOrder"             # [<str>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "AccelMethod"               # <str>
        #Option     "DRI3"                      # [<bool>]
        #Option     "DRI"                       # <i>
        #Option     "ShadowPrimary"             # [<bool>]
        #Option     "TearFree"                  # [<bool>]
        #Option     "DeleteUnusedDP12Displays"  # [<bool>]
        #Option     "VariableRefresh"           # [<bool>]
        Identifier  "Card0"
        Driver      "modesetting"
        BusID       "PCI:4:0:0"
EndSection

Section "Device"
        Identifier  "Card1"
        Driver      "nvidia"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

lsmod | grep nvidia


nvidia_drm       57344  2
nvidia_modeset       1187840  2 nvidia_drm
nvidia       19726336  73 nvidia_modeset
drm_kms_helper       253952  2 amdgpu,nvidia_drm
drm         581632  17 gpu_sched,drm_kms_helper,amdgpu,nvidia_drm,ttm

Насколько я понял, при помощи xrandr --setprovideroffloadsink можно выставить с какой карты будет отрисовка. Попробовал, пишет:
[alexey@archlinux ~]$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 0 name:modesetting
Provider 1: id: 0x248 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0

[alexey@archlinux ~]$ xrandr --setprovideroffloadsink NVIDIA-G0 modesetting
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  34 (RRSetProviderOffloadSink)
  Value in failed request:  0x248
  Serial number of failed request:  16
  Current serial number in output stream:  17

Насколько я понял проблема в иксконфиге, ибо раньше (методом научного тыка) проблема исчезала его редактированием

Mesa стоит, её удаление не даёт успехов

[alexey@archlinux xorg.conf.d]$ pacman -Ss mesa
extra/glu 9.0.1-2 [installed]
    Mesa OpenGL Utility library
extra/libva-mesa-driver 20.1.5-1
    VA-API implementation for gallium
extra/mesa 20.1.5-1 [installed]
    An open-source implementation of the OpenGL specification
extra/mesa-demos 8.4.0-4 [installed]
    Mesa demos and tools incl. glxinfo + glxgears
extra/mesa-vdpau 20.1.5-1
    Mesa VDPAU drivers
extra/opencl-mesa 20.1.5-1
    OpenCL support for AMD/ATI Radeon mesa drivers
extra/vulkan-intel 20.1.5-1
    Intel's Vulkan mesa driver
extra/vulkan-mesa-layers 20.1.5-1
    Mesa's Vulkan layers
extra/vulkan-radeon 20.1.5-1
    Radeon's Vulkan mesa driver
community/adriconf 1.7-1
    GUI tool to configure Mesa drivers by setting options and writing them to the standard drirc file
community/i810-dri 7.11.2-10
    Mesa DRI drivers for Intel i810
community/mach64-dri 7.11.2-10
    Mesa DRI drivers for ATI Mach64
community/mga-dri 7.11.2-10
    Mesa DRI drivers for Matrox
community/r128-dri 7.11.2-10
    Mesa DRI drivers for ATI Rage128
community/savage-dri 7.11.2-10
    Mesa DRI drivers for S3 Sraphics/VIA Savage
community/sis-dri 7.11.2-10
    Mesa DRI drivers for SiS
community/tdfx-dri 7.11.2-10
    Mesa DRI drivers for 3dfx
community/unichrome-dri 7.11.2-10
    Mesa DRI drivers for S3 Graphics/VIA Unichrome
multilib/lib32-glu 9.0.1-1
    Mesa OpenGL utility library (32 bits)
multilib/lib32-libva-mesa-driver 20.1.5-1
    VA-API implementation for gallium (32-bit)
multilib/lib32-mesa 20.1.5-1
    An open-source implementation of the OpenGL specification (32-bit)
multilib/lib32-mesa-demos 8.4.0-2
    Mesa demos and tools (32-bit)
multilib/lib32-mesa-vdpau 20.1.5-1
    Mesa VDPAU drivers (32-bit)
multilib/lib32-opencl-mesa 20.1.5-1
    OpenCL support for AMD/ATI Radeon mesa drivers (32-bit)
multilib/lib32-vulkan-intel 20.1.5-1
    Intel's Vulkan mesa driver (32-bit)
multilib/lib32-vulkan-mesa-layers 20.1.5-1
    Mesa's Vulkan layers (32-bit)
multilib/lib32-vulkan-radeon 20.1.5-1
    Radeon's Vulkan mesa driver (32-bit)

UPD: Её удаление привело к новой ошибке:
[alexey@archlinux ~]$ DRI_PRIME=1 glxgears
Error: couldn't get an RGB, Double-buffered visual
UPD: Я оказывается загрузился без икс конфига, с ним ошибка: Не найдены экраны
Сделал новый иксконфиг: (при помощи команды + немного отредактировал)
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/75dpi"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "nvidia"
        BusID       "PCI:1:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "kmsdev"                    # <str>
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "PageFlip"                  # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "DoubleShadow"              # [<bool>]
        #Option     "Atomic"                    # [<bool>]
        Identifier  "Card1"
        Driver      "modesetting"
        BusID       "PCI:4:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card1"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Всё осталось, всё те же ошибки и всё те же выводы команд
Помойму карта о амд и ей драйвер модесеттинг , а карта 1 нвидия уже ей нвидия. У вас же наоборот.
https://wiki.archlinux.org/index.php/PRIME#Closed-source_drivers
И проверьте что все от нвидии правильно стоит , а тотнуво пытается грузить. Уберите из конфига указание на путь к иксовым модулям
vs220
Помойму карта о амд и ей драйвер модесеттинг , а карта 1 нвидия уже ей нвидия. У вас же наоборот.
https://wiki.archlinux.org/index.php/PRIME#Closed-source_drivers
И проверьте что все от нвидии правильно стоит , а тотнуво пытается грузить. Уберите из конфига указание на путь к иксовым модулям
Я пробовал ставить amdgpu-pro, но пропустил этот пункт "После установки драйвера не перезагружайте и не запускайте Xorg. В зависимости от конфигурации вашей системы, это может сделать вашу систему Xorg непригодной для использования до перенастройки.

Следуйте инструкциям в разделе для обозначенного варианта использования. Вам не нужно удалять драйверы с открытым исходным кодом для его работы, но, вероятно, вам следует это сделать, чтобы избежать беспорядка и потенциальных проблем в будущем."

vs220
Помойму карта о амд и ей драйвер модесеттинг , а карта 1 нвидия уже ей нвидия. У вас же наоборот.
Это не понял. Карта 0 - амд, карта 1 - нвидиа. Если вы про вывод DRI_PRIME=1, то включилась встроенная т.к. не был найден nouveau, если попробовать DRI_PRIME=0, то ошибки пропадут и отрисовывать будет так же встройка.
Nouveau я занёс в чёрный список в modprobe.d
blacklist nouveau
. Так же в xorg.conf на встройку стоит драйвер modesetting. Модуль glx тоже убирать из иксконфига?
vs220
https://wiki.archlinux.org/index.php/PRIME#Closed-source_drivers
А я разве смогу установить драйвер amdgpu-pro на интегрированную графику?
vs220
И проверьте что все от нвидии правильно стоит , а тотнуво пытается грузить.
Я заметил что пропустил пункт с mkinitcpio, сейчас исправлю
MrBlack
amdgpu-pro
На нвидию а не на амд ставить, и правильно номера карт определить, потому что вроде задаете карте нвидия в конфиге драйвер модесеттинг
MrBlack
карта 1 - нвидиа
А вы ей в конфиге модесеттинг прописали вместо нвидии
vs220
MrBlack
amdgpu-pro
На нвидию а не на амд ставить, и правильно номера карт определить, потому что вроде задаете карте нвидия в конфиге драйвер модесеттинг
Изменил, card0 - amd, card1-nvidia. Не помогло. Тогда буду переустанавливать драйвера
 
Зарегистрироваться или войдите чтобы оставить сообщение.