Can't keep brightness value after reboot/poweroff in some nvidia gfx

Bug #1885087 reported by hugh chao
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
Status tracked in Focal
Bionic
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned
nvidia-graphics-drivers-450 (Ubuntu)
Fix Released
High
Alberto Milone
Bionic
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Alberto Milone
Groovy
Fix Released
Undecided
Unassigned
nvidia-graphics-drivers-455 (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned
Groovy
Fix Released
Undecided
Unassigned

Bug Description

systemd-backlight saves the brightness value right before shutdown.target, however it doesn't work because the nvidia_0 backlight sysfs disappears after GFX device is closed by Xorg, long before shutdown.target.

[Impact]
System can not keep the brightness value, after reboot/poweroff the brightness will still be highest.

[Fix]
Suggested by Nvidia, we need to run nvidia-persistenced.service before systemd-backlight@backlight:nvidia_0.service

[Test Case]
Adjust the brightness value, reboot, the value must keep persistence during boots.

[Regression Risk]
Low, this fix is just adjust the systemd order more earier.

https://github.com/hugh712/nvidia-graphics-drivers

CVE References

hugh chao (hugh712)
information type: Proprietary → Public
Changed in oem-priority:
assignee: nobody → hugh chao (hugh712)
importance: Undecided → Critical
status: New → Confirmed
hugh chao (hugh712)
tags: added: originate-from-1878580 stella
tags: added: oem-priority
hugh chao (hugh712)
description: updated
Revision history for this message
hugh chao (hugh712) wrote :
Changed in nvidia-graphics-drivers-440 (Ubuntu Focal):
assignee: nobody → Alberto Milone (albertomilone)
Changed in nvidia-graphics-drivers-440 (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
status: New → Triaged
Changed in nvidia-graphics-drivers-440 (Ubuntu Focal):
status: New → Triaged
affects: nvidia-graphics-drivers-440 (Ubuntu) → nvidia-graphics-drivers-450 (Ubuntu)
Changed in nvidia-graphics-drivers-450 (Ubuntu):
importance: Undecided → High
status: Triaged → In Progress
Changed in nvidia-graphics-drivers-450 (Ubuntu Focal):
status: Triaged → In Progress
Revision history for this message
Andy Whitcroft (apw) wrote : Please test proposed package

Hello hugh, or anyone else affected,

Accepted nvidia-graphics-drivers-455 into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-455/455.45.01-0ubuntu0.20.10.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-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. 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.

tags: added: verification-needed verification-needed-groovy
Changed in nvidia-graphics-drivers-455 (Ubuntu):
status: New → Fix Committed
Changed in nvidia-graphics-drivers-455 (Ubuntu Groovy):
status: New → Fix Committed
Changed in nvidia-graphics-drivers-455 (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed-focal
Revision history for this message
Andy Whitcroft (apw) wrote :

Hello hugh, or anyone else affected,

Accepted nvidia-graphics-drivers-455 into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-455/455.45.01-0ubuntu0.20.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-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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-455 (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed-bionic
Revision history for this message
Andy Whitcroft (apw) wrote :

Hello hugh, or anyone else affected,

Accepted nvidia-graphics-drivers-455 into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-455/455.45.01-0ubuntu0.18.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-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. 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
hugh chao (hugh712) wrote :

tried nvidia-graphics-drivers-455 in focal which can fix this issue, I didn't observe any regression.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
hugh chao (hugh712) wrote :

tried nvidia-graphics-drivers-455 in groovy which can fix this issue, I didn't observe any regression.

tags: added: verification-done-groovy
removed: verification-needed-groovy
Revision history for this message
hugh chao (hugh712) wrote :

tried nvidia-graphics-drivers-455 in bionic which can fix this issue, I didn't observe any regression.

tags: added: verification-done-bionic
removed: verification-needed-bionic
Changed in oem-priority:
status: Confirmed → Fix Committed
Revision history for this message
Lukas Waymann (meribold) wrote :

We found that running `prime-select intel` on a machine without an integrated GPU results in the machine failing to boot. This could be considered user error, but it could also be considered a regression, because we didn't observe this behavior with driver version 455.38.

You can find our full test results at <https://docs.google.com/spreadsheets/d/19-dE4YIiIV5sfDkmN3le45nb7KLrLUMnbNTWeQiYBz8>.

Revision history for this message
Alberto Milone (albertomilone) wrote :

The reason why "prime-select intel" works on non-hybrid system does not depend on the driver. It has been missing a relevant check since we added support for AMD integrated cards.

Revision history for this message
Andy Whitcroft (apw) wrote : Update Released

The verification of the Stable Release Update for nvidia-graphics-drivers-455 has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

This bug was fixed in the package nvidia-graphics-drivers-455 - 455.45.01-0ubuntu0.20.04.1

---------------
nvidia-graphics-drivers-455 (455.45.01-0ubuntu0.20.04.1) focal; urgency=medium

  * New upstream release (LP: #1904863):
    - Fixed a bug in a Vulkan blending optimization that could
      produce incorrect results. Some of the Vulkan titles affected
      by this bug were:
        Life is Strange 2
        Shadow of the Tomb Raider
    - Fixed an issue that caused Vulkan swapchain creation to fail
      for full-screen windows when a G-SYNC monitor is connected.

  [ Kai-Heng Feng ]
  * debian/71-nvidia.rules:
    - Add rules to enable runtimepm by default.

  [ Alberto Milone ]
  * debian/add-ids-to-json-db,
    debian/additional_runtimepm_ids,
    debian/rules:
    - Make it possible to add new IDs to mark support
      for runtimepm.
  * debian/templates/nvidia-compute-utils-flavour.nvidia-persistenced.service.in:
    - Run persistenced.service before systemd-backlight@backlight:nvidia_0
      (LP: #1885087).

 -- Alberto Milone <email address hidden> Thu, 19 Nov 2020 15:24:54 +0100

Changed in nvidia-graphics-drivers-455 (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-455 - 455.45.01-0ubuntu0.18.04.1

---------------
nvidia-graphics-drivers-455 (455.45.01-0ubuntu0.18.04.1) bionic; urgency=medium

  * New upstream release (LP: #1904863):
    - Fixed a bug in a Vulkan blending optimization that could
      produce incorrect results. Some of the Vulkan titles affected
      by this bug were:
        Life is Strange 2
        Shadow of the Tomb Raider
    - Fixed an issue that caused Vulkan swapchain creation to fail
      for full-screen windows when a G-SYNC monitor is connected.

  [ Kai-Heng Feng ]
  * debian/71-nvidia.rules:
    - Add rules to enable runtimepm by default.

  [ Alberto Milone ]
  * debian/add-ids-to-json-db,
    debian/additional_runtimepm_ids,
    debian/rules:
    - Make it possible to add new IDs to mark support
      for runtimepm.
  * debian/templates/nvidia-compute-utils-flavour.nvidia-persistenced.service.in:
    - Run persistenced.service before systemd-backlight@backlight:nvidia_0
      (LP: #1885087).

 -- Alberto Milone <email address hidden> Thu, 19 Nov 2020 15:31:58 +0100

Changed in nvidia-graphics-drivers-455 (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-455 - 455.45.01-0ubuntu0.20.10.1

---------------
nvidia-graphics-drivers-455 (455.45.01-0ubuntu0.20.10.1) groovy; urgency=medium

  * New upstream release (LP: #1904863):
    - Fixed a bug in a Vulkan blending optimization that could
      produce incorrect results. Some of the Vulkan titles affected
      by this bug were:
        Life is Strange 2
        Shadow of the Tomb Raider
    - Fixed an issue that caused Vulkan swapchain creation to fail
      for full-screen windows when a G-SYNC monitor is connected.

  [ Kai-Heng Feng ]
  * debian/71-nvidia.rules:
    - Add rules to enable runtimepm by default.

  [ Alberto Milone ]
  * debian/add-ids-to-json-db,
    debian/additional_runtimepm_ids,
    debian/rules:
    - Make it possible to add new IDs to mark support
      for runtimepm.
  * debian/templates/nvidia-compute-utils-flavour.nvidia-persistenced.service.in:
    - Run persistenced.service before systemd-backlight@backlight:nvidia_0
      (LP: #1885087).

 -- Alberto Milone <email address hidden> Thu, 19 Nov 2020 15:21:39 +0100

Changed in nvidia-graphics-drivers-455 (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-450 - 450.102.04-0ubuntu0.20.10.1

---------------
nvidia-graphics-drivers-450 (450.102.04-0ubuntu0.20.10.1) groovy; urgency=medium

  * New upstream release (LP: #1906680):
    - CVE-2021-1052, CVE-2021-1053.
  * debian/templates/control.in:
    - Add support for libcuda-11.0-1, libcuda-11.1-1.
  * debian/templates/nvidia-compute-utils-flavour.nvidia-persistenced.service.in:
    Run persistenced.service before systemd-backlight@backlight:nvidia_0
    (LP: #1885087).

 -- Alberto Milone <email address hidden> Mon, 04 Jan 2021 15:18:07 +0100

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

This bug was fixed in the package nvidia-graphics-drivers-450 - 450.102.04-0ubuntu0.18.04.1

---------------
nvidia-graphics-drivers-450 (450.102.04-0ubuntu0.18.04.1) bionic; urgency=medium

  * New upstream release (LP: #1906680):
    - CVE-2021-1052, CVE-2021-1053.
  * debian/templates/nvidia-compute-utils-flavour.nvidia-persistenced.service.in:
    Run persistenced.service before systemd-backlight@backlight:nvidia_0
    (LP: #1885087).

 -- Alberto Milone <email address hidden> Mon, 04 Jan 2021 16:11:01 +0100

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

This bug was fixed in the package nvidia-graphics-drivers-450 - 450.102.04-0ubuntu0.20.04.1

---------------
nvidia-graphics-drivers-450 (450.102.04-0ubuntu0.20.04.1) focal; urgency=medium

  * New upstream release (LP: #1906680):
    - CVE-2021-1052, CVE-2021-1053.
  * debian/templates/nvidia-compute-utils-flavour.nvidia-persistenced.service.in:
    Run persistenced.service before systemd-backlight@backlight:nvidia_0
    (LP: #1885087).

 -- Alberto Milone <email address hidden> Mon, 04 Jan 2021 15:47:43 +0100

Changed in nvidia-graphics-drivers-450 (Ubuntu Focal):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-450 - 450.102.04-0ubuntu1

---------------
nvidia-graphics-drivers-450 (450.102.04-0ubuntu1) hirsute; urgency=medium

  * New upstream release.
  * debian/templates/control.in:
    - Add support for libcuda-11.0-1, libcuda-11.1-1.
  * debian/templates/nvidia-compute-utils-flavour.nvidia-persistenced.service.in:
    Run persistenced.service before systemd-backlight@backlight:nvidia_0
    (LP: #1885087).
  * debian/templates/{dkms_nvidia.conf.in|dkms.conf.fragment.in}:
    - Disable uvm on Linux >= 5.10.

 -- Alberto Milone <email address hidden> Mon, 04 Jan 2021 15:18:07 +0100

Changed in nvidia-graphics-drivers-450 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-455 - 455.45.01-0ubuntu1

---------------
nvidia-graphics-drivers-455 (455.45.01-0ubuntu1) hirsute; urgency=medium

  * New upstream release (LP: #1904863):
    - Fixed a bug in a Vulkan blending optimization that could
      produce incorrect results. Some of the Vulkan titles affected
      by this bug were:
        Life is Strange 2
        Shadow of the Tomb Raider
    - Fixed an issue that caused Vulkan swapchain creation to fail
      for full-screen windows when a G-SYNC monitor is connected.

  [ Kai-Heng Feng ]
  * debian/71-nvidia.rules:
    - Add rules to enable runtimepm by default.

  [ Alberto Milone ]
  * debian/add-ids-to-json-db,
    debian/additional_runtimepm_ids,
    debian/rules:
    - Make it possible to add new IDs to mark support
      for runtimepm.
  * debian/templates/nvidia-compute-utils-flavour.nvidia-persistenced.service.in:
    - Run persistenced.service before systemd-backlight@backlight:nvidia_0
      (LP: #1885087)

 -- Alberto Milone <email address hidden> Thu, 19 Nov 2020 14:23:18 +0100

Changed in nvidia-graphics-drivers-455 (Ubuntu):
status: Fix Committed → Fix Released
Changed in oem-priority:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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