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

Screen gets darker every time I run Redshift #732

Open ghost opened 5 years ago

ghost commented 5 years ago

Whenever I set a value the screen keeps getting darker. I'm not even specifying a brightness parameter, just the temperature.

Steps to reproduce the behavior:

  1. Run the command redshift -O 8000 (or any value)
  2. Run it again
  3. Observe how the screen gets darker every time you run Redshift

It should only change the screen temperature. It worked on Kubuntu 18.04.

Specs:

rborder commented 5 years ago

I'm having the same problem on Ubuntu 19.04 under both KDE and Gnome DEs

kovasap commented 5 years ago

Try -x to remove previous runs.

rborder commented 5 years ago

@kovasap Ah that did the trick--what's interesting is that I've been using redshift in oneshot for years on multiple machines and this is first time i've had to add the -x.

Cheers

ghost commented 5 years ago

The -x is only resetting everything, so if you use the redshift plasmoid on KDE every time you scroll down/up over the icon to change the temperature it would get darker and darker, because it uses something like this every time the scroll action is called:

redshift -O 4000 -b 1.00:1.00 -g 1:1:1 -r

Edit: Actually with the plasmoid looks redder but never bluer.

rborder commented 5 years ago

@jfariasf08 it sounds like the plasmoid code needs to be updated --maybe open an issue over there?

ghost commented 5 years ago

@jfariasf08 it sounds like the plasmoid code needs to be updated --maybe open an issue over there?

Ok. I just opened an issue about the plasmoid, but I still think something broke because this isn't the normal behavior of redshift (at least wasn't when I using Ubuntu 18.04).

Nykseli commented 5 years ago

I had the same problem so I looked at the source code and found out that hte problem is with gamma ramps not being reset. So when you use redshift with arguments like -O 8000 , redshift builds the new gamma ramps based on the saved ramps.

There is -P option that solves that problem. Its functionality is "Reset existing gamma ramps before applying new color effect"

In short. Run the command like this: redshift -P -O 8000

diegonogueira commented 5 years ago

Probably you are open many processes.. Try to kill the old process first.

redshift -x
killall -p redshift
redshift -O 8000
amruthakannan commented 4 years ago

I'm having the same problem in Linux Mint 20 beta The -P option works, but I did not have to do that in Linux Mint 18

Rob-pw commented 3 years ago

Any idea why this happens on some set-ups? I've fixed it, or seen it fixed before, but I forget how.