AUTOMATIC SERVICE RESTART AFTER REBOOTING
I succeeded at working around the service autostart issue (where you had to kill NativeDisplayBrightness in activity monitor and restart it in order to work after booting) with writing a simple .command file:
Step 1: Writing the .command file
In a text editor write this code:
Code:
killall NativeDisplayBrightness
sudo open -a NativeDisplayBrightness
killall Terminal
and save it somewhere with the .command extension (suggested example: "/Applications/BrightnessFix.command")
Step 2: Edit permissions
to execute the .command file, open the terminal and enter the following command:
Code:
chmod 775 /PathToFile/File.command
Step 3: Make it auto-run every time you start your computer
To do this open Settings>Users & Groups>select your account and click on "Login Items".
To add your fix click on the plus and open it. Make sure to enable it by check-marking it.
Step 4: Changing sudo permissions (
WARNING: Follow this guide very closely! Any edits of the /etc/sudoers file without using the visudo command method might result in corrupting admin permissions - you will be unable to execute files that require that kind of permission)
To make this fix work the file needs to execute automatically (without admin needing to enter their password in the terminal).
Change sudo permissions by opening the terminal and executing the following commands:
and enter your password
click "a" so that "-- INSERT --" appears at the bottom of the window. Now you are in edit mode.
Using the arrow keys navigate to:
Code:
# User privilege specification
root ALL=(ALL) ALL
%admin ALL=(ALL) ALL
and change it to match:
Code:
# User privilege specification
root ALL=(ALL) ALL
%admin ALL=(ALL) NOPASSWD:ALL
Press "ESC" to exit editing mode ("-- INSTERT --" should disappear).
To complete this process type ":wq" and press ENTER.
To see if it worked try restarting the terminal and type in a command with sudo, for example:
(this should open the Safari app)
If the terminal doesn't ask for a password it worked.
Hope this helped