Comment 59 for bug 954661

Revision history for this message
Brian Semrad (bjsemrad) wrote :

#!/bin/sh -e
#
# rc.local
#
# 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
# bits.
#
echo 0 > /sys/class/backlight/intel_backlight/brightness
# By default this script does nothing.

exit 0

Using the above script from shutdown to boot I am now able to adjusted my screen-brightness after login. From stand by I added the following script to /etc/pm/sleep.d (create new file and make it executable)

#!/bin/sh
# to fix backlight issues on resume

case "${1}" in
resume)
echo 0 > /sys/class/backlight/intel_backlight/brightness
;;
esac