|
大家好~这个屏幕亮度保存问题困扰我很久阿~不知道大家有没有遇到过~就是每次开机后本来已经设置好的屏幕亮度都会变成最亮很是烦人~在网上搜到了相关的文章但是却无法设置~请大家帮忙给解决一下~小弟不胜感激呵呵
通过laptop-mode-tool进行设置~里面有关于设置的说明但是我没看明白
LCD brightness settings
# -----------------------
#
# Using these settings, you can make laptop mode tools automatically adjust
# your LCD's brightness settings. The settings are extremely simple -- they
# only allow for the execution of a command, nothing more. The reason for this
# is that LCD brightness settings are very different between laptop vendors.(这里之前都是废话呵呵主要的在后面)
#
# Suggestions for commands:
#
# * If your system has the file "/proc/acpi/video/VID/LCD/brightness" (VID may
# be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use
# the command "echo <value>". The possible values can be listed using the
# command:
#
# cat /proc/acpi/video/VID/LCD/brightness
#
# * If you have a file /sys/class/backlight/.../brightness, then you can use
# that file as BRIGHTNESS_OUTPUT, and the command "echo <value>".
#
# As far as I understand it the values are between 0 and
# the value contained in the file /sys/class/backlight/.../max_brightness.
#
# * For Toshiba laptops, use the command "toshset" with the -lcd or -inten
# command. Read the toshset(1) manual page for more information on the
# parameters for this command. If you use this command, set
# BRIGHTNESS_OUTPUT to "/dev/null".
上面的这个说的是将echo的值写入到这个max_brightness或者brightness(这个文件我没有~所以选择前者)这个文件中~但是应该怎样写入呢?我用echo 8 > /sys/calss/backlight/...../max_brightness这个文件无效~哪位给举个例子阿~
这个是相应的设置选项~为了全面也贴上来呵呵
# Should laptop mode tools control LCD brightness?
#
CONTROL_BRIGHTNESS=1
#
# Commands to execute to set the brightness on your LCD
#
BATT_BRIGHTNESS_COMMAND="echo 0"
LM_AC_BRIGHTNESS_COMMAND="echo 0"
NOLM_AC_BRIGHTNESS_COMMAND=echo 0"
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness" |
|