Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1782276
  • 博文数量: 297
  • 博客积分: 285
  • 博客等级: 二等列兵
  • 技术积分: 3006
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-06 22:04
个人简介

Linuxer, ex IBMer. GNU https://hmchzb19.github.io/

文章分类

全部博文(297)

文章存档

2020年(11)

2019年(15)

2018年(43)

2017年(79)

2016年(79)

2015年(58)

2014年(1)

2013年(8)

2012年(3)

分类: LINUX

2018-08-25 14:52:36

参考资料: 

1. 调整屏幕亮度第一种方法:xrandr ,优点是简单方便
缺点是:However, this is a software only modification, if your hardware has support to actually change the brightness, you will probably prefer to use xbacklight.

点击(此处)折叠或打开

  1. #xrandr | grep connected | cut -f1 -d" "
  2. Use the output name found (in this case "eDP-1") and adjust the brightness
  3. #xrandr --output eDP-1 --brightness 0.7
2. 调整屏幕亮度第二种方法:xbacklight,始终无法使用xbacklight -set 命令,不论怎么在/etc/X11/xorg.conf里面尝试各种内容,结果都是失败,最后放弃了用命令,而是改成了直接echo 6|tee 这种方式.


点击(此处)折叠或打开

  1. #安装
  2. apt-get install xbacklight

  3. root@kali:~# xbacklight -set 7        
  4. No outputs have backlight property

  5. root@kali:~# readlink /sys/class/backlight/acpi_video0
  6. ../../devices/pci0000:00/0000:00:02.0/backlight/acpi_video0

  7. root@kali:~# find /sys/ -type f -iname '*brightness*'
  8. /sys/devices/pci0000:00/0000:00:1c.3/0000:02:00.0/leds/phy0-led/max_brightness
  9. /sys/devices/pci0000:00/0000:00:1c.3/0000:02:00.0/leds/phy0-led/brightness
  10. /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/max_brightness
  11. /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightness
  12. /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/actual_brightness
  13. /sys/devices/platform/i8042/serio0/input/input0/input0::capslock/max_brightness
  14. /sys/devices/platform/i8042/serio0/input/input0/input0::capslock/brightness
  15. /sys/devices/platform/i8042/serio0/input/input0/input0::scrolllock/max_brightness
  16. /sys/devices/platform/i8042/serio0/input/input0/input0::scrolllock/brightness
  17. /sys/devices/platform/i8042/serio0/input/input0/input0::numlock/max_brightness
  18. /sys/devices/platform/i8042/serio0/input/input0/input0::numlock/brightness
  19. /sys/module/video/parameters/brightness_switch_enabled
  20. /sys/module/i915/parameters/invert_brightness

  21. #最大亮度只有9,多数笔记本最大亮度应该是15
  22. root@kali:~# cat /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/max_brightness
  23. 9

  24. #当前亮度5
  25. cat /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/actual_brightness
  26. 5

  27. #设置新的亮度
  28. echo 7 |tee /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightness


阅读(2149) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~