Installation NVIDIA drivers on Gentoo failed

Hi all,

I try to install a NVIDIA drivers on my Gentoo but it failed, below information about the video card :
01:00.0 3D controller: NVIDIA Corporation GM206GLM [Quadro M2200 Mobile] (rev a1)
Notebook : Lenovo Thinkpad P51
Dmesg log :

nvidia_drm: loading out-of-tree module taints kernel.
[ 4.556848] nvidia_drm: module license ‘MIT’ taints kernel.
[ 4.556850] Disabling lock debugging due to kernel taint
[ 4.556851] nvidia_drm: module license taints kernel.

Xserver log :
VGA arbiter: cannot open kernel arbiter, no multi-card support


(WW) NVIDIA: No DRM device: No direct render devices found.
[ 25.482] (II) NVIDIA(0): NVIDIA GPU Quadro M2200 (GM206GL-A) at PCI:1:0:0 (GPU-0)

Any help will be appreciate.

Thank you in advance.

Kind regards,

Willy

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

Please find in attach the log file requested.

nvidia-bug-report.log.gz (319.9 KB)

Thank you for your help.

Kind regards.

Willy

I’s a hybrid graphics notebook, primary graphics is the intel igpu. Please delete /etc/X11/xorg.conf.d/10-nvidia.conf and create a kernel that contains the i915 driver.

Thank you so much for your reply, I’m going to create a kernel with the Intel i915 driver and I will come back to you.

Hi All,

I created a kernel with the I915 drivers but the kernel unable to load the drivers during boot :
0.679881] Loading firmware: i915/skl_dmc_ver1_27.bin
[ 0.679909] i915 0000:00:02.0: Direct firmware load for i915/skl_dmc_ver1_27.bin failed with error -2
[ 0.679915] i915 0000:00:02.0: [drm] Failed to load DMC firmware i915/skl_dmc_ver1_27.bin. Disabling runtime power management.
[ 0.679922] i915 0000:00:02.0: [drm] DMC firmware homepage: i915 - kernel/git/firmware/linux-firmware.git - Repository of firmware blobs for use with the Linux kernel
[ 0.731541] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0

willy@himalaya ~ $ lsmod
Module Size Used by
iwlmvm 565248 0
snd_ctl_led 24576 0
mac80211 1183744 1 iwlmvm
snd_hda_codec_realtek 176128 1
libarc4 12288 1 mac80211
snd_hda_codec_generic 98304 1 snd_hda_codec_realtek
nvidia 61972480 0
snd_hda_codec_hdmi 77824 2
uvcvideo 135168 0
videobuf2_vmalloc 12288 1 uvcvideo
videobuf2_memops 12288 1 videobuf2_vmalloc
iwlwifi 520192 1 iwlmvm
uvc 12288 1 uvcvideo
snd_hda_intel 49152 0
videobuf2_v4l2 36864 1 uvcvideo
snd_hda_codec 180224 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
x86_pkg_temp_thermal 16384 0
snd_hwdep 12288 1 snd_hda_codec
cfg80211 1212416 3 iwlmvm,iwlwifi,mac80211
videobuf2_common 73728 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
snd_hda_core 131072 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
nvidia_drm 12288 0
efivarfs 24576 1

If you baked i915 driver into the kernel without an initrd, you’ll need to add the needed firmware files to the kernel image using CONFIG_EXTRA_FIRMWARE
CONFIG_EXTRA_FIRMWARE_DIR

For your cpu, likely setting
CONFIG_EXTRA_FIRMWARE
to
i915/skl_dmc_ver1_27.bin i915/skl_guc_70.1.1.bin i915/skl_huc_2.0.0.bin
and
CONFIG_EXTRA_FIRMWARE_DIR
to
/lib/firmware
should be necessary.

Thank you for your reply, after add the two parameters beside the load of the i915 drivers is OK :
[ 0.677696] i915 0000:00:02.0: vgaarb: deactivate vga console
[ 0.680033] i915 0000:00:02.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 0.680061] Loading firmware: i915/skl_dmc_ver1_27.bin
[ 0.680535] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
[ 0.732657] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[ 0.736439] fbcon: i915drmfb (fb0) is primary device
[ 1.901786] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
[ 4.309616] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops)

Now the Xserver always doesn’t start probably because the drivers i915 is not created in this directory :
himalaya ~ # ll /usr/lib64/dri/
total 44340
-rwxr-xr-x 3 root root 15133712 26 févr. 19:47 kms_swrast_dri.so
-rwxr-xr-x 3 root root 15133712 26 févr. 19:47 nouveau_dri.so
-rwxr-xr-x 3 root root 15133712 26 févr. 19:47 swrast_dri.so
himalaya ~ #

you need to modify your make.conf to include the drivers and set appropriate gentoo profile and use flages. e.g. VIDEO_CARDS=“nvidia intel i965”

Thank you for your reply, now with good option in make.conf the drivers is created :
willy@himalaya ~ $ ll /usr/lib64/dri/
total 140880
-rwxr-xr-x 6 root root 24040184 28 févr. 20:11 crocus_dri.so
-rwxr-xr-x 6 root root 24040184 28 févr. 20:11 i915_dri.so
-rwxr-xr-x 6 root root 24040184 28 févr. 20:11 iris_dri.so
-rwxr-xr-x 6 root root 24040184 28 févr. 20:11 kms_swrast_dri.so
-rwxr-xr-x 6 root root 24040184 28 févr. 20:11 nouveau_dri.so
-rwxr-xr-x 6 root root 24040184 28 févr. 20:11 swrast_dri.so

If I try to start Xserver or to use the xrandr command I get this error message :

(EE) Please also check the log file at “/home/willy/.local/share/xorg/Xorg.0.log” for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Impossible d’obtenir un descripteur de fichier faisant référence à la console.
willy@himalaya ~ $ xrandr
Can’t open display

Hi generix,

Thank you so much for your precious help, now everything work fine :-)
For information I set VIDEO_CARDS=“intel i965 nouveau”

Have a nice day.

Kind regards,

Willy

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.