koskers@koskers-W35xSTQ-370ST:~$ 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.
sudo echo 490 > /sys/class/backlight/intel_backlight/actual_brightness;
exit 0
加不加sudo貌似都不行。
ubuntu 14.10怎么保存屏幕亮度
- KOSKERS
- 帖子: 1454
- 注册时间: 2008-11-01 13:38
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: ubuntu 14.10怎么保存屏幕亮度
試試sudo echo 490 > /sys/class/backlight/intel_backlight/actual_brightness;
echo 490 > /sys/class/backlight/intel_backlight/brightness
可以不加 sudo
因為 執行 /etc/rc.local 時
非 root 使用者 還沒登入
-
- 帖子: 3
- 注册时间: 2015-01-13 23:52
- 系统: ubuntu 14.10
Re: ubuntu 14.10怎么保存屏幕亮度
后来我直接chmod 777 /sys/class/backlight/intel_backlight/actual_brightness,把权限给所有用户,一切正常了!
-
- 帖子: 4
- 注册时间: 2015-04-25 21:44
- 系统: ubuntu15.04
Re: ubuntu 14.10怎么保存屏幕亮度
UBUNTU KYLIN15.04版已能自动保存屏幕亮度,不需作任何修改。