SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had already been there and saw about 20 post reporting the error "Unable to load the kernel module ‘nvidia.ko’". The best reply i came across was "the error must be along the lines described in the error message; look through it". I am not sure if the nvidia developers join the forum too but no one at the nvidia forum seemed to have a clue or a solution for this problem.
Quote:
RadicalDreamer
I have a few more questions. What does your boot loader look like? Have you modified any settings relating to video?
someone very clever once said "insanity is repeating the same thing over and over expecting different result"! well, i must be insane then bcos I have tried to run the nvidia installer version 455 and 460 about 10times each hoping that something different would happen (not unusual on linux anyway). But every attempt ended with the same error message
Quote:
ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.
and now i am presented with a list of files which i assume have no utility unless I first successfully install the nvidia driver
Moreover, I was led to understand slackbuild.org only support files slackware14.2
But i will update sbo-git directory again and check whether something else has changed (in the meantime, also the laptop has crashed; so the same resolution for both screens is not a working solution)
p.s.: one thing that puzzles me is the fact that every time i run the nvidia installer (as root and from init 3) the first screen warns me of an existing older nvidia driver 450.X.X which will be deleted if i continue with the installation process of the newer driver 455.X.X or 460.X.X. The peculiarity is that i do not have any nvidia driver installed, i have looked everywhere! How can the installer see an existing older driver when my box is only running the nouveau driver?
edit: i realized that i can not attach the Xorg.0.log.old file so, i attached the next Xorg.1.log file
Last edited by however; 12-25-2020 at 04:47 PM.
Reason: addition
p.s.: one thing that puzzles me is the fact that every time i run the nvidia installer (as root and from init 3) the first screen warns me of an existing older nvidia driver 450.X.X which will be deleted if i continue with the installation process of the newer driver 455.X.X or 460.X.X. The peculiarity is that i do not have any nvidia driver installed, i have looked everywhere! How can the installer see an existing older driver when my box is only running the nouveau driver?
edit: i realized that i can not attach the Xorg.0.log.old file so, i attached the next Xorg.1.log file
Are you passing anything regarding the video card to the kernel with your bootloader?
Have you ever installed the 450.X.X? The one on slackbuilds is 450.X.X. If nvidia is picking it up then it must be on your computer in some form. Check sbopkg to see if you haven't done so.
Are you passing anything regarding the video card to the kernel with your bootloader?
From both logs attached to post #32:
Code:
Kernel command line: auto BOOT_IMAGE=Slackware ro root=801
In the newer of those two logs, I recognize no errors of consequence. There are two. Both are benign. In the older of those two logs, there are several errors of consequence, lines including (EE), other than the first. You'll need to search for, or wait for someone else to explain, their consequence, as I'm not familiar with them or what might cause them.
Are you passing anything regarding the video card to the kernel with your bootloader?
Have you ever installed the 450.X.X? The one on slackbuilds is 450.X.X. If nvidia is picking it up then it must be on your computer in some form. Check sbopkg to see if you haven't done so.
Not passing anything re.: video with bootloader. I have not changed any settings as everything was working perfectly before 21st of December, update to kernel 5.10.2
Yes i did install the 450.X.X and also uninstalled it (not present on my installed, pkgtool, package list). So, i don't know what the installer is picking up and from where!
p.s.: Could i switch back to the kernel version before 5.10.2 without risking a total system crash and losing all my work?
Not passing anything re.: video with bootloader. I have not changed any settings as everything was working perfectly before 21st of December, update to kernel 5.10.2
Yes i did install the 450.X.X and also uninstalled it (not present on my installed, pkgtool, package list). So, i don't know what the installer is picking up and from where!
p.s.: Could i switch back to the kernel version before 5.10.2 without risking a total system crash and losing all my work?
People have different kernels on their computers. You should be able to go back to 5.4.xx. I'm no expert though since I use the stock kernel. More knowledgeable forum members can give you a certain "yes" or "no."
sbopkg splits the nvidia driver into 3. I never use it unless I have to. I accidentally made symbolic link spaghetti with it ~4 years ago on 14.1 or 14.2 which I had to manually fix.
You could drop to runlevel 3 and see if
Code:
sh NVIDIA-Linux-x86_64-450.80.02.run --uninstall
works. Something is on the system if the nvidia installer is picking it up.
People have different kernels on their computers. You should be able to go back to 5.4.xx. I'm no expert though since I use the stock kernel. More knowledgeable forum members can give you a certain "yes" or "no."
sbopkg splits the nvidia driver into 3. I never use it unless I have to. I accidentally made symbolic link spaghetti with it ~4 years ago on 14.1 or 14.2 which I had to manually fix.
You could drop to runlevel 3 and see if
Code:
sh NVIDIA-Linux-x86_64-450.80.02.run --uninstall
works. Something is on the system if the nvidia installer is picking it up.
Sorry that I'm not much help.
All help is highly appreciated. Thank you so much for all the hints & tips.
I am now trying a new possible solution given here
works. Something is on the system if the nvidia installer is picking it up.
it didn't work!
I searched the entire file system for any nvidia refernces and I found 8 nvidia.x.x.bz2 files in /var/cache/sbopkg; I deleted all of them but it still didnt clear the system as the 'error' message showed above still comes up
I've seen it suggested more than once that a reinstallation of the unwanted NVidia driver be done in order to make --uninstall work.
Thank you. It did solve the issue of completely removing the old driver from the system.
however, the problem with installing the new nvidia proprietary driver persist; same error message:
Quote:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA GPU(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.
The nvidia kernel just will not build
After upgrading to the new kernel 5.10.3, the screen glitching and random crash/freeze still happen on both desktop (with reasonably new video card) and laptop (using an nvidia legacy driver).
comparing the desktop packages with the packages installed on the laptop (they are both running on slackare current with same upgrades). I realized that, somehow, i must have mistakenly uninstalled the nouveua accelerated diver (xf86-video-nouveau.X package). I reinstalled it and I have had no system crash/freeze so far, however the glitching seems to have increased.
Before the kernel 5.10 upgrade (to 5.10.2) i also had cudatoolkit installed (which i uninstalled to try to replace it with the proprietary nvidia driver). I have learned that the cudatoolkit contains several nvidia accelerator libraries but the queue file will also install, again, the old nvidia kernel and driver (nvidia-driver450.80.02-2).
Would it make any sense to reinstall the full cudatoolkit at all? and if so, the whole queue file or, just the package?
and again, ignore my previous msg!
system crashed (although, I still had the use of keyboard, so ctrl+alt+del to log out and log back in)
waiting desperately for next kernel patch (
comparing the desktop packages with the packages installed on the laptop (they are both running on slackare current with same upgrades). I realized that, somehow, i must have mistakenly uninstalled the nouveua accelerated diver (xf86-video-nouveau.X package). I reinstalled it and I have had no system crash/freeze so far, however the glitching seems to have increased.
Before the kernel 5.10 upgrade (to 5.10.2) i also had cudatoolkit installed (which i uninstalled to try to replace it with the proprietary nvidia driver). I have learned that the cudatoolkit contains several nvidia accelerator libraries but the queue file will also install, again, the old nvidia kernel and driver (nvidia-driver450.80.02-2).
Would it make any sense to reinstall the full cudatoolkit at all? and if so, the whole queue file or, just the package?
I would remove the cudatoolkit until you get the driver situation figured out. Is there a reason why you are using it?
I would remove the cudatoolkit until you get the driver situation figured out. Is there a reason why you are using it?
I think some months ago i installed it as a dependency of another package but, no i don't need it anymore
Quote:
nvidia 460 driver is on slackbuilds.org. Maybe contact the maintainer (email listed on slackbuilds.org):
for months, maybe years, i have been led to believe that slackbuilds packages were acceptable for slackware 14.2, not current; thats why i haven't considered it
tried several/may times! the outcome was always the "Unable to load the kernel module ‘nvidia.ko'..." message
Quote:
I just use the nvidia.run file so I don't know what is going on.
it's also hard to try one solution when someone gives conflicting hints (not to install the nouveau-blacklist package and then someone else tells you the opposite)
now, i tried to:
1) build the nvidia-kernel with no variable
2) build the nvidia-driver passing the COMPAT32="yes" and CURRENT="yes" variables, as suggested on the README file
3) blacklist nouveau, as suggested on the README file
4) install the TGZs pckgs with installplkg
5) rebooted
OUTCOME
1) screen resolution 1024x768
2) both nvidia kernel and driver 460.X.X are installed
3) nvidia-settings from console gives me:
Quote:
bash-5.1$ nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system
bash-5.1$ nvidia-settings -v
nvidia-settings: version 460.27.04
The NVIDIA X Server Settings tool.
This program is used to configure the NVIDIA Linux graphics driver.
For more detail, please see the nvidia-settings(1) man page.
bash-5.1$
the drivers are there but the settings are unable to load. What am i not doing this time?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.