Night Light stays on

Bug #1894596 reported by Guillaume Michaud
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Medium
Marco Trevisan (Treviño)
Focal
Fix Released
Medium
Marco Trevisan (Treviño)
Groovy
Fix Released
Medium
Marco Trevisan (Treviño)
Hirsute
Fix Released
Medium
Marco Trevisan (Treviño)

Bug Description

I have "Night mode" set to turn on every day at 10pm and off at 6 am.
However, at 6, the "Night mode" icon disappears but my screen remaine orangeish as when "Night mode" is on.
Logging off and on again restores color temperature back to normal.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-shell 3.36.4-1ubuntu1~20.04.2
ProcVersionSignature: Ubuntu 5.4.0-45.49-generic 5.4.55
Uname: Linux 5.4.0-45-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: GNOME
Date: Mon Sep 7 07:43:43 2020
DisplayManager: gdm3
InstallationDate: Installed on 2020-04-11 (148 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200409)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: mutter-common 3.36.4-0ubuntu0.20.04.2
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Guillaume Michaud (gfmichaud) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please run these commands after the problem occurs next:

  lspci -kv > lspci.txt
  journalctl -b0 > journal.txt

and then attach the resulting text files here.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also please try disabling removing these in case they are affecting the issue:

  '<email address hidden>',
  '<email address hidden>'

summary: - Night mode stays on
+ Night Light stays on
Revision history for this message
Guillaume Michaud (gfmichaud) wrote :

I currently have no Gnome extension activated, apart from "Ubuntu appindicators" (see screenshot "Extensions.png")

Revision history for this message
Guillaume Michaud (gfmichaud) wrote :

Extension list (attachment)

Revision history for this message
Guillaume Michaud (gfmichaud) wrote :
Revision history for this message
Guillaume Michaud (gfmichaud) wrote :
Revision history for this message
Guillaume Michaud (gfmichaud) wrote :
Revision history for this message
Guillaume Michaud (gfmichaud) wrote :

Night Light is set to turn on at 10:00 pm and off at 6:00 am.
At 7:25 am I noticed the icon had disappeared but the screen was still "orange".
Please find as an attachment the results of:
  lspci -kv > lspci.txt
  journalctl -b0 > journal.txt

Revision history for this message
Guillaume Michaud (gfmichaud) wrote :

This may have something to do with using an external screen.
I usually use only my external screen, with laptop screen/lid closed.
I noticed right now that if I open the laptop lid, then color on the external screen goes back to "normal" and color on the laptop screen (defined as secondary, without Gnome shell panel) stays in "orange" mode.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I wonder if we could generalise this with bug 1772212, assuming mentions of "nvidia" were removed from that. Although that bug might well be Nvidia-specific.

Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I think this might happen because the screen is off at 6am. So any attempt to change the gamma ramps (turn off night light) might fail and not be reattempted. That would be easy enough to fix if it was all in the gnome-shell process, but I suspect some of it is happening in the 'colord' or 'gsd-color' processes. Upstream the GNOME developers have expressed a plan to sort that out:

  https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/131

which might also help with this when done.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The fix appears to be in mutter 3.36.7, but beware; it's not in 3.37 yet.

affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
Changed in mutter (Ubuntu):
status: New → Fix Committed
tags: added: fixed-in-3.36.7 fixed-upstream
Changed in mutter (Ubuntu):
importance: Undecided → Medium
tags: added: fixed-in-3.38.1
Changed in mutter (Ubuntu Focal):
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

The focal part of this bug is linked to bug #1887998 (I didn't include it in the changelog for auto-closing the bug, sorry).

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Sorry, I meant bug #1896332

Iain Lane (laney)
Changed in mutter (Ubuntu Groovy):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in mutter (Ubuntu Focal):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.38.1-1ubuntu1

---------------
mutter (3.38.1-1ubuntu1) groovy; urgency=medium

  * Merge with debian, including new upstream version, remaining changes:
    - debian/gbp.conf: update upstream branch to point to ubuntu/master
    - debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
      + X11: Add support for fractional scaling using Randr
  * d/p/clutter-backend-x11-Don-t-set-the-font-dpi-computed-on-X1.patch:
    - Dropped, applied upstream

mutter (3.38.1-1) unstable; urgency=medium

  * New upstream release:
    - Fix Night Light updates after DPMS (LP: #1894596)
    - Fix button scrolling on X11
    - Always use correct font-dpi setting on X11
    - Improve handling of scanout failures
    - Fix middle/right button mixup in scroll button assignment
    - Fix resizing of attached modal dialogs on wayland
    - Enable KMS modifiers on devices that need them
    - Fix IM handling on X11
    - Fix glitches in "undefined" screencast areas
    - Fix visual glitches on background with fractional scaling (LP: #1898080)
    - Fix using correct refresh rate under X11 (LP: #1898645)
    - Misc. bug fixes and cleanups
    - Plugged memory leaks
  * debian/patches: Refresh as per upstream changes
  * debian/mutter-common.install: Include mutter udev rules
  * debian/control: Add udev build-dependency

mutter (3.38.0-2) unstable; urgency=medium

  * Team upload
  * Release to unstable (starts transition: #969321)
  * d/rules: Ignore test failures in flaky tests on all architectures.
    Upstream presumably marked them as flaky for a reason, and they do
    fail on amd64 when under load.
  * Revert "debian/watch: Watch unstable versions"

 -- Marco Trevisan (Treviño) <email address hidden> Sun, 11 Oct 2020 02:13:27 +0200

Changed in mutter (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Changed in mutter (Ubuntu Focal):
status: Fix Committed → Fix Released
Changed in gnome-shell:
status: Unknown → Fix Released
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.