命令行如何更改开机亮度?现在最低也有点亮
Tofloor
poster avatar
numb
deepin
2017-06-03 01:47
Author
在root下执行echo 600 > /sys/class/backlight/intel_backlight/brightness是可以的
但我想开机让其自动执行,将此命令保存成brightness.sh放到/etc/init.d,更改了权限,加了软连接,可开机还是不能自动执行.
我将echo 600 > /sys/class/backlight/intel_backlight/brightness加入 /etc/profile这样只有进入root时才能更改,
想知道怎么让普通用户开机进去后就是600亮度呢??>>????
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-06-03 02:41
#1
Reply View the author
avatar
yanbowen
deepin
Community Developer
2017-06-05 17:49
#2
到控制中心调节亮度,自己修改的会被控制中心覆盖
Reply View the author
avatar
numb
deepin
2017-06-07 20:51
#3
本帖最后由 numb 于 2017-6-7 16:04 编辑
https://bbs.deepin.org/post/140435
到控制中心调节亮度,自己修改的会被控制中心覆盖

我调到最低还是觉得亮,默认最低976,我想调到600
Reply View the author
avatar
electricface
deepin
2017-06-07 22:06
#4
直接修改 gsettings 的  com.deepin.dde.display brightness
Reply View the author
avatar
electricface
deepin
2017-06-07 22:07
#5
gsettings get com.deepin.dde.display brightness

我的结果是 '{"eDP1": 0.591}'
把数字改成更小的值
gsettings set com.deepin.dde.display brightness '{"eDP1": 0.5}'
Reply View the author
avatar
numb
deepin
2017-06-08 00:06
#6
https://bbs.deepin.org/post/140435
gsettings get com.deepin.dde.display brightness

我的结果是 '{"eDP1": 0.591}'

显示这个GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
''


Reply View the author
avatar
electricface
deepin
2017-06-08 16:49
#7
不知道你这是怎么回事
Reply View the author
avatar
electricface
deepin
2017-06-08 16:58
#8
https://askubuntu.com/questions/ ... ithout-ubuntu-reins
试试
First check if this command returns true:

gsettings writable com.deepin.dde.display brightness

If not, install the backend with:

sudo apt-get install dconf-gsettings-backend

If this doesn't help either, reset your profile with:
Afterwards reboot.
Reply View the author