使用命令更改显示器亮度(以部分代替OSD)
显示器的OSD真的垃圾。不管按钮、旋钮怎么设计总归不是很好用。本人对环境光比较敏感,早上太亮了就会把显示器亮度调到最高,晚上暗了就得调低显示器亮度,故有此需求。
使用的软件是ControlMyMonitor,其官方网站如下:
https://www.nirsoft.net/utils/control_my_monitor.html
软件界面如下,可以看到我的显示器亮度VCP代码为10,其对应的命令就是
ControlMyMonitor /SetValue Primary 10 100
该命令可以把我的主显示器的亮度调到最高。另外,副显示器使用关键字Secondary。

我只需要键盘快捷键WIN+R打开运行命令行,通过命令行的历史命令就可以轻松的切换亮度,不用每次都到显示器背面找那个难用的旋钮!

如果直接用ControlMyMonitor不行,就要么输入exe文件的完整路径;要么把软件文件夹添加到环境变量的PATH里。这里不再赘述怎么添加环境变量。
另外,我的主显示器接入了我的电脑主机,PS5和Switch,当我需要切换到其他设备时,也可使用该软件,我在桌面上建立了两个快捷方式帮我快速地切换显示源。当然,当我需要切换回PC时,我还是要去显示器背面找那个难用的旋钮!!!
另外,关于ControlMyMonitor的更多使用方法都记录在其帮助文档ControlMyMonitor.chm中,在此截取其中一部分:
You can use 'Primary' as your monitor string in all command-line options in order to specify the primary monitor. You can also use 'Secondary' as your monitor string in all command-line options in order to specify the secondary monitor.
If you have multiple monitors, you have to find a string that uniquely identifies your monitor. Open ControlMyMonitor , select the desired monitor and then press Ctrl+M (Copy Monitor Settings). Paste the string from the clipboard into notepad or other text editor. You'll see something like this:
Monitor Device Name: "\\.\DISPLAY1\Monitor0"
Monitor Name: "22EA53"
Serial Number: "402CFEZE1200"
Adapter Name: "Intel(R) HD Graphics"
Monitor ID: "MONITOR\GSM59A4\{4d36e96e-e325-11ce-bfc1-08002be10318}\0012"
Short Monitor ID: GSM59A4
You can use any string from this list as long as the other monitors on your system have different values for the same property.
翻译如下:
您可以在所有命令行选项中使用“Primary”作为监视器字符串,以指定主监视器。您还可以在所有命令行选项中使用“Secondary”作为监视器字符串,以指定辅助监视器。
如果您有多个监视器,则必须找到唯一标识监视器的字符串。打开 控制我的监视器 ,选择所需的监视器,然后按 Ctrl+M(复制监视器设置)。将剪贴板中的字符串粘贴到记事本或其他文本编辑器中。你会看到类似这样的内容:
监视器设备名称:“\\.\DISPLAY1\Monitor0”
显示器名称:“22EA53”
序列号:“402CFEZE1200”
适配器名称:“Intel(R) HD Graphics”
监视器 ID:“MONITOR\GSM59A4\{4d36e96e-e325-11ce-bfc1-08002be10318}\0012”
短显示器 ID:GSM59A4
只要系统上的其他监视器对同一属性具有不同的值,就可以使用此列表中的任何字符串。
啊!真方便啊~