Live data from Hacker News

MonitorControl: Control external monitor brightness and volume on your Mac

github.com

71–80 of 89 posts

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#71

For a command-line option, ddcctl ( https://github.com/kfix/ddcctl ) works nicely in my experience, with a Dell Ultrasharp connected via USB-C. I have a script hacked together to fetch the internal display's brightness once a minute and apply it, with a scaling factor, to the external, so that they're both effectively controlled by the laptop's ambient light sensor. It's really nice for working in a room with lots of…

I did recently write a script to read the room brightness value from a Hue Light Sensor and adjust my external monitor brightness, with some smoothing applied. It was triggered by being stuck at home like everyone else. Funny how similar thought processes can be sometimes. I’m now up to motorising my blinds so that the light sensor also controls the blinds to keep the room at the same light level through the day.

Not all that similar, I think. I did mine precisely so I can always keep the blinds open and also not get eyestrain.

I miss the roof deck at work. This time of year, weather and meeting schedule permitting, I'd typically spend somewhere between four and sixteen hours a week up there, enjoying the heat and watching ospreys, gulls, and the occasional peregrine while I waited for builds or test runs or whatever.

I think like many folks lately, I seem to have developed a touch of agoraphobia this year. But I need to at least be able to see outside, or I start to forget I exist.

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#72
post #63

For a command-line option, ddcctl ( https://github.com/kfix/ddcctl ) works nicely in my experience, with a Dell Ultrasharp connected via USB-C. I have a script hacked together to fetch the internal display's brightness once a minute and apply it, with a scaling factor, to the external, so that they're both effectively controlled by the laptop's ambient light sensor. It's really nice for working in a room with lots of…

Thanks for mentioning Lunar! I'm the developer of the app. I've had a lot of feedback on it and users really helped me to fix most of the use cases so please give it a try. It has a lot of options to make it work just the way you want. And if it doesn't, feel free to send me feedback. I'm still developing new features for it like weather aware adaptive brightness (for less brightness on those cloudy days), an externa…

Would you expect Gatekeeper on High Sierra to just refuse to run a current build outright, without even the usual bypass options? I'm not sure if my IT department has been continuing the war against its own users, or maybe I've just put off updating too long.

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#73
post #44

Oh wow great, I hope this works for me too! I have an LG 4K screen and the LG tool to change brightness and contrast is really terrible, it has some stupid built-in fake Picture in Picture mode which is constantly flashing red borders around the screen when you use it. And the UI is really bad and slow. This little menubar control looks like just what I wanted. Edit: Yes it works great! On my LG24UD58. Perfect! Unfor…

I use Brightness Sync ( https://github.com/OCJvanDijk/Brightness-Sync ) for my external LG 5K screen attached to my iMac. The iMac light sensor controls the brightness of both monitors automatically. You can even insert a fixed offset to match the absolute brightness of both monitors.

Oh thanks as well!

But my Mac has no brightness sensor (it's a mini). I use the screen with my PC and a raspberry pi as well so I couldn't use an iMac, though I have one at the office (if I ever go back there...). It's really a shame they got rid of the target display function, this would have been perfect :(

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#74

For a command-line option, ddcctl ( https://github.com/kfix/ddcctl ) works nicely in my experience, with a Dell Ultrasharp connected via USB-C. I have a script hacked together to fetch the internal display's brightness once a minute and apply it, with a scaling factor, to the external, so that they're both effectively controlled by the laptop's ambient light sensor. It's really nice for working in a room with lots of…

Could you share the script? I think lots of people would find it very useful!

No, but the only thing in it that isn't trivial or already discussed is the invocation for getting the internal display's current brightness values, which is this:

    ioreg -c AppleBacklightDisplay | grep brightness | cut -d= -f2- | perl -pe's@=@:@g'
(The cut and perl commands cause it to spit out a JSON blob, instead of the vaguely JSONish format ioreg gives you.)

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#75
post #63

Earlier quoted context omitted.

Thanks for mentioning Lunar! I'm the developer of the app. I've had a lot of feedback on it and users really helped me to fix most of the use cases so please give it a try. It has a lot of options to make it work just the way you want. And if it doesn't, feel free to send me feedback. I'm still developing new features for it like weather aware adaptive brightness (for less brightness on those cloudy days), an externa…

Would you expect Gatekeeper on High Sierra to just refuse to run a current build outright, without even the usual bypass options? I'm not sure if my IT department has been continuing the war against its own users, or maybe I've just put off updating too long.

Lunar is signed and notarized with a paid developer certificate so I don’t think gatekeeper could block it in anyway.

It’s possible that in High Sierra you are missing the Swift 5 runtime. You can find details about this in the troubleshooting section of the GitHub readme.

Here is the link where you can download an installer for that: https://support.apple.com/kb/DL1998?locale=en_US

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#76

For a command-line option, ddcctl ( https://github.com/kfix/ddcctl ) works nicely in my experience, with a Dell Ultrasharp connected via USB-C. I have a script hacked together to fetch the internal display's brightness once a minute and apply it, with a scaling factor, to the external, so that they're both effectively controlled by the laptop's ambient light sensor. It's really nice for working in a room with lots of…

I wasn't sure if a Lenovo Monitor Plugged in via VGA to a Dell Dock to my MBP 13" would support DDC.

MonitorControl wasn't able to control my Brightness, it just set it to lowest level. This made me realise that there was some support to DDC, I tried trouble shooting using ddctl which was able to set the values, but not poll it.

Finally tried Lunar (https://lunar.fyi/) and it works like a charm. It's more of a set it and forget approach and has a unique UI.

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#77

I have often wondered if you could exploit a monitor over the DDC bus sending i2c commands. There have just got to be memory corruption bugs in the display controller code. They probably also typically have some flash memory, so perhaps one could permanently reprogram a monitor after the exploit?

There's already at least one exploit Ive heard of in which the monitor was the attack vector and was used to selectively alter screen pixels.
Post reply on HN