Leif160519的blog Leif160519的blog

——————

目录
xrandr命令简介
/    

xrandr命令简介

输入xrandr,查看输出中状态是connected的显示设备,如LVDS。具体命令可以是:

# xrandr | grep -v disconnected | grep connected

调整亮度:

# xrandr --output LVDS --brightness 0.5

注:output后面的参数为上一步中查出的显示设备,不同主机结果可能不同。brightness后面的参数范围是0-1,0为全黑,1为最亮。

如果您明确知道你的分辨率的话,你可以将这个参数直接写成你需求的分辨率,如下:

# xrandr -s 1024×768

也可以使用-q参数来查看你的屏幕目前支持的分辨率的情况,或者什么参数也不加。

# xrandr -q
# xrandr

当然这个命令还有一些更复杂的用法,您可以用 info 命令来查看:

# info xrandr

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题xrandr命令简介
作  者Leif160519
出  处https://github.icu/articles/2019/09/06/1567759745747.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!