LordAmit/Brightness

brightness-controller destroy the night light setting of ubuntu20.04

crazyn2 opened this issue · 2 comments

Describe the bug
A clear and concise description of what the bug is. If the contents of the subsections do not apply, simply replace the contents with N/A.

To Reproduce
Steps to reproduce the behavior:

  1. open the brightness-controller
  2. Click on bar of brightness to control brightness of screen
  3. See the night light of ubuntu disappeared and have to close the night light in settings of ubuntu system and reopen the night light

Expected behavior
the brightness of screen is changed and the night light is existing.

Screenshots
the screenshots could not demonstrate the difference.

Desktop (please complete the following information):

  • OS: Ubuntu20.04 x86_64

Additional context
By the way, the brightness-controller could not get the current brightness of the screen.Maybe it's the key to solve the problem

Thank you. Maybe it's a temprorary solution by shell command.

dconf write /org/gnome/settings-daemon/plugins/color/night-light-enabled false
dconf write /org/gnome/settings-daemon/plugins/color/night-light-enabled true