Redshift: Screen gets darker every time I run Redshift

Created on 30 Jul 2019  路  10Comments  路  Source: jonls/redshift

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.

Most helpful comment

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

All 10 comments

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

Try -x to remove previous runs.

@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

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.

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

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

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

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

redshift -x
killall -p redshift
redshift -O 8000

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

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

Was this page helpful?
0 / 5 - 0 ratings