基本方法是参考http://www.2cto.com/os/201205/130412.html的,在自己机器上测试时做了适应性的修改:
1. 打开软件中心,安装laptop-mode包;
2. 打开文件:/etc/laptop-mode/laptop-mode.conf
将以下标志修改为1:
ENABLE_LAPTOP_MODE_ON_AC=1
保存文件;
3. 打开文件:/etc/laptop-mode//conf.d/lcd-brightness.conf
修改如下:
CONTROL_BRIGHTNESS=1
BATT_BRIGHTNESS_COMMAND="echo 300"
LM_AC_BRIGHTNESS_COMMAND="echo 300"
NOLM_AC_BRIGHTNESS_COMMAND="echo 300"
#BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness"
BRIGHTNESS_OUTPUT="/sys/class/backlight/intel_backlight/brightness"
保存文件;
4. 执行命令 sudo update-grub;
5. 重启机器即可。
注:其中echo 300中的300是指屏幕亮度,可以查看文件:
cat /sys/class/backlight/intel_backlight/brightness来获取当前亮度,并改为你需要自启动的值
注:其中echo 300中的300是指屏幕亮度,可以查看文件:
cat /sys/class/backlight/intel_backlight/brightness来获取当前亮度,并改为你需要自启动的值