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

Arguments to -t reversed? #371

Closed aklaing closed 8 years ago

aklaing commented 8 years ago

I use redshift on Ubuntu 16.04. The man page for redshift says:

       -t DAY:NIGHT
              Color temperature to set at daytime/night

When I run:

redshift -l 42:71 -b 0.7 -t 5500:1800

it seems redshift is broken. I expect it to use color temperature 5500 (which is brighter) during the day, and 1800 (which is redder/yellower) at night. It does the exact opposite. So it seems not to work at night, and then during the day it becomes yellower/reddish. When I reverse the order of the color temperatures as follows:

redshift -l 42:71 -b 0.7 -t 1800:5500

Then it does what I expect. So it seems the man page is wrong, or else the arguments to -t have been reversed.

My machine says "Using method 'randr'", in case that is helpful. Otherwise redshift is a fantastic tool! Thank you.

aklaing commented 8 years ago

I'm using the nouveau driver:

*-display description: VGA compatible controller product: GK106M [GeForce GTX 765M] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list rom configuration: driver=nouveau latency=0 resources: irq:28 memory:dc000000-dcffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:e000(size=128) memory:dd000000-dd07ffff

On Fri, Sep 30, 2016 at 1:14 PM, Everton Melo notifications@github.com wrote:

But saying it:

"...Certain video drivers do not support adjustable gamma ramps. In some cases Redshift will fail with an error message, but other drivers silently ignore adjustments to the gamma ramp..." fonte: http://jonls.dk/redshift/

what is the DRIVER which you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jonls/redshift/issues/371#issuecomment-250800819, or mute the thread https://github.com/notifications/unsubscribe-auth/AMpLAr1lJMhJe1TCm26L1xUQt90L2uGsks5qvUOAgaJpZM4KLJ0i .

aklaing commented 8 years ago

I tried using your config file. I had to change Screen=1 to Screen=0. Apart from that I observed the behavior I previously described. That is, if I use

-t :

during the day, then the is implemented. OTOH if I use

-t :

during the day, then the is implemented.

Thanks

On Fri, Sep 30, 2016 at 2:15 PM, Ambrose Kofi Laing aklaing@gmail.com wrote:

I'm using the nouveau driver:

*-display description: VGA compatible controller product: GK106M [GeForce GTX 765M] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list rom configuration: driver=nouveau latency=0 resources: irq:28 memory:dc000000-dcffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:e000(size=128) memory:dd000000-dd07ffff

On Fri, Sep 30, 2016 at 1:14 PM, Everton Melo notifications@github.com wrote:

But saying it:

"...Certain video drivers do not support adjustable gamma ramps. In some cases Redshift will fail with an error message, but other drivers silently ignore adjustments to the gamma ramp..." fonte: http://jonls.dk/redshift/

what is the DRIVER which you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jonls/redshift/issues/371#issuecomment-250800819, or mute the thread https://github.com/notifications/unsubscribe-auth/AMpLAr1lJMhJe1TCm26L1xUQt90L2uGsks5qvUOAgaJpZM4KLJ0i .

aklaing commented 8 years ago

Excuse me if you get this twice: I am using reply-all this time to make sure everyone gets the response. I'm using the nouveau driver:

*-display description: VGA compatible controller product: GK106M [GeForce GTX 765M] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list rom configuration: driver=nouveau latency=0 resources: irq:28 memory:dc000000-dcffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:e000(size=128) memory:dd000000-dd07ffff

On Fri, Sep 30, 2016 at 1:14 PM, Everton Melo notifications@github.com wrote:

But saying it:

"...Certain video drivers do not support adjustable gamma ramps. In some cases Redshift will fail with an error message, but other drivers silently ignore adjustments to the gamma ramp..." fonte: http://jonls.dk/redshift/

what is the DRIVER which you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jonls/redshift/issues/371#issuecomment-250800819, or mute the thread https://github.com/notifications/unsubscribe-auth/AMpLAr1lJMhJe1TCm26L1xUQt90L2uGsks5qvUOAgaJpZM4KLJ0i .

aklaing commented 8 years ago

Pardon the duplicate -- I am using reply-all now, to make sure everyone gets the response:

I tried using your config file. I had to change Screen=1 to Screen=0. Apart from that I observed the behavior I previously described. That is, if I use

-t :

during the day, then the is implemented. OTOH if I use

-t :

during the day, then the is implemented.

Thanks

On Fri, Sep 30, 2016 at 1:14 PM, Everton Melo notifications@github.com wrote:

But saying it:

"...Certain video drivers do not support adjustable gamma ramps. In some cases Redshift will fail with an error message, but other drivers silently ignore adjustments to the gamma ramp..." fonte: http://jonls.dk/redshift/

what is the DRIVER which you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jonls/redshift/issues/371#issuecomment-250800819, or mute the thread https://github.com/notifications/unsubscribe-auth/AMpLAr1lJMhJe1TCm26L1xUQt90L2uGsks5qvUOAgaJpZM4KLJ0i .

jonls commented 8 years ago

Hi @aklaing, do you live in Kyrgyzstan? Maybe you meant to set the location to 41:-72 which is on the US east coast?

aklaing commented 8 years ago

That was my mistake -- I did want US east coast. Thanks for the help!!

On Fri, Sep 30, 2016 at 9:08 PM, Jon Lund Steffensen < notifications@github.com> wrote:

Hi @aklaing https://github.com/aklaing, do you live in Kyrgyzstan? Maybe you meant to set the location to 41:-72 which is on the US east coast?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jonls/redshift/issues/371#issuecomment-250883322, or mute the thread https://github.com/notifications/unsubscribe-auth/AMpLAjYqK-duikLEws_GGJ4DbuA4MKuYks5qvbKlgaJpZM4KLJ0i .