You are not logged in.

#1 2017-02-05 16:50:53

CoreCat
Member
Registered: 2017-02-05
Posts: 23

[SOLVED]Nvidia driver module not found

Hi,

I succesfully installed arch this week following the instructions on the arch wiki. After that I installed the nvidia proprietary drivers and the necessary Xorg packages with pacman.
After rebooting the system and trying to start an Xsession I got the error
unable to connect to X server and unexpected signal 2.
I narrowed the problem down to it being that my nvidia drivers aren't installed properly. My Xorg.log.0 file ends with the first error being
Failed to initialize the NVIDIA kernel module. Please see the system's kernel log for additional error messages and consult the NVIDIA README for details.

From this I understood that - altough the instructions on the arch wiki say to first; download the necessary packages with pacman, secondly; configuring X with

nvidia-xconfig

, (which I both did) - the kernel modules still weren't loaded properly.
I then looked up how to do this, and tried

sudo systemctl enable nvidia

which gave the error Failed to enable unit: File nvidia.services: No such file or directory.
I also tried

sudo modprobe nvidia

which gave me FATAL: Module nvidia not found in directory /lib/modules/4.4.46-1-lts".

And that error is correct, since the modules are in the directory /lib/modules/extramodules-4.9-ARCH.

I don't know if this location is normal, from what I've read I don't think so, and I haven't found any information on where pacman should put the nvidia files. I also don't know which file in /lib/modules/extramodules-4.9-ARCH needs to be loaded. (Also, the files have 4.9 in them, something else then the current kernel I'm using, 4.4.46-1-lts)

So my question is if it's normal that the files for the nvidia drivers are where they are, and what I need to do to fix it, or where I read about it. Also if someone knows what information I'm missing (that's not on the wiki) and where I can read about it, please tell me, because the reason I'm stuck is mainly due to me not knowing how it should work. Just following steps only works out if things go as planned.

Thank you.

System information

My graphics card:
NVIDIA Corporation GM204 [Geforce GTX 970]  (Kernel modules: nouveau) never installed nouveau

Kernel version:

uname -r
4.4.46-1-lts

Output of

systemctl is-active nvidia
inactive

Installed nvidia packages (I installed some extra nvidia-related packages afterwards):

pacman -Ql nvidia
nvidia /usr/
nvidia /usr/lib/
nvidia /usr/lib/modprobe.d
nvidia /usr/lib/modprobe.d/nvidia.conf
nvidia /usr/lib/modules/
nvidia /usr/lib/modules/extramodules-4.9-ARCH/
nvidia /usr/lib/modules/extramodules-4.9-ARCH/nvidia-drm.ko.gz
nvidia /usr/lib/modules/extramodules-4.9-ARCH/nvidia-modeset.ko.gz
nvidia /usr/lib/modules/extramodules-4.9-ARCH/nvidia-uvm.ko.gz
nvidia /usr/lib/modules/extramodules-4.9-ARCH/nvidia.ko.gz

Last edited by CoreCat (2017-02-05 17:25:43)

Offline

#2 2017-02-05 16:58:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED]Nvidia driver module not found

Kernel modules are specific to the kernel they're built for. Install the correct package for the kernel you're using.

Offline

#3 2017-02-05 16:58:54

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

Re: [SOLVED]Nvidia driver module not found

From NVIDIA

For GeForce 400 series cards and newer [NVCx and newer], install the nvidia or nvidia-lts package along with nvidia-libgl.

For the linux-lts kernel you need the matching nvidia-lts package.

It is possible that after installing the driver it may not be needed to create an Xorg server configuration file.

It is recomended to start with no xorg.conf.
edit:
Add missing link

Last edited by loqs (2017-02-05 16:59:43)

Offline

#4 2017-02-05 17:03:12

CoreCat
Member
Registered: 2017-02-05
Posts: 23

Re: [SOLVED]Nvidia driver module not found

Okay thanks, I'm going to try to deïnstall the current nvidia packages and search for the right ones and install those.

Offline

#5 2017-02-05 17:24:15

CoreCat
Member
Registered: 2017-02-05
Posts: 23

Re: [SOLVED]Nvidia driver module not found

Thanks alot! It worked. I hadn't tought there was a difference between lts and the other in terms of modules, kinda logical tough.

I had used manjaro before, and this is the first time I got my nvidia card working on an arch-based system.
Seems I'm not familiar enough with pacman yet.

Again, thanks for the quick answer, Scimmia and Ioqs!

Offline

#6 2017-02-05 17:26:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [SOLVED]Nvidia driver module not found

Be sure to edit your first post and prepend [SOLVED] to the thread title.
Edit:  Never Mind smile

Last edited by ewaller (2017-02-05 17:26:32)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2019-07-01 04:38:37

彦祖
Member
Registered: 2019-07-01
Posts: 1

Re: [SOLVED]Nvidia driver module not found

same problem with me ,solved by pacman -S nvidia-lts

Offline

#8 2019-07-01 05:02:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]Nvidia driver module not found

Don't necrobump, especially solved threads:

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB