Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One-shot mode broken in 1.12 #618

Closed
AdamNiederer opened this issue May 24, 2018 · 5 comments
Closed

One-shot mode broken in 1.12 #618

AdamNiederer opened this issue May 24, 2018 · 5 comments

Comments

@AdamNiederer
Copy link

Repro:

$ for i in {1..200}; do redshift -O 6000; done

Expected: Screen filter is set to 6000K
Actual: Screen is totally red

In redshift 1.11, one-shot mode would set the screen filter's intensity to the provided argument regardless of how many times it was called. Now, calling it multiple times without redshift -x in between appears to increase the intensity per-call.

This change wasn't in the release notes, so I'm assuming it's a bug. This happens to both color temperature and brightness (when called with -O ... -b ...)

@vicr123
Copy link

vicr123 commented May 24, 2018

Seems like it's not resetting the old redshift setting before setting it again; if you use a value below 6500K and then set a value above 6500K, the screen brightness will start to decrease.

@mattjohnruss
Copy link

Git bisect suggests that the issue was introduced in commit dcafe50 from pull request #511 related to preserving gamma ramps by default (this bug could affect other methods as well since this pull covers others).

@mattjohnruss
Copy link

mattjohnruss commented May 24, 2018

Ah, just found this closed issue #513 which seems to be pretty much a duplicate? The "bug" seems to be the intended behaviour and using the "-P" with one-shot mode as @jonls suggests here (#513 (comment)) makes the issue disappear for me.

@jonls
Copy link
Owner

jonls commented May 24, 2018

Yes, using -P should work for this.

@jonls jonls closed this as completed May 24, 2018
AdamNiederer added a commit to AdamNiederer/redshift-control that referenced this issue May 24, 2018
@gavtroy
Copy link

gavtroy commented Jun 9, 2018

I might question whether the new behavior is a sensible default in the first place, but the larger issue is that the api was broken without warning and (compared to adding a flag for the new behavior) without apparent benefit.

Users are going to experience this as a bug, regardless of whether it was intentional. Although there is a workaround (-P), it would obviously be preferable to fix it upstream, rather than confusing users and wasting their time.

This is not a good experience. Considering some larger distros have yet to pick up the update (and some users will have held it back, thinking the bug will disappear in the next release), I think it is worth reconsidering how this issue is treated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants