The brightness of my laptop is reset to max on every restart. I tried the solution provided at this website but had no luck.
This command
cat /sys/class/backlight/acpi_video0/max_brightness
Returns
cat: /sys/class/backlight/acpi_video0/max_brightness: No such file or directory
Then I found that I don't have a folder named acpi_video0
, but a folder called intel_backlight
:
Every time I increase or decrease the brightness using the brightness control keys, the values in brightness
and actual_brightness
get updated.
Is there any method I could follow to set the brightness to a fixed value on every boot and vary it as and when I need it using the brightness control keys?
Best Answer
You could try adding a line to /etc/rc.local that will set the desired brightness level. To edit the file, run
and add the following
so that the end result looks like this
Substitute
X
by the desired brightness level.In case /etc/rc.local doesn't exist, as is the case with new Ubuntu releases, you'll need to create it, and make eecutable with the following commands:
PS: Alternatively, there may be
/sys/class/backlight/acpi_video0/brightness
instead of the above. Brightness levels vary wildly, and may range from 0 to 10 or to 1000. To find the maximum value, try