2

How would I raise the brightness on my computer using terminal? Ideally, it would be done without executing an apple script or downloading external software, but whatever works. Thanks!

1 Answer 1

2

Install Homebrew. (Bonus points for already having it installed)

Once that's all well and good, enter brew install brightness

Now, all you have to do is type in brightness <level> to change your laptop's brightness. Change level to your desired brightness on a scale of 0 to 1.

(example: enter brightness .27 for 27% brightness)


Some bonus tips:

  • entering brightness -lv will print some detailed info about your display, as well as your brightness level.

  • brightness -l will give you some information about your display, but considerably less than -lv. It still prints your current brightness.

  • The project is open-source on GitHub. Kudos to @nriley for making this project.

4
  • My MacBook is currently not working, so I can't look up the name of the setting, but it can be done with 'defaults write'. Homebrew is nice, but not necessary.
    – WGroleau
    Jun 25, 2017 at 12:31
  • @WGroleau it's simply the easiest and cleanest way to do this. Jun 25, 2017 at 14:35
  • Perhaps. But "Ideally … without downloading" implies the OP would disagree. I would think that identifying the correct keyword for something that comes with the O.S. would be no more difficult than installing homebrew then running it to install brightness. I've used brew to install other things, and at least once it made me do something else first.
    – WGroleau
    Jun 25, 2017 at 20:36
  • @WGroleau oops, missed that. home brew shouldn't require anything else for this script, it runs on my mac. Jun 25, 2017 at 23:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .