You are not logged in.

#1 2021-01-11 16:38:32

Thaldir
Member
Registered: 2021-01-11
Posts: 1

Nvidia GPU (Prime) doesn't render anything, but works for CLI programs

Hello, so i've got a laptop with intel integrated gpu and Nvidia Gtx 980m, and for the last long while i've been trying to get any of the dual-gpu setups in the wiki, and failed miserably at all of them. This is my fail with Nvidia Prime, for some reason (cant find anything on google), xrandr failes to set the provider output source (as shown bellow).

The error im getting is that whenever im trying to open anything graphical using prime-run, i just get a non-responding black screen (or whatever was displayed there beforehand). i went over the Xorg.0.log, and the last thing you see in there:

[   667.201] (II) modeset(0): Modeline "1920x1080"x0.0  138.70  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (66.7 kHz eP)
[  2726.273] (WW) NVIDIA: Wait for channel idle timed out.
[  2726.274] (II) event6  - Logitech Wireless Mouse PID:4038: SYN_DROPPED event - some input events have been lost.
[  2741.958] (WW) NVIDIA: Wait for channel idle timed out.
[  2750.462] (WW) NVIDIA: Wait for channel idle timed out.
[  2750.462] (II) event6  - Logitech Wireless Mouse PID:4038: SYN_DROPPED event - some input events have been lost.
[  2757.631] (WW) NVIDIA: Wait for channel idle timed out.
[  2757.635] (II) event6  - Logitech Wireless Mouse PID:4038: SYN_DROPPED event - some input events have been lost.

Is me trying to run blender with "prime-run blender", which resulted in a gray non-responding screen, and i had to switch to a different desktop, because whenever i hovered the mouse over it, the system froze for a moment. (killed blender through htop)

I can't find anything in the internet about this problem.

a few commands about my system+drivers+hardware+glxinfo with/without prime-run

$ xrandr --setprovideroutputsource 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:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x23f
  Serial number of failed request:  16
  Current serial number in output stream:  17

$ xrandr --setprovideroutputsource modesetting NVIDIA-G0
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:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x23f
  Serial number of failed request:  16
  Current serial number in output stream:  17

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting
Provider 1: id: 0x23f cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0

$ pacman -Q | grep nvidia
lib32-nvidia-utils 460.32.03-1
nvidia 460.32.03-2
nvidia-prime 1.0-4
nvidia-utils 460.32.03-1

$ pacman -Q | grep intel
vulkan-intel 20.3.2-2
xf86-video-intel 1:2.99.917+914+ga511f22c-1

$ glxinfo|egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 520 (SKL GT2)

$ prime-run glxinfo|egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 950M/PCIe/SSE2

the xorg setup is from here (was redirected there from the prime wiki)
prime in wiki.


Xorg config: (/etc/X11/xorg.conf)

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Any idea what can cause this? (also is there any logs im missing? first time posting here..) Thanks in advance!

Offline

#2 2021-01-13 07:43:26

Sffred
Member
Registered: 2020-08-30
Posts: 55

Re: Nvidia GPU (Prime) doesn't render anything, but works for CLI programs

It seems that your NVIDIA card doesn't connect to any output. Your xorg config is strange and short. Maybe you can use

# Xorg :0 -configure

to produce a nice skeleton in /root/ and modify it to suit your needs. I configured my dual-card machine following the guide on the wiki page Xorg and it works fine now. Here is my /etc/X11/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     "SWcursor"                  # [<bool>]
        #Option     "kmsdev"                    # <str>
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "PageFlip"                  # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "DoubleShadow"              # [<bool>]
        #Option     "Atomic"                    # [<bool>]
        Identifier  "Card0"
        Driver      "modesetting"
        BusID       "PCI:0:2: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

And here is /etc/X11/xorg.conf.d/20-nvidia.conf

Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        VendorName "NVIDIA Corporation"
        BoardName "GeForce GTX 1060 Mobile"
EndSection

Section "ServerLayout"
        Identifier "layout"
        Option "AllowNVIDIAGPUScreens"
EndSection

Last edited by Sffred (2021-01-13 07:44:14)

Offline

#3 2021-05-15 17:45:27

rambip
Member
Registered: 2021-05-15
Posts: 1

Re: Nvidia GPU (Prime) doesn't render anything, but works for CLI programs

I have the exact same behaviour !
No error what so ever in Xorg/journalctl but when I try `prime-run gltestperf` nothing is rendered on the screen.

What could I try ?

Offline

Board footer

Powered by FluxBB