jonls / redshift

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
http://jonls.dk/redshift
GNU General Public License v3.0
5.9k stars 429 forks source link

Why are screens dimmed incrementally then enlightend back to initial brightness? #495

Open joyofdata opened 7 years ago

joyofdata commented 7 years ago

Hello!

I'm working on Linux Mint 17.3 and installed the most recent redshift version:

sudo add-apt-repository ppa:dobey/redshift-daily
sudo apt-get update
sudo apt-get install redshift
sudo apt-get install redshift-gtk
redshift -V
# redshift 1.11

Now I run the command suggested on http://jonls.dk/redshift/:

redshift -l 53.5:10 -t 5400:3600 -g 0.8 -m randr -v

(I only adjusted the lon lat for Hamburg, Germany)

Now this happens:

Location: 53.50 N, 10.00 E
Temperatures: 5400K at day, 3600K at night
Solar elevations: day above 3.0, night below -6.0
Brightness: 1.00:1.00
Gamma (Daytime): 0.800, 0.800, 0.800
Gamma (Night): 0.800, 0.800, 0.800
Status: Enabled
Period: Daytime
Color temperature: 6489K
Brightness: 1.00
Color temperature: 6478K
Color temperature: 6467K
Color temperature: 6456K
[...]
Color temperature: 5432K
Color temperature: 5422K
Color temperature: 5411K
Color temperature: 5400K

The screen dims down parallel to the printed color temperatures. At 5400K it stops and the screens start blinking - seemingly switching in 2sec intervals between 5400K and the initial color temperature.

After a while I press [Ctrl]+C it prints this while lightening up to initial color temp:

Color temperature: 5510K
Color temperature: 5565K
Color temperature: 5620K
Color temperature: 5675K
[...]
Color temperature: 6390K
Color temperature: 6445K

Obviously I would like the screens to just stay at 5400K.

If I just command redshift -O 4500 it prints Using method 'randr'., dims the color temperature and switches back to initial bright color temp after about 3 seconds.

What am I doing wrong?

jonls commented 7 years ago

You most likely have some other software running that is also updating the display gamma ramps. This could be a separate instance of Redshift or it could be another program (https://github.com/jonls/redshift#faq)