-
Notifications
You must be signed in to change notification settings - Fork 424
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
XRandR: Allow multiple but not all CRTCs to be redshifted #81
Conversation
A comma separated list is not implemented. But you I left comma separated lists out because you probably |
Thanks for looking into this @lennartS, I agree that Redshift should be able to control CRTCs separately. @maandree, can you explain why you think the comma separated list is a bad idea? It seems reasonable to me. I can't easily comment or merge your patch @maandree since it is tied up to a lot of other changes that I can't easily review. |
#61 over this via redshift.conf with the addition that the gamma correction can be set for each monitor individually and introducing a command seperated list for redshift.conf holds minimal value since it just cuts down a minimal when your are not using gamma correction. #61 supports If this is implement, I think it makes sense to also add it to |
@jonls I will look into simplifying the task for you. |
@maandree, I didn't look at all open pull requests, just at the source code in the master branch before implementing this feature. In regard to a gamma correction values for each monitor and gamma correction in general: I have no idea about this stuff. I just started to use redshift recently (and love it, thanks for this little program, @jonls) but noticed that the movies I watched on the TV were tinted as well, which I didn't like at all :) #61 was too big for me to overview and evaluate completely. Might I suggest merging my commit until #61 can be merged to allow multiple monitor setups to work more cleanly? If I interpret this correctly #61 works with the dbus changes? For which versions are those planned? |
The dbus changes are implemented separately and the goals |
@maandree Thanks, it seems to me that you had #61 split into separate pull requests previously but that you merged it all into one pull request at some point. I would prefer if we could go back to smaller pull requests with one "feature" at a time. On a related note, I added some suggestions to HACKING recently about pull requests and code style. Regarding the separator change from |
@jonls #61 only pulled in fake-w32gdi so that I could test gamma-w32gdi. The features of all other pull requests it replace are rewritten, not merge. This is because I wanted to write gamma-common with everything in mind so that it does not have to be written all the time. Most of these features are minor in size, the big thing is really that all adjustment methods share logic and that multiple CRTC:s, screens, graphics cards and displays can be selected. Hopefully the new commits will have almost fully linear commit logic; if possible, I will split it up separate pull requests. |
@maandree in that case maybe you could implement gamma-common as a first step? It seems it would be pretty easy to merge if it is just moving existing code around. We would then have a common base to work from. Next pull request could be to add mutliple CRTCs/etc on top of that. I'm just throwing things out there right now since I don't really have a clear picture of what your changes do, maybe it makes more since in a different order. @lennartS Sorry for hijacking this issue comment thread with unrelated stuff. I will keep your patch in mind and possibly merge it if we need to do a release soon or use it for reference when merging the patch @maandree is providing. |
@jonls No problem. I'll leave it open so you can close it when you know how you want to proceed. |
@lennartS has this functionality been added to redshift? |
@davorb Sorry, but I don't think so. I'll re-open this for now. I was just doing some housekeeping and saw this was still open. |
Thanks. I would love for this functionality to be added, but it seems like redshift might be abandoned. There have been no commits since February. |
@davorb Definitely not abandoned. Though, the time that I have been able to invest lately has been very limited. Let me know if you are interested in getting the code back on track for merge. |
@jonls Do you mean the patch would be acceptable in principle now? If so, I can take a look at it to get it mergable again. |
@lennartS Yes, the other solution that was proposed did not move forward. I would like to merge this instead. |
Previously only one CRTC could be set in the configuration file for redshifting when XRandR mechanism was being used. That is fine for a setup with two displays but breaks when three or more displays are in use and one of those shouldn't be redshifted (e.g. two computer displays and one TV connected to the computer). The config value 'crtc' for method xrandr can now be entered as comma separated list of multiple CRTCs. All CRTCs in the list will be redshifted while all those not in the list will not be touched. Signed-off-by: Lennart Sauerbeck <devel@lennart.sauerbeck.org>
@jonls That's great to hear. I rebased my change onto your master and fixed the conflicts. Quick testing didn't reveal any bugs on my machine, it still works the same as before the rebase. |
@lennartS 👍 Merged. |
Previously only one CRTC could be set in the configuration file for
redshifting when XRandR mechanism was being used. That is fine for
a setup with two displays but breaks when three or more displays
are in use and one of those shouldn't be redshifted (e.g. two
computer displays and one TV connected to the computer).
The config value 'crtc' for method xrandr can now be entered as
comma separated list of multiple CRTCs. All CRTCs in the list will
be redshifted while all those not in the list will not be touched.
Signed-off-by: Lennart Sauerbeck devel@lennart.sauerbeck.org