Basically What we are going to do is that a certain level of brightness is automatically placed at each system startup.
The first thing we need to do is find out which ACPI interface deals with the brightness of your system. We can do this easily with the Xorg registration, like this:
grep acpi_video /var/log/Xorg.0.log
Once the on-screen command has been executed We will have something similar to this:
(7.385) (-) intel (0): Found backlight control interface acpi_videoX (type 'firmware') for output LVDS1
The value acpi_videoX be either acpi_video0 or acpi_video1, Remember this value for the following steps.
Now use the keys on your laptop to set the brightness to adjust the brightness to the level you want to be used as of now.
After this let's find out the current brightness value As far as numerical value is concerned, we will use this command:
cat / sys / class / backlight / acpi_videoX / brightness
Remember the value for the next step.
In this step we will create a file called fixbrightness.conf in the Ubuntu home directory, with this command:
gksu gedit /etc/init/fixbrightness.conf
And inside we will put this content:
description "Sets brightness after graphics device is loaded"
start on graphics-device-added
exec / bin / echo BRIGHTNESS VALUE> / sys / class / backlight / acpi_videoX / brightness
Remember that you should place the brightness value of step 3 and replace acpi_videoX for the value that corresponds to you. Save the file later.
Restart your computer and the brightness adjustment be to your liking.
As we see the way to solve this problem is very simple, personally it is a small bug that I consider very uncomfortable and also very annoying for the user experience that Ubuntu gives us. We have seen that with just a few minutes to be solved and we can continue enjoying the linux world.
. (tagsToTranslate) Brightness (t) Ubuntu (t) Xorg