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.88k stars 426 forks source link

Can't configure Redshift with terminal #473

Open ghost opened 7 years ago

ghost commented 7 years ago

image When I use any command on terminal to change the redshift's temp, it gets stuck in using "randr" method forever.

jonls commented 7 years ago

@lambisboy From the screenshot it seems like you are trying to use oneshot mode (-o) but the command line should have been redshift -o 3200. This may explain why it's not working as expected?

vhborges commented 7 years ago

I'm having the same problem. Every command that changes Redshift settings get stuck either on "Using method randr" or "Using provider geoclue" and the screen keeps flickering between reddish and the default color.

Also, I tried creating the file ~/.config/redshift.confand commanding Redshift to load the settings on that file (via terminal) but it get stuck the same way, only this same there wasn't any message.

Btw, I'm using version 1.10 because it's the one provided by my distro. Can someone tell me if this was fixed on 1.11? I'm new to Linux so I prefer not to install anything from source.

jonls commented 7 years ago

@Wash-up This sounds like a separate problem from what is reported in this issue. Run with "-v" to get more information on what Redshift is doing (it is most likely not stuck anywhere it just doesn't provide any more output by default). Also, per the FAQ:

Why does the redness effect continuously flicker?

You may have multiple instances of Redshift running simultaneously. Make sure that only one instance is running for the display where you are seeing the flicker.

Make sure you have only one instance of Redshift running. Also, be aware that other programs may be running that affect the gamma ramps that Redshift cannot prevent. The issue you see is not likely to be fixed by upgrading to 1.11.

vhborges commented 7 years ago

@jonls You're right, running with "-v" shows that Redshift is working, I thought that it was stucked because I was forced to close and reopen the terminal to regain control (btw, is there a workaround on this?).

Still, the "-t" command is not working for me. When I run it, Redshift stops on "Using method randr" and after I reopen the terminal and run "-v" the color temperatures don't change.

Edit: Now I get it, using "-v" makes Redshift reset all the settings to default. Sorry for the trouble. I'm still curious about the question above, though...

Edit 2: Ok, it's not the "-v" command that resets Redshift, it's me closing the terminal (therefore, the process). And the flickering was caused by the command given on startup plus the one I gave. Now I'm beginning to understand how this app works. There's nothing wrong with it, just my newbiness.