Sunday, May 18, 2014

How to save brightness setting in linux

In ubuntu series linux you will face a problem , that is every time  you reboot your system you will get 100% brightness level . (Level 7)


To avoid this problem you need to edit 2 files

1. /etc/rc.local

2./sys/class/backlight/acpi_video0/brightness

just type the following command on your terminal

cd /etc

cat rc.local

you will get a screen like this

#!/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.
#
# By default this script does nothing.
exit 0


now type

sudo gedit rc.local

and past this line above exit 0 command

echo 0 > /sys/class/backlight/acpi_video0/brightness


echo 0 will make your brightness level 0 , if you need 2 or 3 you can change it by replacing 2 or 3  at like  echo 2 or echo 3


your lastly modified rc.local file will be like this .










No comments:

Post a Comment