Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
nofearl

Set Brightness on Startup

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Sorry to revive an old thread but this works great for me on 10.6.8 . I changed the value in the plist (in the zip file) to .5 and it sets brightness to 50%. Thanks again, this will help my battery life!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×