[opensuse] DKMS and Nvidia
I have installed DKMS package. When installing the Nvidia driver, there was an option to register it with DKMS. There was a message that if the kernel is updated in future, Nvidia module will be automatically updated. Can anyone with experience of DKMS and Nvidia confirm if this happens automatically or how this works? I have no experience of it. Regards. -- Sudhir Anand -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op woensdag 12 juli 2017 11:15:31 CEST schreef Sudhir Anand:
I have installed DKMS package. When installing the Nvidia driver, there was an option to register it with DKMS. There was a message that if the kernel is updated in future, Nvidia module will be automatically updated.
Can anyone with experience of DKMS and Nvidia confirm if this happens automatically or how this works? I have no experience of it.
Regards.
Yes. At the time I did it worked like this: new kernel -> reboot -> dkms rebuilds -> reboot done. But it should be possible to have dkms do this immediately after updating the kernel. -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wednesday, 12 July 2017 19:28:17 ACST Knurpht - Gertjan Lettink wrote:
Op woensdag 12 juli 2017 11:15:31 CEST schreef Sudhir Anand:
I have installed DKMS package. When installing the Nvidia driver, there was an option to register it with DKMS. There was a message that if the kernel is updated in future, Nvidia module will be automatically updated.
Can anyone with experience of DKMS and Nvidia confirm if this happens automatically or how this works? I have no experience of it.
Regards.
Yes. At the time I did it worked like this: new kernel -> reboot -> dkms rebuilds -> reboot done.
But it should be possible to have dkms do this immediately after updating the kernel.
Yes - it Just Works (TM). :) VirtualBox can use the same mechanism to update its modules (if you’re using the Oracle version rather than the openSuSE repo version), but there is a little bit of config needed (or at least there was, back when I first installed it). The only time you’ll run into trouble is if the kernel structures change and break compatibility with the installed version of the nvidia driver, in which case you’ll need a patch for your current driver, or an updated version. There is one other caveat - sometimes system updates overwrite openGL or x.org files that the nvidia driver depends on. This can break things in unpredictable ways, even if the module builds and installs correctly. I have, as a rule, re-installed the nvidia driver every time there is a major kde/ plasma update or any updates involving X or openGL/Mesa (which, for tumbleweed, is basically every time I run zypper dup). Of course, if you’re using the nvidia version from the openSuSE repos, in theory you don’t have to worry about any of that, but I’ve always preferred to use the nvidia version (mainly for historical reasons, I guess). Regards, Rodney. -- ============================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ============================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wednesday, 12 July 2017 12:46:36 BST Rodney Baker wrote:
On Wednesday, 12 July 2017 19:28:17 ACST Knurpht - Gertjan Lettink wrote:
Op woensdag 12 juli 2017 11:15:31 CEST schreef Sudhir Anand:
I have installed DKMS package. When installing the Nvidia driver, there was an option to register it with DKMS. There was a message that if the kernel is updated in future, Nvidia module will be automatically updated.
Can anyone with experience of DKMS and Nvidia confirm if this happens automatically or how this works? I have no experience of it.
Regards.
Yes. At the time I did it worked like this: new kernel -> reboot -> dkms rebuilds -> reboot done.
But it should be possible to have dkms do this immediately after updating the kernel.
Yes - it Just Works (TM). :) VirtualBox can use the same mechanism to update its modules (if you’re using the Oracle version rather than the openSuSE repo version), but there is a little bit of config needed (or at least there was, back when I first installed it).
The only time you’ll run into trouble is if the kernel structures change and break compatibility with the installed version of the nvidia driver, in which case you’ll need a patch for your current driver, or an updated version.
There is one other caveat - sometimes system updates overwrite openGL or x.org files that the nvidia driver depends on. This can break things in unpredictable ways, even if the module builds and installs correctly. I have, as a rule, re-installed the nvidia driver every time there is a major kde/ plasma update or any updates involving X or openGL/Mesa (which, for tumbleweed, is basically every time I run zypper dup).
Of course, if you’re using the nvidia version from the openSuSE repos, in theory you don’t have to worry about any of that, but I’ve always preferred to use the nvidia version (mainly for historical reasons, I guess).
Regards, Rodney.
Thank you for your response. I will bear these in mind if the module is not updated. I run both leap and TW. In both cases I install drivers from Nvidia. At the moment, Leap uses Nvidia's standard drivers but for TW I have a version with three patches applied. I am using Nvidia's legacy driver as my laptop is about 7 years old. Regards. -- Sudhir Anand
Sudhir Anand wrote:
Thank you for your response. I will bear these in mind if the module is not updated.
I run both leap and TW. In both cases I install drivers from Nvidia. At the moment, Leap uses Nvidia's standard drivers but for TW I have a version with three patches applied. I am using Nvidia's legacy driver as my laptop is about 7 years old. Make sure, that you run the Nvidia installer with the option --sanity after snapshot updates on TW. Otherwise DKMS can still ensure, that you have the right kernel module, but library files can be overwritten by TW updates.
Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wednesday, 12 July 2017 22:43:19 BST Bjoern Voigt wrote:
Sudhir Anand wrote:
Thank you for your response. I will bear these in mind if the module is not updated.
I run both leap and TW. In both cases I install drivers from Nvidia. At the moment, Leap uses Nvidia's standard drivers but for TW I have a version with three patches applied. I am using Nvidia's legacy driver as my laptop is about 7 years old.
Make sure, that you run the Nvidia installer with the option --sanity after snapshot updates on TW. Otherwise DKMS can still ensure, that you have the right kernel module, but library files can be overwritten by TW updates.
Greetings, Björn
Thank you for that tip. Will bear in mind. -- Sudhir Anand -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wednesday, 12 July 2017 10:58:17 BST Knurpht - Gertjan Lettink wrote:
Op woensdag 12 juli 2017 11:15:31 CEST schreef Sudhir Anand:
I have installed DKMS package. When installing the Nvidia driver, there was an option to register it with DKMS. There was a message that if the kernel is updated in future, Nvidia module will be automatically updated.
Can anyone with experience of DKMS and Nvidia confirm if this happens automatically or how this works? I have no experience of it.
Regards.
Yes. At the time I did it worked like this: new kernel -> reboot -> dkms rebuilds -> reboot done.
But it should be possible to have dkms do this immediately after updating the kernel.
Thank you for your response. I will try that next time there is a kernel update. Regards. -- Sudhir Anand -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 07/12/2017 04:15 AM, Sudhir Anand wrote:
Can anyone with experience of DKMS and Nvidia confirm if this happens automatically or how this works? I have no experience of it.
Yep, works just like it is supposed to and has for all the kernel-updates on 42.2. (quite nice actually) DKMS has matured quite well. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Bjoern Voigt
-
David C. Rankin
-
Knurpht - Gertjan Lettink
-
Rodney Baker
-
Sudhir Anand