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

Differences in gamma value #26

Closed
blueyed opened this issue May 16, 2015 · 6 comments
Closed

Differences in gamma value #26

blueyed opened this issue May 16, 2015 · 6 comments

Comments

@blueyed
Copy link
Contributor

blueyed commented May 16, 2015

I've noticed that a setup is not being detected as active already, because
of a difference in the --gamma value (the last number):

{'DP1': <DP1 --output DP1 --off>,
 'DP2': <DP2 --output DP2 --off>,
 'DP3': <DP3 --output DP3 --off>,
 'HDMI1': <HDMI1 00fff..000ee --output HDMI1 --gamma 1.0:1.1:1.2 --mode 1920x1080 --panning 0x0 --pos 1366x0 --rate 60.0 --reflect normal --rotate normal --transform 1,0,0,0,1,0,0,0,1>,
 'HDMI2': <HDMI2 --output HDMI2 --off>,
 'HDMI3': <HDMI3 --output HDMI3 --off>,
 'LVDS1': <LVDS1 00fff..30059 --output LVDS1 --gamma 1.0:1.1:1.2 --mode 1366x768 --panning 0x0 --pos 0x312 --primary --rate 60.0 --reflect normal --rotate normal --transform 1,0,0,0,1,0,0,0,1>,
 'VGA1': <VGA1 --output VGA1 --off>,
 'VIRTUAL1': <VIRTUAL1 --output VIRTUAL1 --off>}

{'DP1': <DP1 --output DP1 --off>,
 'DP2': <DP2 --output DP2 --off>,
 'DP3': <DP3 --output DP3 --off>,
 'HDMI1': <HDMI1 00fff..000ee --output HDMI1 --gamma 1.0:1.2:1.3 --mode 1920x1080 --panning 0x0 --pos 1366x0 --rate 60.0 --reflect normal --rotate normal --transform 1,0,0,0,1,0,0,0,1>,
 'HDMI2': <HDMI2 --output HDMI2 --off>,
 'HDMI3': <HDMI3 --output HDMI3 --off>,
 'LVDS1': <LVDS1 00fff..30059 --output LVDS1 --gamma 1.0:1.2:1.3 --mode 1366x768 --panning 0x0 --pos 0x312 --primary --rate 60.0 --reflect normal --rotate normal --transform 1,0,0,0,1,0,0,0,1>,
 'VGA1': <VGA1 --output VGA1 --off>,
 'VIRTUAL1': <VIRTUAL1 --output VIRTUAL1 --off>}

I am not sure what might have changed this?

Maybe this could be considered irrelevant? (if we figure out / it turns out that it's nothing that was set explicitly)

For now, I've resaved it.

@phillipberndt
Copy link
Owner

I don't see how one could detect whether a change in --gamma was intentional. Always ignoring the --gamma value doesn't work either, because some users might use this intentionally.

Why is it important to you to correctly detect this? (I guess some postswitch script is in place? Would it help to report what changed to the script?)

The other thing I can think of is to give autorandr an option to generally ignore certain xrandr options, e.g.

autorandr -c --skip-options "gamma"

@blueyed
Copy link
Contributor Author

blueyed commented May 16, 2015

My main issue here was that autorandr did not detect it as the same setup, although I've not (intentionally) changed it.

I am currently in the process of migrating away from gnome-settings-daemon, using awesomeWM as window manager - this might have influenced it.

At first, I thought that it was maybe some incremental counter - but currently it appears to stick.

@blueyed
Copy link
Contributor Author

blueyed commented May 16, 2015

I think this gamma difference comes from using redshift.

So for me a --skip-options argument would be necessary.

@blueyed
Copy link
Contributor Author

blueyed commented May 17, 2015

@phillipberndt
I've tested your branch/commit: it works as expected.
Thanks!

@blueyed
Copy link
Contributor Author

blueyed commented May 17, 2015

Now it would be nice, if the system script (pm-utils/40autorandr) would read some config file (/etc/default/autorandr.conf) or something similar to allow for adjusting the command to be run:

AUTORANDR="autorandr -c --default default"

phillipberndt added a commit that referenced this issue May 17, 2015
See issue #26. This feature is required if tools like redshift interfere
with autorandr: Redshift e.g. continuously adjusts the --gamma values
such that autorandr never recognizes its configurations. This option
allows users to tell autorandr to ignore, and not fiddle with, --gamma.
@phillipberndt
Copy link
Owner

Great. I pulled this to master now.

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

2 participants