解决Ubuntu默认开机最大亮度问题

(写于August 4th, 2013)

ubuntu最让我烦扰的就是关机后并不保存当前屏幕亮度配置数据,每次开机都要重新设置亮度,很不方便。并且过亮的屏幕不但刺眼而且缩短LCD屏幕寿命。

       通过在网上查找,试了很多中种方法后,终于成功了,如果大家遇到同样的问题仍未解决,可以试一下~

       1.首先安装laptop-mode-tools:

           sudo apt-get install laptop-mode-tools  

       2.更改/etc/laptop-mode/laptop-mode.conf 文件:

           sudo gedit /etc/laptop-mode/laptop-mode.conf 

           令ENABLE_LAPTOP_MODE_ON_AC=1 

       3.更改/etc/laptop-mode/conf.d/lcd-brightness.conf 文件:

           sudo gedit /etc/laptop-mode/conf.d/lcd-brightness.conf 

          修改以下内容:CONTROL_BRIGHTNESS=1

           BATT_BRIGHTNESS_COMMAND="echo 3" 

           LM_AC_BRIGHTNESS_COMMAND="echo 3"

           NOLM_AC_BRIGHTNESS_COMMAND="echo 3"

           #BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness" 

           最后一行添加:

           BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"

           (2,3步骤完成后记得要保存文件)

        4.最后,执行命令:

           sudo update-grub

           然后重启即可。

你可能感兴趣的:(linux,linux,ubuntu)