You are not logged in.

#1 2021-01-14 08:39:29

sylvainb
Member
From: France
Registered: 2021-01-14
Posts: 9

[solved] nvidia prime-run error

Hello,

Since a recent update, running anything with prime-run always fails. I tried different stuff, found all around this forum, but none of them works...

Especially, here's an error while running something with prime-run :

$ prime-run glxinfo
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

There's nothing relevant in /var/log/Xorg.0.log

Initially, I had nothing in /etc/X11/xorg.conf, but as I seen many posts around there suggested to create one, I came up with this one:

Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    ModulePath "/usr/lib/nvidia/xorg"
EndSection

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "iGPU"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "iGPU"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "iGPU"
    Device "iGPU"
EndSection

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

I don't know where to go next. Any suggestions are welcome smile

Last edited by sylvainb (2021-02-01 07:31:31)

Offline

#2 2021-01-14 09:06:09

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

Re: [solved] nvidia prime-run error

There's no need for the xorg conf, the necessary bits and pieces will be set by the nvidia-prime package already. (But it shouldn't hurt as posted, it's just not necessary)

Post your xorg.log I'm assuming you just run into the race condition and the nvidia modules aren't yet ready when xorg starts so you will want to set up early KMS for both, i915 and the nvidia modules: https://wiki.archlinux.org/index.php/NV … de_setting https://wiki.archlinux.org/index.php/Ke … _KMS_start

Offline

#3 2021-01-14 11:29:28

sylvainb
Member
From: France
Registered: 2021-01-14
Posts: 9

Re: [solved] nvidia prime-run error

Here's my xorg.log: https://pastebin.com/bLTyH06m

I've tried to add

nvidia-drm.modeset=1

to my kernel parameters, but it did not helped.
Then, I tried to add

nvidia nvidia_modeset nvidia_uvm nvidia_drm

to mkinitcpio.conf#MODULES and run mkinitcpio but in the end I'm always facing the same error sad

Last edited by sylvainb (2021-01-14 13:04:30)

Offline

#4 2021-01-14 13:27:05

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

Re: [solved] nvidia prime-run error

[     6.008] (EE) Screen 1 deleted because of no matching config section.
[     6.008] (II) UnloadModule: "nvidia"

Is not what you want to see. I'd say remove your xorg.conf and add i915 to that list of modules and regenerate the image again.

Offline

#5 2021-01-14 14:21:50

sylvainb
Member
From: France
Registered: 2021-01-14
Posts: 9

Re: [solved] nvidia prime-run error

Sadly, removing xorg.conf and adding i915 to the list of modules doesn't seems to change anything...

Here's the new xorg.log : https://pastebin.com/EGdTgtf3

Also, running nvidia-setting ends with the following error:

ERROR: Unable to load info from any available system

Despite of the following:

$ lspci | grep NVIDIA
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
01:00.1 Audio device: NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX] (rev ff)
$ lsmod | grep nvidia
nvidia_drm             65536  1
nvidia_modeset       1232896  1 nvidia_drm
nvidia              34086912  1 nvidia_modeset
drm_kms_helper        274432  2 nvidia_drm,i915
drm                   569344  12 drm_kms_helper,nvidia_drm,i915

Offline

#6 2021-01-14 14:37:05

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

Re: [solved] nvidia prime-run error

lspci -k | grep -EA3 'VGA|3D'
dmesg | grep nvidia
pacman -Qs nvidia

Last edited by V1del (2021-01-14 14:37:16)

Offline

#7 2021-01-14 14:41:00

sylvainb
Member
From: France
Registered: 2021-01-14
Posts: 9

Re: [solved] nvidia prime-run error

$ lspci -k | grep -EA3 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
        DeviceName:  Onboard IGD
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 115a
        Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 115a
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
# dmesg | grep nvidia
[    5.720849] nvidia: module license 'NVIDIA' taints kernel.
[    5.747035] nvidia-nvlink: Nvlink Core is being initialized, major device number 235
[    5.747525] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    5.905104] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  460.32.03  Sun Dec 27 18:51:11 UTC 2020
[    5.909496] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    6.634376] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
# pacman -Qs nvidia
local/egl-wayland 1.1.6-1
    EGLStream-based Wayland external platform
local/lib32-nvidia-utils 460.32.03-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 460.32.03-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/libxnvctrl 460.27.04-1
    NVIDIA NV-CONTROL X extension
local/nvidia 460.32.03-2
    NVIDIA drivers for linux
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 460.27.04-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 460.32.03-1
    NVIDIA drivers utilities

Offline

#8 2021-01-14 15:05:55

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

Re: [solved] nvidia prime-run error

...Did you ever experiment with optimus-manager, bumblebee or nvidia-xrun or whatever of the thousands of ways that slightly differ in doing the same thing?

grep -RA3 nvidia /etc/xorg.conf.d /usr/share/X11/xorg.conf.d

It reads to me like somewhere there's a config that tries to force modesetting on the nvidia identifer. In any case this reads quite weird so far.

Offline

#9 2021-01-14 20:14:15

sylvainb
Member
From: France
Registered: 2021-01-14
Posts: 9

Re: [solved] nvidia prime-run error

Yes, before installing prime, I spent weeks to try almost each available methods before understanding that mostly all of them are deprecated or are a real mess to deal with... hmm
I thought having reset everything after each try, but maybe I had forgotten something.

The strangest thing is that prime-run has worked really fine for months!

$ grep -RA3 nvidia /etc/xorg.conf.d  /etc/X11/xorg.conf.d /usr/share/X11/xorg.conf.d
grep: /etc/xorg.conf.d: Aucun fichier ou dossier de ce type
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:    Identifier "nvidia"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:    MatchDriver "nvidia-drm"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:    Driver "nvidia"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf-    Option "AllowEmptyInitialConfiguration"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:    ModulePath "/usr/lib/nvidia/xorg"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf-    ModulePath "/usr/lib/xorg/modules"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf-EndSection

Do you think I should remove /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf?

Last edited by sylvainb (2021-01-14 20:16:59)

Offline

#10 2021-01-14 21:20:32

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

Re: [solved] nvidia prime-run error

No that one is what I expect to see, and I flubbed the /etc path,

grep -RA3 nvidia /etc/X11

Offline

#11 2021-01-15 11:31:49

sylvainb
Member
From: France
Registered: 2021-01-14
Posts: 9

Re: [solved] nvidia prime-run error

grep -RA3 nvidia /etc/X11

that one outputs nothing!

Offline

#12 2021-01-30 17:49:57

sylvainb
Member
From: France
Registered: 2021-01-14
Posts: 9

Re: [solved] nvidia prime-run error

Can anyone help me solving this issue? It is still not working and I have no idea of what to do...

Offline

#13 2021-02-01 07:30:59

sylvainb
Member
From: France
Registered: 2021-01-14
Posts: 9

Re: [solved] nvidia prime-run error

Well, after updating my system yesterday the problem has magically gone away...
For reference, my current nvidia driver is 460.39-2 and my kernel is 5.10.11.arch1-1

Offline

Board footer

Powered by FluxBB