传送门 ddcctl
使用方式
1.下载ddcctl.zip并解压
2.cd到目录
3.make install
4.make CCFLAGS=-DOSD clean ddcctl
5.ddcctl -d 1 -i 17
设置显示器1为hdmi接口1
6.ddcctl -d -b 50
就可以把亮度调到50
更多api参考传送门
以下为全部命令
ddcctl -d <1-..> [display#]
-w 100000 [delay usecs between settings]
----- Basic settings -----
-b <1-..> [brightness]
-c <1-..> [contrast]
-rbc [reset brightness and contrast]
----- Settings that don't always work -----
-m <1|2> [mute speaker OFF/ON]
-v <1-254> [speaker volume]
-i <1-18> [select input source]
-p <1|2-5> [power on | standby/off]
-o [read-only orientation]
----- Settings (testing) -----
-rg <1-..> [red gain]
-gg <1-..> [green gain]
-bg <1-..> [blue gain]
-rrgb [reset color]
----- Setting grammar -----
-X ? (query value of setting X)
-X NN (put setting X to NN)
-X <NN>- (decrease setting X by NN)
-X <NN>+ (increase setting X by NN)
网友评论