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
然後重啟即可。
本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/