ubuntu 14.10怎么保存屏幕亮度

笔记本/便携移动设备,手机平板等软硬件
回复
头像
KOSKERS
帖子: 1454
注册时间: 2008-11-01 13:38

ubuntu 14.10怎么保存屏幕亮度

#1

帖子 KOSKERS » 2014-10-04 17:21

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貌似都不行。
有用Telegram的吗?
欢迎加入公共群组:
https://t.me/joinchat/AAAAAApBLdk7AGFEeQo0fQ
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.10怎么保存屏幕亮度

#2

帖子 poloshiao » 2014-10-04 17:32

sudo echo 490 > /sys/class/backlight/intel_backlight/actual_brightness;
試試
echo 490 > /sys/class/backlight/intel_backlight/brightness
可以不加 sudo
因為 執行 /etc/rc.local 時
非 root 使用者 還沒登入
KakuroP
帖子: 3
注册时间: 2015-01-13 23:52
系统: ubuntu 14.10

Re: ubuntu 14.10怎么保存屏幕亮度

#3

帖子 KakuroP » 2015-01-28 10:36

后来我直接chmod 777 /sys/class/backlight/intel_backlight/actual_brightness,把权限给所有用户,一切正常了!
striving106
帖子: 4
注册时间: 2015-04-25 21:44
系统: ubuntu15.04

Re: ubuntu 14.10怎么保存屏幕亮度

#4

帖子 striving106 » 2015-04-27 22:41

UBUNTU KYLIN15.04版已能自动保存屏幕亮度,不需作任何修改。
回复