What are those first two executed lines doing? The ones starting with 'echo $*_brightness'? You don't need 'sudo su' because when this script is run, it is run as root. The script should execute near the end of boot, when it enters runlevel 5 and sets up a multiuser graphical session.
Originally Posted by stefprez
Try using this for your /etc/rc.local for now. Make sure to backup your current one if you want to save it.
If you want to save it.
To move it back later.
sudo mv /etc/rc.local /etc/rc.local.backup
sudo mv /etc/rc.local.backup /etc/rc.local
Then reboot and see what happens.
#$backlight_brightness range 0-82311
#echo $backlight_brightness > /sys/devices/virtual/backlight/apple_backlight/subsystem/gmux_backlight/brightness
#$kbd_brightness range 0-255
#echo $kbd_brightness > /sys/class/leds/smc\:\:kbd_backlight/brightness
echo 4 > /sys/devices/virtual/backlight/apple_backlight/subsystem/gmux_backlight/brightness
Here is mine, which works on my MBP 8,1, for comparison if you want.
Best of luck,
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# By default this script does nothing.
echo '5' > /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightness
echo '25' > /sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness