View previous topic :: View next topic |
Author |
Message |
ImErina n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Feb 2022 Posts: 51
|
Posted: Wed Jun 14, 2023 9:17 am Post subject: [Solved] NVIDIA initialization failure after system update. |
|
|
Due to a typo(A quite serious one, mistyping ACCEPT_KEYWORDS without the 'S') I have corrected I have to update the system.
After the update I found that startx stopped working. A brief look at the log tells me "NVIDIA: Failed to initialize the NVIDIA kernel module."I have recompiled the kernel (GCC was updated with the system) and nvidia-drivers but no luck.
Dmesg didn't yield important notes either. What info should I attach? How may I fix this?
Note: important updates happened includes kernel(6.1.17 to 6.3.7), GCC(12.2.1 to 13.1.1), nvidia-drivers (515.105 to 530.41, which are both applicable to my hardware according to NVIDIA's website)
IBT is set to off. There's no nouveau installed.
Last edited by ImErina on Thu Jun 15, 2023 5:49 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
logrusx Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/176594205966916859b5145.jpg)
Joined: 22 Feb 2018 Posts: 2695
|
Posted: Wed Jun 14, 2023 10:02 am Post subject: |
|
|
Nvidia drivers consist of two parts - a kernel module and a library. Those two need to be in sync.
You need to either select the kernel you intend to run from eselect prior to updating nvidia drivers or supply KERNEL_DIR on the command line for a kernel that you intend to use but is not selected.
Make sure both components are in sync. If you want to have it for more than one kernel, just run the corresponding number of emerges of nvidia-drivers with the corresponding KERNEL_DIR on the command line for the kernels you want it to be installed.
Also attach emerge --info, dmesg and Xorg logs. We are not psychics
Best Regards,
Georgi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ImErina n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Feb 2022 Posts: 51
|
Posted: Wed Jun 14, 2023 10:26 am Post subject: |
|
|
logrusx wrote: | Nvidia drivers consist of two parts - a kernel module and a library. Those two need to be in sync.
You need to either select the kernel you intend to run from eselect prior to updating nvidia drivers or supply KERNEL_DIR on the command line for a kernel that you intend to use but is not selected.
|
Welp, I have already selected the newer kernel(6.3.7 in this case) and done all the recompiling stuff(with the newer version of GCC).
I'll attach the information you asked in a minute.
Emerge --info: https://bpa.st/2HYGS
Dmesg: https://bpa.st/FARTW
Xorg.0.log: https://bpa.st/QULSI
.config: https://dpaste.com/EWWHHBBY5
p.s. You may see the config was not handmade. I used an Arch Linux config(which was ready on hand) with some options toggled to suit Nvidia(such as IBT)...... Just to make sure it is not something in my kernel that was too wrong.
Are these useful? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Banana Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/5204386264b863c6da7ffb.jpg)
Joined: 21 May 2004 Posts: 1889 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ionen Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/12407261860db424480089.png)
Joined: 06 Dec 2018 Posts: 2892
|
Posted: Wed Jun 14, 2023 12:24 pm Post subject: |
|
|
Look at the contents, your kernel configs probably disallow using dmesg as non-root.
404 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ImErina n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Feb 2022 Posts: 51
|
Posted: Wed Jun 14, 2023 12:36 pm Post subject: |
|
|
Yes I did. I've rebuilt everything in correct order. The compilers first, the kernel second, and then the modules.
Updated xorg.0.conf: https://bpa.st/APEU6
Updated dmesg: https://bpa.st/F3NVO
I wonder why the break happened in an update I kind of fear that it's some other packages that was broken. I'll try a fresh installation to see if it works and then work on mine, just to make sure it is not hardware-related issues.
A fresh install on a spare disk worked. (The GCC update took quite a while tho.) Most configs are the same. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ImErina n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Feb 2022 Posts: 51
|
Posted: Thu Jun 15, 2023 5:53 am Post subject: |
|
|
Solved by recompiling kernel and module again.
I'm curious what it actually means by saying Nvidia failed to initialize. I guess it is not that the module failed to work since and works without issue. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|