nriley / brightness

Command-line display brightness control for macOS.
BSD 2-Clause "Simplified" License
609 stars 55 forks source link

Screen comes back to its initial state after running the command #44

Open faxotherapy opened 1 year ago

faxotherapy commented 1 year ago

Unfortunately, on macOS 12.6.3 (Intel Mac), the screen returns to its initial brightness after a few seconds. Running the command brightness [some value] only maintains that brightness level for a few seconds. Then, afterwards, screen returns to its initial brightness.

Dima-369 commented 1 year ago

I get the same behavior. Plus it outputs: brightness: failed to set brightness of display 0x2b3465ce (error -536870201) on macOS 13.3.1

This is regardless of sudo or not.

jazzace commented 8 months ago

If you have Automatically Adjust Brightness set to On in System Settings/Preferences, you can see the behaviour @faxotherapy mentions. This is not an issue with this tool.

When you get the "failed to set brightness of display" message, that usually means that you cannot set the brightness using the keyboard for that display. We would need more specifics to determine whether this is a problem with the tool or whether the display simply doesn't support keyboard control of brightness (and thus is unsupported by this tool).