redshift icon indicating copy to clipboard operation
redshift copied to clipboard

Screen gets darker every time I run Redshift

Open ghost opened this issue 6 years ago • 10 comments

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:

  • OS: Kubuntu 19.04
  • Redshift version: 1.12
  • Distribution: Kubuntu
  • Redshift installed from: master branch (ppa:dobey/redshift-daily) using apt-get. The distro version also failed.

ghost avatar Jul 30 '19 01:07 ghost

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

rborder avatar Jul 31 '19 20:07 rborder

Try -x to remove previous runs.

kovasap avatar Jul 31 '19 23:07 kovasap

@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

rborder avatar Jul 31 '19 23:07 rborder

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.

ghost avatar Aug 01 '19 01:08 ghost

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

rborder avatar Aug 01 '19 17:08 rborder

@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).

ghost avatar Aug 01 '19 20:08 ghost

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

Nykseli avatar Aug 16 '19 17:08 Nykseli

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

redshift -x
killall -p redshift
redshift -O 8000

diegonogueira avatar Sep 16 '19 00:09 diegonogueira

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

amruthakannan avatar Jun 25 '20 07:06 amruthakannan

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

Rob-pw avatar Feb 03 '21 01:02 Rob-pw