Ubuntu 12.04 開機自動設置亮度的方法:
1. 打開軟件中心,安裝laptop-mode-tools包,;
2. 打開文件:sudo gedit /etc/laptop-mode/laptop-mode.conf
將如下標誌修改成1:
ENABLE_LAPTOP_MODE_ON_AC=1
保存文件;
3. 打開文件: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"
保存文件;
4. 執行命令 sudo update-grub; 可忽略;
5. 重啓機器便可。