15.3关于亮度调节的问题
Tofloor
poster avatar
kylin0519
deepin
2016-09-18 23:52
Author
15.2时,背光键盘无法调整,一直常亮,调节键盘背光的热键能调整屏幕亮度,调节亮度的热键没用
更新了15.3之后
背光键盘的热键正常了(赞!),调屏幕亮度的热键没了……,但设置里能调,我就想问这热键能设置么,因为我常用啊
Reply Favorite View the author
All Replies
avatar
justforlxz
deepin
2016-09-19 00:12
#1
一看就知道您是很时尚的人。
Reply View the author
avatar
电脑迷
deepin
2016-09-19 00:17
#2
The user is banned, and the content is hidden.
avatar
132******13
deepin
2016-09-19 04:11
#3
机型是什么,我这边都正常,可能和电脑型号有关
Reply View the author
avatar
DebuggerX
deepin
2016-09-19 07:00
#4
可以试着写个调节亮度的脚本,然后自定义快捷键来控制
Reply View the author
avatar
kylin0519
deepin
2016-09-19 22:21
#5
https://bbs.deepin.org/post/43621
机型是什么,我这边都正常,可能和电脑型号有关

华硕 ux501
Reply View the author
avatar
kylin0519
deepin
2016-09-19 22:21
#6
https://bbs.deepin.org/post/43621
可以试着写个调节亮度的脚本,然后自定义快捷键来控制

咋么搞?
Reply View the author
avatar
kylin0519
deepin
2016-09-19 22:21
#7
https://bbs.deepin.org/post/43621
一看就知道您是很时尚的人。

……有么
Reply View the author
avatar
DebuggerX
deepin
2016-10-18 02:48
#8

刚才上班无聊简单写了个,应该是通用的估计:

  1. #!/bin/sh

  2. if [ $# -eq 0 ]
  3. then
  4. echo 必须给定step值!!
  5. exit
  6. else
  7. step=$*
  8. display=`xrandr --verbose | grep connected | grep -v disconnected | awk '{print $1}' `
  9. bright=`xrandr --verbose | grep Brightness | tr -d '   Brightness: ' `
  10. s=`echo "scale=2;$bright+$step"|bc`
  11. xrandr --output $display --brightness $s
  12. fi
Copy the Code


把上面的脚本内容复制到一个文本文件里,改名成bright.sh放到一个好记的目录(比如我的是/home/debuggerx/shell/bright.sh),然后添加自定义快捷键:
增加亮度:
  1. sh /home/debuggerx/shell/bright.sh 0.05
Copy the Code
降低亮度:
  1. sh /home/debuggerx/shell/brightness.sh -0.05
Copy the Code
然后分别设置组合快捷键就ok了
可以自行调整变化值,有效位数是小数点后两位
Reply View the author
avatar
齿轮
deepin
2016-10-18 03:56
#9
https://bbs.deepin.org/post/43621
刚才上班无聊简单写了个,应该是通用的估计:

厉害
Reply View the author