wanboo@wanboo-ubuntu:~/文档/shell脚本$ xrandr -q |grep"connected"
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 708mm x 398mm
DP-1 disconnected (normal left inverted right x axis y axis)
wanboo@wanboo-ubuntu:~/文档/shell脚本$ xrandr --output DP-0 --brightness 0.9
SHELL脚本之编写脚本实现调整屏幕亮度的脚本Ubuntu系统没有自动调节亮度的功能,本人发现了一个命令行调节的方法wanboo@wanboo-ubuntu:~/文档/shell脚本$ xrandr -q | grep "connected"DVI-D-0 disconnected (normal left inverted right x axis y axis)HDMI-0 disconnected (normal left inverted right x axis y axis)DP-0