You are not logged in.

#1 2024-02-04 15:20:27

moshen212
Member
Registered: 2017-09-10
Posts: 25

[SOLVED] The nvidia-dkms not worked for me

Hi guys

I installed Archlinux by archinstall on my Victus 15 laptop with nvidia RTX 4050 graphic card and I install nvidia-dkms driver for it, all things is okay but all output of any command show me info about Intel graphic card !!!

$ glxinfo|egrep "OpenGL vendor|OpenGL renderer*"
egrep: warning: egrep is obsolescent; using grep -E
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Graphics (RPL-P)

Also I ran  the switch command but shown error:

$ optimus-manager --switch nvidia
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook.
Log at /var/log/optimus-manager/switch/switch-20240204T183454.log
Cannot execute command because of previous errors.

content of log file:


[6] INFO: # Xorg pre-start hook
[31] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': 'integrated'}
[32] INFO: Requested mode is: nvidia
[65] INFO: Available modules: ['nouveau']
[65] INFO: Unloading modules ['nouveau'] (if loaded)
[70] INFO: switching=none, nothing to do
[266] INFO: Loading module nvidia
[267] ERROR: Xorg pre-start setup error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/optimus_manager/hooks/pre_xorg_start.py", line 51, in main
    setup_kernel_state(config, prev_state, requested_mode)
  File "/usr/lib/python3.11/site-packages/optimus_manager/kernel.py", line 22, in setup_kernel_state
    _nvidia_up(config, hybrid=(requested_mode == "hybrid"))
  File "/usr/lib/python3.11/site-packages/optimus_manager/kernel.py", line 95, in _nvidia_up
    _load_nvidia_modules(config, available_modules)
  File "/usr/lib/python3.11/site-packages/optimus_manager/kernel.py", line 164, in _load_nvidia_modules
    _load_module(available_modules, "nvidia", options=nvidia_options)
  File "/usr/lib/python3.11/site-packages/optimus_manager/kernel.py", line 241, in _load_module
    raise KernelSetupError(
optimus_manager.kernel.KernelSetupError: module nvidia is not available for current kernel. Is the corresponding package installed ?
[271] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[271] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20240204T183454', 'requested_mode': 'nvidia'}

Last edited by moshen212 (2024-02-04 17:44:59)


#القدسـلنا
#FreePalestine

Offline

#2 2024-02-04 15:24:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,357

Re: [SOLVED] The nvidia-dkms not worked for me

Did the module actually build when you installed it?

Unrelated, but you likely don't want optimus-manager. https://wiki.archlinux.org/title/PRIME

Online

#3 2024-02-04 15:28:45

moshen212
Member
Registered: 2017-09-10
Posts: 25

Re: [SOLVED] The nvidia-dkms not worked for me

Yes modules already installed, also I suppose as you this laptop have one graphic card but below command present two VGA devices:

$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-P [Iris Xe Graphics] (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4050 Max-Q / Mobile] (rev a1)

Last edited by moshen212 (2024-02-04 15:32:18)


#القدسـلنا
#FreePalestine

Offline

#4 2024-02-04 15:42:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,357

Re: [SOLVED] The nvidia-dkms not worked for me

Then did you go through all of the steps listed in https://wiki.archlinux.org/title/NVIDIA#Installation ?

Yes, I'm well aware of what hybrid graphics are, nobody said anything about there being one graphics card.

Online

#5 2024-02-04 15:51:44

seth
Member
Registered: 2012-09-03
Posts: 48,833

Re: [SOLVED] The nvidia-dkms not worked for me

dkms status
modinfo nvidia

optimus-manager is a crutch and of no benefit at all for your system which is eligible for and defaults to RTD3, https://wiki.archlinux.org/title/PRIME# … Management
That's why Scimmia told you to get rid of it (and any residual config it might have left behind)

Offline

#6 2024-02-04 16:50:19

moshen212
Member
Registered: 2017-09-10
Posts: 25

Re: [SOLVED] The nvidia-dkms not worked for me

Then did you go through all of the steps listed in https://wiki.archlinux.org/title/NVIDIA#Installation ?

No, I install nvidia driver by archinstall wizarder

$ dkms status
nvidia/545.29.06: added

$ modinfo nvidia
modinfo: ERROR: Module nvidia not found.

#القدسـلنا
#FreePalestine

Offline

#7 2024-02-04 16:52:05

seth
Member
Registered: 2012-09-03
Posts: 48,833

Re: [SOLVED] The nvidia-dkms not worked for me

dkms and modinfo disagree [edit: with you, not each other]

pacman -Qs kernel

Last edited by seth (2024-02-04 16:52:47)

Offline

#8 2024-02-04 16:56:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,357

Re: [SOLVED] The nvidia-dkms not worked for me

Scimmia wrote:

Did the module actually build when you installed it?

So the correct answer to this question is that you have no idea.

Online

#9 2024-02-04 17:18:30

moshen212
Member
Registered: 2017-09-10
Posts: 25

Re: [SOLVED] The nvidia-dkms not worked for me

$ pacman -Qs kernel
local/dkms 3.0.12-1
    Dynamic Kernel Modules System
local/fuse3 3.16.2-1
    Interface for userspace programs to export a filesystem to the Linux kernel
local/iptables 1:1.8.10-1
    Linux kernel packet control tool (using legacy interface)
local/kmod 31-1
    Linux kernel module management tools and library
local/libdrm 2.4.120-1
    Userspace interface to kernel DRM services
local/libnetfilter_conntrack 1.0.9-1
    Library providing an API to the in-kernel connection tracking state table
local/libnfnetlink 1.0.2-1
    Low-level library for netfilter related kernel/userspace communication
local/libsysprof-capture 45.1-1
    Kernel based performance profiler - capture library
local/linux-api-headers 6.4-1
    Kernel headers sanitized for use in userspace
local/linux-lts 6.6.15-2
    The LTS Linux kernel and modules
local/linux-lts-headers 6.6.15-1
    Headers and scripts for building modules for the LTS Linux kernel
local/mtdev 1.1.6-2
    A stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol
Scimmia wrote:

So the correct answer to this question is that you have no idea.

I see progress of installing packages such as dkms and nvidia-dkms that successfully done

Last edited by moshen212 (2024-02-04 17:21:50)


#القدسـلنا
#FreePalestine

Offline

#10 2024-02-04 17:26:10

seth
Member
Registered: 2012-09-03
Posts: 48,833

Re: [SOLVED] The nvidia-dkms not worked for me

That's not building the dkms modules.
You've the headers, so https://wiki.archlinux.org/title/Dynami … ld_modules and report on the success of that.

Offline

#11 2024-02-04 17:44:39

moshen212
Member
Registered: 2017-09-10
Posts: 25

Re: [SOLVED] The nvidia-dkms not worked for me

Thank you guys, My problem solved

The `linux-lts-headers` package missed by archinstall script and in process of installation this package, the `dkms autoinstall` ran.

After restart I checked current VGA device is Intel sad
But by below command changed VGA device to nvidia successfully:

optimus-manager --switch nvidia

Last edited by moshen212 (2024-02-04 17:59:24)


#القدسـلنا
#FreePalestine

Offline

#12 2024-02-04 20:46:00

seth
Member
Registered: 2012-09-03
Posts: 48,833

Re: [SOLVED] The nvidia-dkms not worked for me

seth wrote:

optimus-manager is a crutch and of no benefit at all for your system which is eligible for and defaults to RTD3, https://wiki.archlinux.org/title/PRIME# … Management
That's why Scimmia told you to get rid of it (and any residual config it might have left behind)


After removing also make sure there's no modprobe config left behind in the initramfs - in doubt re-generate that.

Offline

Board footer

Powered by FluxBB