News for hackers. Stuff that matters.
Re:Lunar – macOS utility to set brightness and volume on ext... by alin23 on Tuesday September 01, 2020 @02:26PM (#24345053)
Creator of Lunar here. Thank you all for the kind comments and generous donations and many thanks to the OP for posting this! Let me know if you have any questions or quick feedback about Lunar.
Re:Lunar – macOS utility to set brightness and volume on ext... by inspector-g on Tuesday September 01, 2020 @02:49PM (#24345368)
Thanks for writing this! When I got an iMac Pro in 2017 with an accompanying LG UltraFine 5K display I was shocked to learn three things: 1) adjusting the brightness on the internal display is easy but on the LG it's a pain in the ass, 2) despite having ambient light sensor hardware the LG does not automatically adjust its brightness like the internal display, and 3) macOS offers no built-in mechanism to sync the brightnesses of these two displays.

Before learning these things I was feeling excited about Apple's re-committing to the Mac around that time, but man these things made it feel like such "commitment" was just surface level - such low-hanging fruit not being handled is a shame. But, this is a rant for another day.

Anyway, I built my own very simple utility to poll the internal display for its brightness and write that same brightness to the LG via DDC, but never had the time/energy to make it more robust for publishing to the web. I have yet to try Lunar but I definitely will; much appreciated.

Re:Lunar – macOS utility to set brightness and volume on ext... by dmitshur on Tuesday September 01, 2020 @02:59PM (#24345528)
> adjusting the brightness on the internal display is easy but on the LG it's a pain in the ass

Can you elaborate on why you think that is? I’ve owned that monitor, and it seemed equally easy on both.

Re:Lunar – macOS utility to set brightness and volume on ext... by myowz on Tuesday September 01, 2020 @03:30PM (#24345966)
Quick feedback: I tried it for the first time, thinking to myself 'wow I really want to turn down the brightness on this darn monitor...its been bothering me for too long' and I didn't find the UX very easy to perform that immediate task. In fact, I have to say, just from quickly downloading this and trying to use it, I don't totally understand what it does...but I did figure out how to manually drop the settings to a more comfortable level, and I don't expect I'll be opening the software again except to manually turn it up and down (and each time I'll probably have to figure out how to go to that side page that is hard to get to)

Hope that made sense! Thanks for the software!!! :)

Re:Lunar – macOS utility to set brightness and volume on ext... by alin23 on Tuesday September 01, 2020 @03:54PM (#24346262)
Hey thanks for the feedback! I know the UI is a bit too complex at the moment. It's hard to strike a balance between simplicity and configurability. It's still a work in progress.

So what does this do:

Lunar allows you to change the hardware brightness and contrast of the monitor (the one that can be controlled with the hardware buttons on the monitor)

If you simply want to turn down the brightness from time to time, you can set Lunar in Manual mode and use the brightness keys on your keyboard to adjust the monitor brightness.

Where Lunar shines is with a MacBook or iMac where there is an ambient light sensor integrated in the device that adapts the builtin display brightness. In Sync mode Lunar can sync that already adapted brightness to your external monitor so you don't have to worry about the brightness throughout the day.

There's also a Location mode if you want the brightness to adjust automatically based on the sun position in your location.

All this can be controlled through hotkeys which are visible in both the menu bar icon menu and the Hotkeys configuration page reachable by pressing the left arrow key 2 times in the Lunar UI.

Re:Lunar – macOS utility to set brightness and volume on ext... by jcz_nz on Wednesday September 02, 2020 @03:49AM (#24350981)
Same thing. I found MonitorControl as a result, and found it a lot... fit for purpose.
Re:Lunar – macOS utility to set brightness and volume on ext... by diimdeep on Tuesday September 01, 2020 @02:29PM (#24345097)
Really well done.

AFAIK there is no events for brightness change so this is why polling for main monitor brightness?

What are you using for analytics at "https://log.lunar.fyi?

I have been using [1] before, your app seems much more slick

[1]: https://github.com/KAMIKAZEUA/NativeDisplayBrightness

Re:Lunar – macOS utility to set brightness and volume on ext... by alin23 on Tuesday September 01, 2020 @02:37PM (#24345186)
Thanks!

Yes, there are no brightness change events, but reading the brightness is very fast so polling adds very little overhead.

For analytics I've just been using a plain nginx route that logs the request body to a static file, and I parse that using loki for further visualization in Grafana. I haven't found much value in that info though so I've decommissioned it after I migrated from nginx to Caddy. I'll remove the analytics request in the next update.

Re:Lunar – macOS utility to set brightness and volume on ext... by car on Tuesday September 01, 2020 @05:23PM (#24347237)
Thank you for making Lunar!

Your app has been a godsend for my multimonitor setup, Macbook in clamshell mode. I tried a bunch of tools, but eventually gave up frustrated after crashes.

Love Lunar since I discovered it, it’s been working smooth from day one.

Re:Lunar – macOS utility to set brightness and volume on ext... by nuclearghost on Wednesday September 02, 2020 @10:02AM (#24353308)
This also saved my multi-monitor set up. Thanks so much!!
Re:Lunar – macOS utility to set brightness and volume on ext... by bgentry on Tuesday September 01, 2020 @04:12PM (#24346451)
Hi there, I couldn't find a way to disable built-in logging & analytics to log.lunar.fyi. Is there a setting to disable any network requests other than for software updates? Thanks!
Re:Lunar – macOS utility to set brightness and volume on ext... by alin23 on Tuesday September 01, 2020 @04:50PM (#24346913)
Hi! The route for log.lunar.fyi just returns 200 now and doesn't do anything. I was just logging the request before but I disabled that in the meantime since I didn't find it useful.

I will disable the request completely in the next update, but if you want to know what's sent or even disable it completely you can take a look at the source code of the sendAnalytics function in AppDelegate.swift: https://github.com/alin23/Lunar

Re:Lunar – macOS utility to set brightness and volume on ext... by stevewillows on Tuesday September 01, 2020 @05:04PM (#24347043)
I've been using your app for a while now. I love it. It's worked flawlessly from the get-go, too.

Thanks for making this! Having keys to adjust the brightness is such a blessing for my workflow.

Re:Lunar – macOS utility to set brightness and volume on ext... by arvindch on Wednesday September 02, 2020 @04:38AM (#24351218)
Absolutely amazing application - I found it on HN sometime at the beginning of COVID lockdowns, and it has radically changed my WFH life. Thank you so much :D

I use it with 2 disparate non-thunderbolt monitors, one connected into its built-in dock, and the other to a dock dongle. Works perfectly fine!

Re:Lunar – macOS utility to set brightness and volume on ext... by zgn on Wednesday September 02, 2020 @07:21AM (#24352141)
As someone who is sensitive to bright screens, lunar is something I use everyday. Thank you!!
Re:Lunar – macOS utility to set brightness and volume on ext... by simmielol123 on Tuesday September 01, 2020 @02:55PM (#24345453)
Very nice app! It was very tedious to do it manually on the monitor!