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.92k stars 429 forks source link

Disable smooth day and night transition in the config file not working #270

Open 6arms1leg opened 9 years ago

6arms1leg commented 9 years ago

The example configuration file on the Redshift website reads:

; Enable/Disable a smooth transition between day and night ; 0 will cause a direct change from day to night screen temperature. ; 1 will gradually increase or decrease the screen temperature. transition=1

There seems to be a bug in Redshift that causes the transition option in the configuration file to not work as described: Instead of handling the transition between day and night it only changes the transition between application start-up and shutdown (and delay the latter as a consequence). So transition=0 does not cause a direct change from day to night screen temperature.

This issue was observed on Gentoo and Arch Linux with the latest Redshift release.

Many thanks for this great program!

tifv commented 9 years ago

I would rather say, all the options work perfect, but the documentation is incomplete. The documentation should be more explicit about what transition is controlled by what option:

If this is the case, mentioned example configutaion on Redshift website is just wrong and should be corrected.

msjyoo commented 8 years ago

@tifv How can those two options be used?

tifv commented 8 years ago

@sekjun9878 I use transition=0 in redshift.conf to disable transition on startup. I experimented with elevation-high and elevation-low to disable day/night transition (specifically, I recall that I had set both values to 0.0, so that transition period collapsed and transition between day and night became instant).

tifv commented 8 years ago

@sekjun9878 man redshift may be a bit short on description of these options. More elaborate description may be as follows (there is a bit of my guesswork):

kousu commented 6 years ago

I was just about to come here to file a feature request that the startup transition could be instant (so that each startx doesn't have an obnoxious blaring fluorescent-blue glow with it), and then I found this! I definitely misunderstood the manpage.

Why isn't transition=0 the default? Actually, why is it even an option? I was expecting that redshift would set the screen temp as a function of time: flat during the day, a linear ramp for the times between elevation-high and elevation-low, flat during the night, then another linear ramp to get back up to day. It was interpretting transition=0 as "make the ramps 0-width", or turn the design into a step function. It would make more sense if you just got rid of the option entirely, I think.