Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when upgrading to Linux 5.2, NVIDIA driver is not loading #14377

Closed
hesifwood opened this issue Sep 10, 2019 · 3 comments
Closed

when upgrading to Linux 5.2, NVIDIA driver is not loading #14377

hesifwood opened this issue Sep 10, 2019 · 3 comments

Comments

@hesifwood
Copy link

System

Void Linux running with NVIDIA GeForce GT 1030 gpu on proprietary drivers. I installed the nvidia package when setting up.

  • xuname:
    Void 5.2.13_1 x86_64 GenuineIntel uptodate rFFFF
  • package:
    linux5.2-5.2.13_1, nvidia-430.14_2

Expected behavior

Being able to get proper resolution like before on 4.19 and open nvidia-settings without errors after upgrading to Linux 5.2

Actual behavior

When GRUB booted to 5.2, the resolution was not like before and running nvidia-settings showed me this error:

$ nvidia-settings

ERROR: NVIDIA driver is not loaded


ERROR: Unable to load info from any available system

lxrandr was showing resolution 1024x768 under 5.2 and 1366x768 under 4.19.

Steps to reproduce the behavior

  • I upgraded recently with sudo xbps-install -Syu
  • I had standard Void install, so it automatically installed Linux 5.2 (probably due to this change)
  • When I did a reboot it booted into 5.2 and the screen resolution was not ok and nvidia-settings was showing error

I posted on reddit and got the solution:

sudo sh -c "xbps-install -f nvidia-dkms ; depmod -a"

Afterwards a reboot made it work fine again. Resolution came back to normal and nvidia-settings was launching without errors. So should this be automatically running somehow? Or if not possible, maybe showing a post-install message would be a good idea?

@123randomuser321
Copy link
Contributor

123randomuser321 commented Sep 10, 2019

Can second the issue.

During the update itself the dkms module fails to build, but this is known, see: #12959 (comment)

I would also recommend a post-install message for this.

EDIT: This issue applies to all nvidia*-dkms packages, of course.

@Duncaen
Copy link
Member

Duncaen commented Sep 10, 2019

This should be resolved by 9861370.

xbps-reconfigure -f nvidia-dkms triggers the xbps dkms hook /usr/libexec/xbps-triggers/dkms,
which already exported IGNORE_CC_MISMATCH=1, while the /etc/kernel.d hook which triggers dkms rebuilds on kernel updates/installs didn't export it.

So xbps-install -Su would rebuild the module using the kernel hook and fails, while xbps-reconfigure -f nvidia-dkms uses the other trigger which already makes the dkms script ignore the mismatch.

@Duncaen Duncaen closed this as completed Sep 10, 2019
@123randomuser321
Copy link
Contributor

Thanks for the quick reply/fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants