You are not logged in.

#1 2016-12-16 13:51:33

kabads
Member
Registered: 2012-09-22
Posts: 271
Website

[Solved] Updating Nvidia after new kernel update

I've just updated my laptop with

$ pacman -Syu

and everything seemed to go smoothly. However, when restarting, X won't load as the nvidia driver is complaining about no screen found. My guess is that this is because the nvidia hasn't been compiled against the new kernel.

Is there a way of uninstalling the nvidia driver and then forcing it to clean the cache before reinstalling it? I'm using the kernel from the extra repository, not the aur version.

If this doesn't work, I might be tempted to roll back to my last kernel version as that played very nicely with nvidia.

Any advice is gratefully received.

TIA

Last edited by kabads (2016-12-16 16:21:06)

Offline

#2 2016-12-16 13:57:53

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

Re: [Solved] Updating Nvidia after new kernel update

Why are you guessing instead of looking at the logs?

As long as you're using the driver in the repos, your assumption should be incorrect.

Last edited by Scimmia (2016-12-16 13:59:03)

Offline

#3 2016-12-16 15:54:11

kabads
Member
Registered: 2012-09-22
Posts: 271
Website

Re: [Solved] Updating Nvidia after new kernel update

This is what I'm getting from the logs

[   685.191] (II) Loading sub module "ramdac"
[   685.191] (II) LoadModule: "ramdac"
[   685.191] (II) Module "ramdac" already built-in
[   685.191] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please                                                                              see the
[   685.191] (EE) NVIDIA:     system's kernel log for additional error messages                                                                              and
[   685.191] (EE) NVIDIA:     consult the NVIDIA README for details.
[   685.191] (II) modeset(G0): using drv /dev/dri/card0
[   685.191] (EE) No devices detected.
[   685.191] (EE)
Fatal server error:
[   685.191] (EE) no screens found(EE)
[   685.191] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   685.191] (EE) Please also check the log file at "/home/adam/.local/share/xor                                                                             g/Xorg.0.log" for additional information.
[   685.191] (EE)

Offline

#4 2016-12-16 15:58:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,319
Website

Re: [Solved] Updating Nvidia after new kernel update

That is a log, singular. It's not even a complete one...

What does the journal say?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-12-16 16:13:47

kabads
Member
Registered: 2012-09-22
Posts: 271
Website

Re: [Solved] Updating Nvidia after new kernel update

Dec 16 15:36:08 hark kernel: NVRM: API mismatch: the client has the version 375.26, but
                             NVRM: this kernel module has the version 375.20.  Please
                             NVRM: make sure that this kernel module and all NVIDIA driver
                             NVRM: components have the same version.

Hmm- I've just installed the usual version of nvidia - not sure how to get the version that the kernel is expecting.

Offline

#6 2016-12-16 16:16:03

kabads
Member
Registered: 2012-09-22
Posts: 271
Website

Re: [Solved] Updating Nvidia after new kernel update

It seems that this might be the same problem that this person was having - http://funloop.org/post/2014-06-04-nvrm … match.html - doesn't mkinitcpio get triggered automatically during the update?

Offline

#7 2016-12-16 16:20:44

kabads
Member
Registered: 2012-09-22
Posts: 271
Website

Re: [Solved] Updating Nvidia after new kernel update

Fixed with

$ mkinitcpio -p linux 

and then reboot.

Offline

#8 2016-12-17 13:03:04

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: [Solved] Updating Nvidia after new kernel update

Unless you have explicitly added the nvidia modules to the mkinitcpio.conf file, this should not be needed as far as I know.
To prevent this in the future you could either remove the nvidia modules from your mkinitcpio.conf (assuming you're not using modesetting anyway) or configure a hook for pacman to run `mkinitcpio -p linux` on driver update.
The wiki has a hook for that here: https://wiki.archlinux.org/index.php/NVIDIA#Pacman_hook

Offline

Board footer

Powered by FluxBB