You are not logged in.

#1 2023-07-04 20:10:27

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

I have the same problem after I updated my desktop on Monday.
I tried to install lts kernel, reinstalled nvidia-470xx packages - nothing worked. I checked /var/log/Xorg.0.log - tit output error

"failed to initialize the nvidia kernel module"

. I stuck at this problem for 2 days and nobody, nothing can help me.
I've found discussion here but I didn't get how to make that patch. I cloned it to my home directory and couldn't makepkg. What's wrong I did and what should I do? Help me please. [SOLVED]

Last edited by marol (2023-07-05 19:30:02)

Offline

#2 2023-07-04 20:24:12

seth
Member
Registered: 2012-09-03
Posts: 58,243

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

"failed to initialize the nvidia kernel module"

I severely doubt that this is the same problem, but please post a complete system journal and the complete Xorg log.

Offline

#3 2023-07-05 06:46:37

marol
Member
Registered: 2022-09-19
Posts: 56

nvidia-470xx drivers not loading after update to 6.4 kernel

Journal
I tried to find how to post Xorg log, but I couldn't.

 lspci -k | grep -A 2 -E "(VGA|3D)"
09:00.0 VGA compatible controller: NVIDIA Corporation Gk208B [GeForce GT 710] (rev a1)
Subsystem: ASUStek Computre Inc. GT710-4H-SL-2GD5
Kernel modules: nouveau 

It's wierd... Whole year I used nvidia-470-xx and it worked flawlessly till Monday.

Offline

#4 2023-07-05 07:06:13

seth
Member
Registered: 2012-09-03
Posts: 58,243

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

cat /path/to/your/xorg.0.log | curl -F 'f:1=<-' ix.io

Nouveau is blacklisted and there's no kernel module for 6.1.37-1-lts,

pacman -Qs 470xx; dkms status

Edit: the xorg log is currently not relevant.

Last edited by seth (2023-07-05 07:06:29)

Offline

#5 2023-07-05 10:55:52

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

seth wrote:
cat /path/to/your/xorg.0.log | curl -F 'f:1=<-' ix.io

Thank you! Done

Nouveau is blacklisted and there's no kernel module for 6.1.37-1-lts,

So, it means that there's no need to remove it from blacklist and to install it?

pacman -Qs 470xx; dkms status

Edit: the xorg log is currently not relevant.

Here it is:

local/libxnvctrl-470xx 470.199.02-1
    NVIDIA NV-CONTROL X extension
local/mhwd-nvidia-470xx 470.94-1
    mhwd-nvidia-470xx PCI ID database
local/nvidia-470xx-dkms 470.182.03-2
    NVIDIA drivers - module sources
local/nvidia-470xx-settings 470.199.02-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-470xx-utils 470.182.03-2
    NVIDIA drivers utilities
local/opencl-nvidia-470xx 470.182.03-2
    OpenCL implemention for NVIDIA
nvidia/470.182.03: added

Offline

#6 2023-07-05 11:13:31

loqs
Member
Registered: 2014-03-06
Posts: 18,001

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

nvidia/470.182.03: added

No modules have been built by dkms for nvidia/470.182.03.  Lack of kernel headers?  This proves the issue is unrelated to alu1's.
Please ask a moderator to split your issue off.

Last edited by loqs (2023-07-05 11:14:06)

Offline

#7 2023-07-05 11:27:38

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

Reported.

Offline

#8 2023-07-05 11:44:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,074

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

Offline

#9 2023-07-05 13:22:46

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

I removed xf86-video-amdgpu, which I wanted to use as integrated videocard. And linux-lts, which I thought could work instead of linux kernel. I followed some advices, given in other themes here. No result.

$ grep -Er '(nvidia|nouveau)' /{etc,usr/share}/X11/xorg.conf.d

/etc/X11/xorg.conf.d/20-nvidia.conf:	Driver "nvidia"
/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:    ModulePath "/usr/lib/nvidia/xorg"

I copied 10-nvidia-drm-outputclass.conf to /etc/X11/xorg.conf.d - didn't work.

lspci -k
09:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GT710-4H-SL-2GD5
	Kernel modules: nouveau

Xorg.0.log

Offline

#10 2023-07-05 13:23:56

seth
Member
Registered: 2012-09-03
Posts: 58,243

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

loqs wrote:

Lack of kernel headers?

pacman -Qs headers

Otherwise rebuild the dkms modules and post the build log, https://wiki.archlinux.org/title/Dynami … ld_modules

Offline

#11 2023-07-05 13:34:59

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

seth wrote:
loqs wrote:

Lack of kernel headers?

pacman -Qs headers
local/acl 2.3.1-3
    Access control list utilities, libraries and headers
local/amf-headers 1.4.29-1
    Header files for AMD Advanced Media Framework
local/libcups 1:2.4.6-1
    OpenPrinting CUPS - client libraries and headers
local/linux-api-headers 6.3-1
    Kernel headers sanitized for use in userspace
local/linux-headers 6.4.1.arch2-1
    Headers and scripts for building modules for the Linux kernel
local/spice-protocol 0.14.4-1
    Headers for SPICE protocol
local/vulkan-headers 1:1.3.256-1 (vulkan-devel)
    Vulkan header files
local/xorgproto 2023.2-1
    combined X.Org X11 Protocol headers

Offline

#12 2023-07-05 13:43:58

seth
Member
Registered: 2012-09-03
Posts: 58,243

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

Did you look at it? How many header packages for the LTS kernel did you see?

Offline

#13 2023-07-05 13:48:08

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

seth wrote:

Did you look at it? How many header packages for the LTS kernel did you see?

I'm sorry, I'm not so much advanced in Linux. I removed lts kernel and I see no mention "lts" at this list. I can only guess it's linux-api-headers 6.3-1.

Offline

#14 2023-07-05 13:57:58

seth
Member
Registered: 2012-09-03
Posts: 58,243

Offline

#15 2023-07-05 14:00:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,048

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

marol wrote:

I removed lts kernel

Why?

Online

#16 2023-07-05 14:35:36

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

Excuse me, but how this link can help me to solve my problem? There are lists of Dependencies, Required By along with Package Contents and Links to so-names. It's a huge amount of information. Please, can you point out what I should remove/install which commands to enter, so that I can see my computer is working as it was?
Thank you.

Offline

#17 2023-07-05 14:36:34

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

Scimmia wrote:
marol wrote:

I removed lts kernel

Why?

Because after I installed it and edited boot-manager, nothing changed. May be I missed something... IDK.

Offline

#18 2023-07-05 14:38:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,074

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

You need to install linux-lts and linux-lts-headers packages so that nvidia-470xx-dkms package can build the nvidia module for the LTS kernel so that you can boot the LTS kernel and a working graphical session until the drivers have received an update for the 6.4 kernel.

Last edited by V1del (2023-07-05 14:39:06)

Offline

#19 2023-07-05 14:40:14

loqs
Member
Registered: 2014-03-06
Posts: 18,001

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

Offline

#20 2023-07-05 14:53:32

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

@V1del and @loqs - THANK YOU!!! It worked! The only thing - I see my screen only after I enter tty2 and make "startx".

Offline

#21 2023-07-05 15:07:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,074

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

FWIW there's a modified and patched version of the PKGBUILD available in the comments: https://aur.archlinux.org/pkgbase/nvidi … ent-922190 -- but going by the general confusion you might want to stick to the LTS kernel for now until the package is updated by the maintainer/nvidia themselves potentially.

As for the the additional quirk of  you seeing the screen only after doing that. Is sddm not starting? Can you post a new journal as well as /var/log/Xorg.0.log ? Might have to enable early loading to make sure the drivers are up before SDDM tries to launch: https://wiki.archlinux.org/title/NVIDIA … de_setting

Offline

#22 2023-07-05 15:08:50

loqs
Member
Registered: 2014-03-06
Posts: 18,001

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

V1del wrote:

You need to install linux-lts and linux-lts-headers packages so that nvidia-470xx-dkms package can build the nvidia module for the LTS kernel so that you can boot the LTS kernel and a working graphical session until the drivers have received an update for the 6.4 kernel.

I missed 470xx had not been updated for 6.4

$ git clone https://aur.archlinux.org/nvidia-470xx-utils.git
$ cd nvidia-470xx-utils/
$ curl -o PKGBUILD.diff http://ix.io/4zP5 # Download patch
$ git apply -v PKGBUILD.diff # Apply patch
$ makepkg -rsi # Build and install updated 470xx packages

Edit:
Note I have not included the 6.4 patch as it is not needed.

(6/6) Install DKMS modules
==> dkms install --no-depmod nvidia/470.199.02 -k 6.4.1-arch2-1
==> depmod 6.4.1-arch2-1

Last edited by loqs (2023-07-05 15:18:58)

Offline

#23 2023-07-05 15:24:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,074

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

Ah so they did provide an update already, looks like we'd need to get a more active maintainer there.

Offline

#24 2023-07-05 18:45:29

marol
Member
Registered: 2022-09-19
Posts: 56

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

loqs wrote:

Edit: ...

Yes, I had similar result.

V1del wrote:

FWIW there's a modified and patched version of the PKGBUILD available in the comments: https://aur.archlinux.org/pkgbase/nvidi … ent-922190 -- but going by the general confusion you might want to stick to the LTS kernel for now until the package is updated by the maintainer/nvidia themselves potentially.

Thank you, I read that topic and I couldn't make that patch. To me it's too sophisticated and complicated smile I'd like to stick to LTS until there will be stable patch for nvidia-470xx.

V1del wrote:

As for the the additional quirk of  you seeing the screen only after doing that. Is sddm not starting? Can you post a new journal as well as /var/log/Xorg.0.log ? Might have to enable early loading to make sure the drivers are up before SDDM tries to launch: https://wiki.archlinux.org/title/NVIDIA … de_setting

I don't use SDDM or any other DM. Only autostart X by means of xinitrc.

Xorg.0.log

Offline

#25 2023-07-05 18:59:10

loqs
Member
Registered: 2014-03-06
Posts: 18,001

Re: nvidia-470xx drivers not loading after update to 6.4 kernel

marol wrote:
loqs wrote:

Edit: ...

Yes, I had similar result.

You mean 470.199.02 worked for you too without requiring a patch for linux 6.4?

marol wrote:
V1del wrote:

FWIW there's a modified and patched version of the PKGBUILD available in the comments: https://aur.archlinux.org/pkgbase/nvidi … ent-922190 -- but going by the general confusion you might want to stick to the LTS kernel for now until the package is updated by the maintainer/nvidia themselves potentially.

Thank you, I read that topic and I couldn't make that patch. To me it's too sophisticated and complicated smile I'd like to stick to LTS until there will be stable patch for nvidia-470xx.

Waiting for https://lists.archlinux.org/archives/li … 4F3LTLESO/ to be actioned.

Offline

Board footer

Powered by FluxBB