Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42

Thread: Again about nvidia

  1. #1
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Again about nvidia

    Hello,

    I have installed nvidia 396.18 with kernel 4.16 in "hard way". With nvidia-installer.
    I have two kernels: 4.16 and 4.15.3. When I boot from 4.15.3 the pc stops with command prompt who flicker.
    I boot with 4.15.3 (runlevel 3). When I try to install nvidia 396.18 again, it said that it it installed.
    How can I boot with kernel 4.13.3 and nvidia?
    Thank you.

  2. #2

    Default Re: Again about nvidia

    Quote Originally Posted by another_roadrunner View Post
    How can I boot with kernel 4.13.3 and nvidia?
    Do you have the devel packages (kernel-devel, kernel-default-devel, kernel-source) for kernel 4.15.3 installed?
    Otherwise compiling the kernel module will fail (and it has to be built for each kernel), which will prevent the nvidia driver to work.

    /var/log/Xorg.0.log (resp. /var/log/Xorg.0.log.old after a reboot) should show what's going wrong.
    But for me the likely reason is that the kernel module (for kernel 4.15.3) is not installed/cannot be loaded, and xorg.conf forces the nvidia driver.

  3. #3
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: Again about nvidia

    I have installed kernel-devel and devel-default for 4.15.3. Not Kernel-source.

  4. #4
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: Again about nvidia

    I have installed now for 4.16: zypper in -t pattern devel_C_C++ devel-kernel.
    For 4.15.3 I cannot install.
    I think I understand.
    Now I have all I need for 4.16.0-1 kernel.
    When will appear new kernel 4.16.x, 4.16.0-1 will be the old kernel but I have all I need for compile the kernel module.
    Thank you.
    I have to read better wiki.


  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: Again about nvidia

    The latest NVIDIA beta driver seems to contain the necessary patch to build the driver agains kernel 4.16 . Mind that a change in the NVIDIA driver version implies that previously installed driver versions will not work anymore, since the NVIDIA blob expects everything to be the same version. So, for previous kernels, you should reinstall the version you installed on 4.16
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6

    Default Re: Again about nvidia

    Quote Originally Posted by Knurpht View Post
    So, for previous kernels, you should reinstall the version you installed on 4.16
    AFAIK, the .run installer should compile/install the kernel module for all installed kernels though.

    You need to reinstall it after a kernel update though, as the kernel module will not automatically be recompiled/installed to the new kernel (unless you use DKMS).

  7. #7
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: Again about nvidia

    When I boot with 4.15.3 kernel, I tried to install nvidia 396.18 but it said that it is installed.

    I think that is the procedure:
    Install : zypper in -t pattern devel_C_C++ devel-kernel.
    When a kernel update, for old kernel that packages (
    devel_C_C++ devel-kernel) will remain.
    Boot with new kernel.
    Uninstall nvidia. (./nvidia-installer --uninstall)
    Install nvidia (./nvidia-installer). This new install will work with both kernels (the old kernel will have now all it need for compile nvidia driver).

    I will wait for a new kernel to test what I said.

  8. #8

    Default Re: Again about nvidia

    Quote Originally Posted by another_roadrunner View Post
    When I boot with 4.15.3 kernel, I tried to install nvidia 396.18 but it said that it is installed.
    Yes, because it *is* installed, the X driver at least.

    I think that is the procedure:
    Install : zypper in -t pattern devel_C_C++ devel-kernel.
    When a kernel update, for old kernel that packages (
    devel_C_C++ devel-kernel) will remain.

    Yes.

    Boot with new kernel.
    Uninstall nvidia. (./nvidia-installer --uninstall)
    Install nvidia (./nvidia-installer). This new install will work with both kernels (the old kernel will have now all it need for compile nvidia driver).
    Indeed.
    Though I believe there is a way to just recompile/reinstall the kernel module by running nvidia-installer (which should be installed too, to /usr/bin/) with some option, but I can't tell you how exactly.
    Last edited by wolfi323; 11-Apr-2018 at 09:59.

  9. #9
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: Again about nvidia

    Quote Originally Posted by wolfi323 View Post
    Though I believe there is a way to just recompile/reinstall the kernel module by running nvidia-installer (which should be installed too, to /usr/bin/) with some option, but I can't tell you how exactly.
    In Yast I find only kernel-source 4.16. Not the 4.15.3 one.
    I think that you are right. For recompile kernel module I need kernel-source for 4.15.3 but I cannot install it.
    So I will wait the new kernel to test and find how we have to proceed.
    Thank you.

  10. #10

    Default Re: Again about nvidia

    Quote Originally Posted by another_roadrunner View Post
    In Yast I find only kernel-source 4.16. Not the 4.15.3 one.
    Yes, unfortunately old packages are not kept in the repos, not even for the multiversion stuff like the kernel.
    That's why I didn't suggest to install it and try again...

    At this moment, the old version is still on the servers though, so you could download and install it manually.
    E.g.:
    Code:
    sudo rpm -ivh https://download.opensuse.org/tumbleweed/repo/oss/noarch/kernel-source-4.15.13-2.4.noarch.rpm
    I forgot to mention kernel-syms though, that may also be required (or may remove the need for kernel-source), but I don't know what the nvidia .run installer exactly expects or needs.

    OTOH, if you don't have a real reason to boot kernel 4.15.3 (e.g. because 4.16.0 gives you problems), you could also just forget about it...

Page 1 of 5 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •