nvidia-dkms-390: better support for kernel 6.2

Bug #2019869 reported by Andrea Righi
72
This bug affects 13 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-390 (Ubuntu)
Fix Released
Medium
Andrea Righi
Jammy
Fix Released
Undecided
Unassigned
Lunar
Fix Released
Medium
Andrea Righi
Mantic
Fix Released
Medium
Andrea Righi

Bug Description

[Impact]

Instead of disabling acpi support completely with nvidia-dkms-390, we should try instead to see if it's possible to support it somehow.

[Fix]

This patch looks promising (even if it says huge hack in the comments...):
https://gitlab.com/herecura/packages/nvidia-390xx-dkms/-/blob/780a3c8b159f24c14e6c1cb35fd747338aefea39/kernel-6.2.patch

Apply this patch and drop any 6.0 and 6.2 related patches.

[Regression potential]

With this patch nvidia-dkms-390 should build against 6.2 kernels without disabling any feature, but users of this driver may experience kernel bugs / crashes. However, the nvidia 390 driver is unmaintained so we should start to consider phasing it out.

Revision history for this message
Andrea Righi (arighi) wrote :
no longer affects: nvidia-graphics-drivers-390 (Ubuntu Kinetic)
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-390 - 390.157-0ubuntu6

---------------
nvidia-graphics-drivers-390 (390.157-0ubuntu6) mantic; urgency=medium

  [ Andrea Righi ]
  * debian/templates/dkms_nvidia.conf.in,
    debian/dkms_nvidia/patches/disable-acpi-support-in-linux-6.0.patch,
    debian/dkms_nvidia/patches/buildfix_kernel_6.2.patch:
    - Better support for linux 6.2 (LP: #2019869).

  [ Paolo Pisati ]
  * debian/templates/dkms_nvidia.conf.in,
    debian/dkms_nvidia/patches/buildfix_kernel_6.3.patch:
    - Support linux 6.3 ABI (LP: #2019979).

 -- Alberto Milone <email address hidden> Thu, 18 May 2023 10:42:02 +0000

Changed in nvidia-graphics-drivers-390 (Ubuntu Mantic):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-390 (Ubuntu Jammy):
status: New → Confirmed
Changed in nvidia-graphics-drivers-390 (Ubuntu Lunar):
status: New → Confirmed
Revision history for this message
Andrea Righi (arighi) wrote (last edit ):

Wrong debdiff, ignore this.

Revision history for this message
Andrea Righi (arighi) wrote (last edit ):

Here's a new one cleaned up properly for lunar, ignore comment #5.

Revision history for this message
Andrea Righi (arighi) wrote (last edit ):

And here's the debdiff for jammy. Same fix.

Changed in nvidia-graphics-drivers-390 (Ubuntu Mantic):
assignee: nobody → Andrea Righi (arighi)
Changed in nvidia-graphics-drivers-390 (Ubuntu Lunar):
assignee: nobody → Andrea Righi (arighi)
importance: Undecided → Medium
Changed in nvidia-graphics-drivers-390 (Ubuntu Mantic):
importance: Undecided → Medium
Revision history for this message
zniavre (zniavre2048-gmail) wrote :

does the patch will come to lunar please ? what i understand is only supplied for mantic ?

Revision history for this message
Andrea Righi (arighi) wrote :

@zniavre in comment #6 I posted a patch for lunar, so it'll be applied also there at some point.

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Andrea, or anyone else affected,

Accepted nvidia-graphics-drivers-390 into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/390.157-0ubuntu0.22.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in nvidia-graphics-drivers-390 (Ubuntu Jammy):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-jammy
Changed in nvidia-graphics-drivers-390 (Ubuntu Lunar):
status: Confirmed → Fix Committed
tags: added: verification-needed-lunar
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Andrea, or anyone else affected,

Accepted nvidia-graphics-drivers-390 into lunar-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/390.157-0ubuntu5.23.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-lunar to verification-done-lunar. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-lunar. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Bojan Bogojevic (bojan023) wrote (last edit ):

I've been able to install the latest package from lunar-proposed on my HP Elitebook 8570W. Ubuntu boots but as with the previous version, no GUI but just a black screen with white blinking underscore. Only fix is to change to another tty and deinstall. I have searched in dmesg for any errors but there were none. What logs are of interest to share?

Changed in nvidia-graphics-drivers-390 (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
ab (avboag) wrote :

I have an old desktop with a nvidia GT 610. Unfortunately, using the package from lunar-proposed changed nothing.

Revision history for this message
Jakka Prihatna (jprihatna) wrote :

Asus N46VM with nvidia GT 630M here.

I can confirm too, the package nvidia-driver-390 version 390.157-0ubuntu5.23.04.1 does not fix anything on my Ubuntu 23.04 (Kernel 6.2.0-20).

Same with @bojan023, after installing the package and rebooting, I'm left with black screen just after the boot logo is shown. I had to revert back to using nouveau to be able to log to GUI.

Revision history for this message
Sam Colegrove (colegrove479) wrote :

I can install nvidia-390 and it works on my Kubuntu 23.10 laptop monitor, however the external monitor is not detected and does not work. If I remove Nvidia 390 as well a bumblebee-NVIDIA, the external monitor works without a problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-390 - 390.157-0ubuntu0.22.04.2

---------------
nvidia-graphics-drivers-390 (390.157-0ubuntu0.22.04.2) jammy; urgency=medium

  * debian/dkms_nvidia.conf,
    debian/templates/dkms_nvidia.conf.in,
    debian/dkms_nvidia/patches/buildfix_kernel_6.2.patch:
    - Better support for linux 6.2 (LP: #2019869)

 -- Andrea Righi <email address hidden> Thu, 25 May 2023 12:36:51 +0000

Changed in nvidia-graphics-drivers-390 (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Liam Proven (lproven) wrote :

Still happening for me on both 23.10 (which won't detect my GF199 GPU at all and has no nVidia utils package) and a black screen after the last kernel update on 22.04.

Revision history for this message
Louis (darkenlx) wrote :

does not install 22.04 kernel 6.5.0-14-generic
make.log attatched

Revision history for this message
Louis (darkenlx) wrote :

crash log attached

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.