Jump to content

Set Brightness on Startup


nofearl
 Share

14 posts in this topic

Recommended Posts

A code and plist to set brightness on startup. Mine resets 100% on every startup, so this binary (written by Nicholas Riley) sets it to 10%

 

Change the plist to increase default brightness (between 0.1 - 1)

 

copy brightness to /bin

(edit and) copy plist file to /System/Library/LaunchAgents/

 

run

sudo chmod +x /bin/brightness
chown root:wheel /System/Library/LaunchAgents/com.nofearl.brightness.plist

 

Brightness.zip

  • Like 1
Link to comment
Share on other sites

  • 9 months later...

Thanks this little method works well to set the brightness level to a fixed value at startup.

 

What would be nice though is to modify the code to read the brightness after each brightness change and feed that brightness level into the startup plist - that way you could have a nice way of the display remembering your last setting at next startup....

 

Any ideas for a nice way to achieve that?

Link to comment
Share on other sites

  • 5 weeks later...

Hi

Great stuff! Thanks.

There's a small bug.

If a display doesn't support changing brightness I get an errors:

brightness: failed to set brightness of display 0x3c099d81 (error -536870201)

So if I have many displays connected it will of course change the brightness for the supported screen, but also display this error.

 

EDIT:

sorry guys, I didn't know we can set the brightness for only one screen!

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
chown root:wheel /System/Library/LaunchAgents/com.nofearl.brightness.plist

 

Does anyone know why I get this after I type that command line ?

 

chown: /System/Library/LaunchAgents/com.nofearl.brightness.plist: Operation not permitted

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 1 year later...
  • 1 month later...

Hello,

 

This is not working on Mac OS X Mavericks 10.9. I copy the file to /bin/, changed to brightness in the plist to 1 (I also tried 1.0) and ran the command with and without sue before the second line with the chown command. When I restart, nothing happens. :-(

 

If anyone has an updated method, I'd be happy to hear it. I want full brightness after startup or a command UNIX or Applescript to change brightness.

 

Thanks,

 

Gabe

Link to comment
Share on other sites

 Share

×
×
  • Create New...