我希望能够在 Windows 10 中将笔记本电脑屏幕调暗到 0 以下,但无法通过终端实现。
我尝试在 Powershell 中使用此命令将亮度降低到 -1,而不是当前值 0:
powershell -Command "(Get-WmiObject -Namespace root/WMI -Class WmiMonitorBrightnessMethods).WmiSetBrightness(3,-1)"
但我收到以下错误:
Cannot convert argument "1", with value: "-1", for "WmiSetBrightness" to type "System.Byte": "Cannot convert value
"-1" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte.""
At line:1 char:1
+ (Get-WmiObject -Namespace root/WMI -Class WmiMonitorBrightnessMethods ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
然而,互联网上有一个名为 dimmer 的应用程序,它可以将屏幕调暗至 0 以下,我想知道如何使用终端命令来复制此功能。