6

Toggling night light and adjusting color temperature has no effect on visual. Setting the night light to Manual schedule and playing with the times did not help.

Similar to this question but for Ubuntu 22.04 Night Light not working in Ubuntu 20.04 I've tried their suggested answers with no luck:

  • restarting the PC
  • sudo apt-get install --reinstall gnome-control-center then restarting PC.

Gnome version: 42.1 Machine: Dell XPS 17 9720

JRF
  • 154

7 Answers7

7

I also encountered this issue on my Acer Chromebook 11 running Ubuntu 22.04 LTS. Every time I toggled Nigh Light to enabled, it works for a while but goes back to normal/blue lights.

I resolved it by turning on the Location services!

Tolz
  • 71
5

This trick works for me:

  • assign a color profile for the screen (Settings → Color → turn on);
  • then toggle Night Light off and on back again.
4

Not OP's case, but is worth mentioning here...

If manual schedule is set, and the color temperature persists only for a few seconds before reverting, set the beginning and end times to the same value, e.g., 20:00 and 20:00. In this case (not OP's) this isn't a bug - you were just outside your schedule.

If this is your case, don't feel dumb. Good job for using Ubuntu 22.04, and thanks for helping contribute to the community, and good job taking care of your eyeballs!

f41k0r
  • 41
  • 2
3

I have tried all of the potential solutions described here but none of them worked for me. It is worth noting I have a NVIDIA graphics card (so this solution may not work for others who do not). I found some information of help here:

https://www.reddit.com/r/linuxquestions/comments/vjqt9w/night_light_not_working_correctly_on_ubuntu_2204/

"This is a known bug on Wayland with NVIDIA cards, the solution is to simply use X11 session instead. Wayland is still considered experimental and is not mature enough in development for stable use with NVIDIA. It's still no where near as functional as X11 on AMD either."

I decided against using X11 as I already had Wayland installed. Further digging revealed a link to the bug report in launchpad: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1972728

with a comment:

"Looks like it's coming in 545: https://www.nvidia.com/download/driverResults.aspx/212964/en-us/"

So, I updated my NVIDIA drivers to 545.29.02 and—voila; Night Shift started working. There are other instructions around, but for completeness I ran:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update 
ubuntu-drivers devices  
sudo apt install nvidia-settings  nvidia-graphics-drivers-545

TL;DR—If you have a NVIDIA graphics card, try updating to version 545 of the drivers using the above commands.

Damian T.
  • 1,285
anthls
  • 131
2

After updating Ubuntu, I had the same problem. I could see the night light changes only on a new account, but only for a few seconds. Eventually, I figured out that the problem was with the NVIDIA drivers.

The solution worked for me:

sudo apt-get remove --purge nvidia-* -y
sudo apt autoremove
sudo ubuntu-drivers autoinstall
sudo reboot

It removes obsolete drivers and reinstalls the latest NVIDIA driver.

Zorro
  • 235
1

Encountered the same problem.

However, I got the night light working after doing the following:

  • changing the night-light-temperature in dconf-editor (org.gnome.settings-daemon.plugins.color)
  • restarting the PC
0

Night light is now working. Haven't made any explicit changes so I suspect issue was fixed with a package update

JRF
  • 154