LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 402|回复: 0

Gentoo用laptop-mode控制LCD

[复制链接]
发表于 2012-2-2 21:59:49 | 显示全部楼层 |阅读模式
1、
vi /etc/laptop-mode/conf.d/laptop-mode.conf

ENABLE_LAPTOP_MODE_ON_AC=0
改为:
ENABLE_LAPTOP_MODE_ON_AC=1

2、
vi /etc/laptop-mode/conf.d/lcd-brightness.conf

CONTROL_BRIGHTNESS=0
改为:
CONTROL_BRIGHTNESS=1

BATT_BRIGHTNESS_COMMAND="echo [value]"
LM_AC_BRIGHTNESS_COMMAND="echo [value]"
NOLM_AC_BRIGHTNESS_COMMAND="echo [value]"
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness"
改为:
BATT_BRIGHTNESS_COMMAND="echo 4"
LM_AC_BRIGHTNESS_COMMAND="echo 12"
NOLM_AC_BRIGHTNESS_COMMAND="echo 8"
BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"

cat /sys/class/backlight/acpi_video0/brightness
我的是15,支持0-15,我试了一下就用4,8,12了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表