Jump to content

Set Brightness on Startup


  • Please log in to reply
13 replies to this topic

#1
nofearl

nofearl

    InsanelyMac Protégé

  • Members
  • PipPip
  • 71 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

Attached File  Brightness.zip   3.43KB   276 downloads

#2
Alec Stone

Alec Stone

    InsanelyMac Protégé

  • Members
  • Pip
  • 32 posts
  • Gender:Male
  • Interests:Computers, Coffee, Computer Science III, Hacking, Computer Hardware Engineering. (Computers) (...
Thank you so much I couldn't find a way that works, but this does.

#3
MiniHack

MiniHack

    InsanelyMac Legend

  • Donators
  • 616 posts
  • Gender:Male
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?

#4
NIXin

NIXin

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 114 posts
  • Gender:Male
  • Location:Krakow, Poland
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!

#5
moonislune

moonislune

    InsanelyMac Protégé

  • Members
  • PipPip
  • 80 posts
  • Gender:Male
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!

#6
navendugoyal

navendugoyal

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts
chown gives an operation not permitted error

#7
TUX FIRE

TUX FIRE

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 113 posts
try to add sudo command before chown.

#8
TUX FIRE

TUX FIRE

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 113 posts
doesn't work for me on Mac lion :(

#9
ammar555

ammar555

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts

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


#10
TUX FIRE

TUX FIRE

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 113 posts
use sudo

#11
moonislune

moonislune

    InsanelyMac Protégé

  • Members
  • PipPip
  • 80 posts
  • Gender:Male
Thanks, works great in Mountain Lion!

#12
sume5h

sume5h

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
  • Gender:Male
not working in Intel HD 3000 mountain lion :-(

#13
Liankao

Liankao

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
very useful!

#14
GabeVitoro

GabeVitoro

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

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







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy