You are not logged in.

#1 2020-11-07 12:35:54

akshansh2000
Member
From: India
Registered: 2020-11-07
Posts: 8
Website

[SOLVED] nvidia-prime: prime-run doesn't work, intel module fails to..

Kernel release: 5.8.14-arch1-1 (Haven't updated to kernel release 5.9 due to incompatibility issues with Nvidia)

I have Intel integrated graphics along with an Nvidia GPU. I want to use nvidia-prime, however, whenever I try to run something with prime-run, it gives the following output:

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:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  25
  Current serial number in output stream:  26

I have the following installed:

Nvidia
  • nvidia 455.38-2

  • nvidia-prime 1.0-4

  • nvidia-utils 455.38-1

  • opencl-nvidia 455.38-1

  • lib32-nvidia-utils 455.38-1

Intel
  • mesa 20.2.1-1

  • mesa-demos 8.4.0-4

  • lib32-mesa 20.2.1-1

My Xorg.0.log shows these errors:

[    25.989] (EE) Failed to load module "intel" (module does not exist, 0)
[    26.056] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    26.056] (EE) Failed to load module "nv" (module does not exist, 0)
[    26.103] (EE) Failed to load module "fbdev" (module does not exist, 0)

The nvidia module, however, loads correctly:

[    25.943] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[    25.989] (II) Applying OutputClass "nvidia" to /dev/dri/card1
[    25.989] 	loading driver: nvidia
[    25.989] (==) Matched nvidia as autoconfigured driver 1
[    25.989] (II) LoadModule: "nvidia"
[    25.990] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    26.045] (II) Module nvidia: vendor="NVIDIA Corporation"
[    29.131] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[    29.132] (II) Loading sub module "glxserver_nvidia"
[    29.132] (II) LoadModule: "glxserver_nvidia"
[    29.132] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[    29.865] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[    31.028] (II) NVIDIA(G0): [DRI2]   VDPAU driver: nvidia

However, when I try doing lsmod | grep -i nvidia, no results are returned. On replacing nvidia with intel, I get the following output:

btintel                32768  1 btusb
bluetooth             720896  34 btrtl,btintel,btbcm,bnep,btusb,rfcomm
intel_powerclamp       20480  0
kvm_intel             323584  0
kvm                   847872  1 kvm_intel
snd_hda_intel          57344  4
snd_intel_dspcfg       24576  1 snd_hda_intel
snd_hda_codec         167936  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_ca0132
snd_hda_core          106496  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_ca0132
intel_pmc_bxt          16384  1 iTCO_wdt
ghash_clmulni_intel    16384  0
aesni_intel           372736  11
snd_pcm               147456  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_ca0132
snd                   114688  15 snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm,snd_hda_codec_ca0132
crypto_simd            16384  1 aesni_intel
intel_rapl_msr         20480  0
cryptd                 24576  5 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
intel_wmi_thunderbolt    20480  0
intel_gtt              24576  1 i915
intel_cstate           16384  0
intel_uncore          163840  0
intel_rapl_common      32768  2 intel_rapl_msr,processor_thermal_device
intel_soc_dts_iosf     20480  1 processor_thermal_device
intel_pch_thermal      16384  0
wmi                    36864  6 intel_wmi_thunderbolt,dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor,mxm_wmi
agpgart                53248  2 intel_gtt,drm
crc32c_intel           24576  4

This is kind of confusing, as I don't even know which drivers are working correctly and which aren't. glxgears runs using Intel graphics.

For reference, here is my /etc/X11/xorg.conf file:

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

Section "Device"
  Identifier "iGPU"
  Driver "modesetting"
EndSection

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

Section "Device"
  Identifier "dGPU"
  Driver "nvidia"
EndSection

I have tried running without an xorg.conf file as well, but in vain. Also, my laptop doesn't detect any external monitors through the HDMI port (which is working fine on Windows).

What do I do?

Last edited by akshansh2000 (2020-11-07 13:58:45)

Offline

#2 2020-11-07 13:09:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: [SOLVED] nvidia-prime: prime-run doesn't work, intel module fails to..

You don't want the intel module to load, the modesetting module needs to load from a xorg perspective (the modules xorg talks about are not the same modules your kernel talks about). What your actual problem is likely to be is that your nvidia kernel module doesn't match the kernel and can thus not be loaded (... the compat issues with 5.9 have been fixed with nvidia 455.38, so you could just update again)  or if you really want to stay on the older kernel you need to remove the nvidia package install the linux-headers package for the correct kernel version and use nvidia-dkms instead.

Last edited by V1del (2020-11-07 13:12:27)

Offline

#3 2020-11-07 13:51:03

akshansh2000
Member
From: India
Registered: 2020-11-07
Posts: 8
Website

Re: [SOLVED] nvidia-prime: prime-run doesn't work, intel module fails to..

V1del wrote:

You don't want the intel module to load, the modesetting module needs to load from a xorg perspective (the modules xorg talks about are not the same modules your kernel talks about). What your actual problem is likely to be is that your nvidia kernel module doesn't match the kernel and can thus not be loaded (... the compat issues with 5.9 have been fixed with nvidia 455.38, so you could just update again)  or if you really want to stay on the older kernel you need to remove the nvidia package install the linux-headers package for the correct kernel version and use nvidia-dkms instead.

Ahh, I see. I did not know about the modesetting module. Thanks for clearing it out. Moreover, simply updating the kernel fixed everything. Thanks a lot smile

Offline

#4 2020-11-07 13:54:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: [SOLVED] nvidia-prime: prime-run doesn't work, intel module fails to..

glad to hear, please mark as [SOLVED] by editing the title in your first post and prepending that.

Offline

Board footer

Powered by FluxBB