sudo apt-get install laptop-mode-tools
sudo vim /etc/laptop-mode/conf.d/lcd-brightness.conf修改如下内容(和android控制lcd brightness方法一样,
都是echo一个数据到/sys下)
CONTROL_BRIGHTNESS=1
BATT_BRIGHTNESS_COMMAND="echo 13"
LM_AC_BRIGHTNESS_COMMAND="echo 13"
NOLM_AC_BRIGHTNESS_COMMAND="echo 13"
BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"
注意:将echo xx > /sys/class/backlight/acpi_video0/brightness写入rc.local也不起作用
因为/sys/class/backlight/acpi_video0/brightness普通用户没有写如权限, 除非将该文件先修改权限.
阅读(5155) | 评论(0) | 转发(0) |