-
Notifications
You must be signed in to change notification settings - Fork 1
Better way of lowering contrast after brightness #3
Comments
hi @MHX792 I'll look into your code when I get some time, the problem is that I don't have 2 monitors (only 1 external ultrawide) so I'm unable to test that part properly.
I'm afraid that wouldn't be possible, since it's using the default OSD from Apple, which would be pretty hard to modify. I'm currently a bit busy so it might take some time for me to look into this, just so you know. Also, if this is an issue with your monitor and not the other ones I won't fix it (obviously) because it simply depends on how well your monitor follows a certain standard. Best regards |
There is no issue with the app itself or hardware wise with my monitor. I just missed an option to finetune / further decrease the contrast after the brightness has reached level 0. :) The contrast drop was just way too high in my opinion.
I saw it as a "nice to have" feature anyway. An alternative would be to create a custom OSD, which probably is not worth the effort. |
I tested it myself without your code (I never actually used the contrast stuff) and I see what you mean, if you decrease the brightness further after it is 0, it just jumps to the lowest, right? |
Your code works but the |
- added a fallback when no initial value could be read from display. Instead we will read the last known value from prefs. - implement better way to handle lowering contrast after brightness is 0, this way, contrast will slowly go down as the user keeps pressing brightness down until a default contrast value has been reached.
Hi, just letting you know, I've been added as a contributor in the previous fork the0neyouseek/MonitorControl and will thus be focussing on improving that one. |
First of all, thank you very much for fixing the infinite mouse sluggishness!
As my external monitor is still too high on the lowest brightness level, I activated the option to lower the contrast after brightness is set to 0. But the contrast drop was way too high and I missed an option to incremently lower it.
So I changed the
func handle(mediaKey: MediaKey, event: KeyEvent?)
method like so:In
Display.swift
I added a hard-coded default value for the contrast and a method for decreasing the contrast:For this to work, the
calcNewValue
method needs to be able to return negative values:Works like a charm and my eyes are happy at night.
Things to improve:
defaultContrastValue
for each displayThe text was updated successfully, but these errors were encountered: