How To Save Screen Brightness
In Ubuntu 14.04 LTS
(Solution For Screen Brightness Problem On Ubuntu 14.04)
Laptop users still have the screen brightness problem with Ubuntu 14.04.Every time the screen brightness gets maximum value on Ubuntu startup.
we can solve this problem by adding a small startup script to adjust the screen brightness levels on ubuntu startup.The script will automatically set/overwrite the default brightness value with specified/desired brightness value when Ubuntu boots up.
Here the step by step guide to save the screen brightness on Ubuntu 14.04 :
step 1 :
open Terminal by Ctrl+Alt+T
Navigate to backlight directory.
step 3 :
Now you can see two directories(acpi_video0 and radeon_bl0) inside the backlight directory.
To see them use ls command.
step 4 :
The upcomig steps depends on your computer processor . So you need find whether your computer is powered by intel or AMD.
The following command will show your processor name....
lscpu |grep -i vendor
sample output for AMD :
sample output for Intel :
step 5 :
- Change your screen brightness level to which you want to set as default.
- Now find the equivalent value for current brightness level by using this command
If your processor is AMD then follow this step....
The above command will give brightness value.
If your processor is Intel then follow this step....
if the above command didn't show any variations in brightness value for different brightness values..
then, in above command, replace intel_backlight with the name of another folder(see:the output of step 3) present inside the backlight folder. and try again..
step 6 :
Get root privileges by using this command:
step 7 :
Now we need to create a new configuration file called fixbrightness.conf
step 8 :
Now Paste the following code into the above created (fixbrightness.conf) file.
description "Sets brightness after graphics device is loaded" start on graphics-device-added task exec /bin/echo 2 > /sys/class/backlight/acpi_video0/brightness
In above code,Replace the value 2 > with the brightness value we found in step 5
Similarly, Replace the folder name acpi_video0 with the folder name you used in step 5(before the word actual_brightness in code)
step 9 :
Thats It... Now Reboot Your System