[Ubuntu] routine skill set automatically boot Ubuntu laptop screen brightness

[20131223 Update]

After Ubuntu 13.10, the boot has become the most amount of processing their own use violence law, as follows:

Edit /etc/rc.local file, the boot is provided directly inside a custom brightness;

sudo  vi / etc / rc.local
## add the following line before the final exit 0:
echo 2 > /sys/class/backlight/acpi_video0/brightness

 

 

After installing Ubuntu12.04, found each boot screens are maximum brightness, brightness settings every time it is troublesome, Web search found a solution, are summarized as follows:

Ubuntu notebook boot automatically setting brightness Method:

1. Open Software Center, laptop-mode installation package, or:

sudo apt-get install laptop-mode-tools

 

2. Open the file: /etc/laptop-mode/laptop-mode.conf

The following flags are changed to 1:

= ENABLE_LAPTOP_MODE_ON_AC . 1 using the laptop mode AC mode #

 

save document;

3. Configuration Brightness:

we /etc/laptop-mode/conf.d/lcd-brightness.conf

Modify the following line:

= CONTROL_BRIGHTNESS . 1 # using laptop mode for LCD brightness control
BATT_BRIGHTNESS_COMMAND = " echo 4 " # where the value " 4 " is a brightness level of the battery
LM_AC_BRIGHTNESS_COMMAND = " echo. 8 "   luminance level when the external power supply #
NOLM_AC_BRIGHTNESS_COMMAND = " echo 6 " # brightness level when using an external power supply, this is not very understanding
#BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness"
BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"

Reference size maximum brightness (on my laptop is 15):

$cat /sys/class/backlight/acpi_video0/max_brightness
15

 

Reproduced in: https: //www.cnblogs.com/QuLory/archive/2013/03/24/2978351.html

Guess you like

Origin blog.csdn.net/weixin_34380781/article/details/93154358