You are not logged in.

#1 2022-12-20 20:33:27

telometto
Member
From: Braunau
Registered: 2020-09-30
Posts: 23

[SOLVED] How can I load Nvidia kernel modules early?

I have a ThinkPad P51, which has two GPUs (one integrated: Intel; and one dedicated: Nvidia). I have followed the instructions on the Arch wiki on how to get Nvidia installed and working, and it seems as if it is working. However, adding the 'nvidia' to /etc/mkinitcpio.conf tells me that the hook is not found. I have tried adding all of the ones mentioned in the wiki (modeset, dkms etc.) but all seem to fail.

This is my mkinitcpio.conf:

MODULES=(btrfs)
BINARIES=(/usr/bin/btrfs)
FILES=()
HOOKS=(base systemd udev sd-plymouth autodetect keyboard keymap modconf block filesystems fsck nvidia)

This is the output of glxinfo -B:

name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) HD Graphics 630 (KBL GT2) (0x591b)
    Version: 22.3.1
    Accelerated: yes
    Video memory: 15730MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 630 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Output of lspci -k | grep -A 2 -E "(VGA|3D)":

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M1200 Mobile] (rev a2)
        Subsystem: Lenovo Device 224d
        Kernel driver in use: nvidia

Output of pacman -Q | grep nvidia:

lib32-nvidia-utils 525.60.11-1
nvidia 525.60.11-3
nvidia-utils 525.60.11-1

Output of pacman -Q | grep linux:

...
linux 6.0.12.arch1-1
linux-api-headers 5.18.15-1
linux-firmware 20221109.60310c2-2
linux-firmware-bnx2x 20221109.60310c2-2
linux-firmware-liquidio 20221109.60310c2-2
linux-firmware-mellanox 20221109.60310c2-2
linux-firmware-nfp 20221109.60310c2-2
linux-firmware-qlogic 20221109.60310c2-2
linux-firmware-whence 20221109.60310c2-2
linux-headers 6.0.12.arch1-1
util-linux 2.38.1-1
util-linux-libs 2.38.1-1

I created the pacman hook according to the wiki page, too.

-Any help is greatly appreciated!

Last edited by telometto (2022-12-20 20:40:52)


"Concern should drive us to action and not into depression."
    -- Pythagoras

Offline

#2 2022-12-20 20:37:48

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] How can I load Nvidia kernel modules early?

That's because it isn't a hook, you're putting it in the wrong place. It needs to go in the MODULES line...
https://wiki.archlinux.org/title/Kernel … _KMS_start


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-12-20 20:40:31

telometto
Member
From: Braunau
Registered: 2020-09-30
Posts: 23

Re: [SOLVED] How can I load Nvidia kernel modules early?

Slithery wrote:

That's because it isn't a hook, you're putting it in the wrong place. It needs to go in the MODULES line...
https://wiki.archlinux.org/title/Kernel … _KMS_start

omg I can't believe I missed that... many thanks. Marking this as solved.


"Concern should drive us to action and not into depression."
    -- Pythagoras

Offline

Board footer

Powered by FluxBB