Sometimes in Ubuntu, screen brightness reset to the lowest or highest on
every boot. It’s inconvenient to configure the screen brightness on
every login.
Here are some steps that one should follow to save the brightness settings.
step 1:Set the brightness of your choice that you want to have on every startup.
step 2: Open /etc/rc.local file in terminal window using editor.
sudo nano /etc/rc.local
I am using nano text editor, you can use gedit or any other editor.
step 3: Now add these two lines in rc.local file
echo X > /sys/class/backlight/intel_backlight/brightness
echo Y > /sys/class/backlight/acpi_video0/brightness
X and Y are actually values of brightness level
The values of X and Y can be found as follows:
- To get the value of X
- go to /sys/class/backlight/intel_backlight folder
- open 'brightness' file.
- It will contain the some numeric value. This value is value of X.
- Similarly to get the value of Y
- go to /sys/class/backlight/acpi_video0 folder
- open 'brightness' file.
- It will contain the some numeric value. This value is value of Y
Finally your rc.local file will look like:
Note here my value of X = 260 and Y=28.
Here are some steps that one should follow to save the brightness settings.
step 1:Set the brightness of your choice that you want to have on every startup.
step 2: Open /etc/rc.local file in terminal window using editor.
sudo nano /etc/rc.local
I am using nano text editor, you can use gedit or any other editor.
step 3: Now add these two lines in rc.local file
echo X > /sys/class/backlight/intel_backlight/brightness
echo Y > /sys/class/backlight/acpi_video0/brightness
X and Y are actually values of brightness level
The values of X and Y can be found as follows:
- To get the value of X
- go to /sys/class/backlight/intel_backlight folder
- open 'brightness' file.
- It will contain the some numeric value. This value is value of X.
- Similarly to get the value of Y
- go to /sys/class/backlight/acpi_video0 folder
- open 'brightness' file.
- It will contain the some numeric value. This value is value of Y
Finally your rc.local file will look like:
Note here my value of X = 260 and Y=28.