#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo echo 490 > /sys/class/backlight/intel_backlight/actual_brightness;
exit 0
不管加不加sudo都没用。
ubuntu 14.10怎么保存屏幕亮度
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- KOSKERS
- 帖子: 1454
- 注册时间: 2008-11-01 13:38
- qy117121
- 论坛版主
- 帖子: 50587
- 注册时间: 2007-12-14 13:40
- 系统: Winbuntu
- 来自: 志虚国乌由市
- 联系:
Re: ubuntu 14.10怎么保存屏幕亮度
cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo 45 > /sys/class/backlight/acpi_video0/brightness
echo 2431 > /sys/class/backlight/intel_backlight/brightness
exit 0
好吧,我这是14.04
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo 45 > /sys/class/backlight/acpi_video0/brightness
echo 2431 > /sys/class/backlight/intel_backlight/brightness
exit 0
好吧,我这是14.04
- KOSKERS
- 帖子: 1454
- 注册时间: 2008-11-01 13:38
Re: ubuntu 14.10怎么保存屏幕亮度
qy117121, 事了你的方法可以了。O(∩_∩)O谢谢