Windows:如何更改显示器的背光亮度
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3749774/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Windows: How to change monitor's backlight brightness
提问by GetFree
Ever since I've been using an external monitor with my laptop, when I need to change the backlight brightness I have to press the monitor's buttons to navigate through its menu and adjust the brightness.
That is really a pain. It's too many button presses! When I was using my laptop's integrated monitor, that was as simple as presing the Fn
key plus a combination.
自从我在笔记本电脑上使用外接显示器后,当我需要更改背光亮度时,我必须按下显示器的按钮来浏览菜单并调整亮度。
那真的很痛苦。按太多按钮了!当我使用我的笔记本电脑的集成显示器时,就像按一个Fn
键加一个组合一样简单。
Probably some of you might think it is not possible to change that programmatically. I thought that too. But I've just found a control (a GUI control) in my video card configuration that does exactly that.
So, that proves it is possible to change this programmatically.
可能你们中的一些人可能认为不可能以编程方式改变它。我也是这么想的。但是我刚刚在我的视频卡配置中找到了一个控件(一个 GUI 控件),它正是这样做的。
因此,这证明可以通过编程方式更改此设置。
But I can't find any tool or utility that does that. All what I've found are tools that adjust gamma, brightness and contrast. But backlight brightness is a different thing.
但我找不到任何可以做到这一点的工具或实用程序。我发现的所有工具都是调整伽马、亮度和对比度的工具。但背光亮度是另一回事。
Does any of you know how to adjust that damn thing programmatically in Windows?
你们中有人知道如何在 Windows 中以编程方式调整那个该死的东西吗?
采纳答案by GetFree
Let's try that again. There is a SetMonitorBrightnessfunction, but it is only available starting with Vista. There is also IOCTL_VIDEO_SET_DISPLAY_BRIGHTNESSwhich is available starting with XP SP1. I might give that a try on my laptop just out of curiosity.
让我们再试一次。有一个SetMonitorBrightness功能,但它只从 Vista 开始可用。还有IOCTL_VIDEO_SET_DISPLAY_BRIGHTNESS,它从 XP SP1 开始可用。出于好奇,我可能会在我的笔记本电脑上尝试一下。
回答by Sean Reifschneider
I know this question is about Windows, but if anyone is looking for the Linux way to do this you can run the "xbacklight" program, for example: "xbacklight -set 100" to set to 100% (full) brightness. The source code to this program could be used to embed it into a program.
我知道这个问题是关于 Windows 的,但是如果有人正在寻找 Linux 方法来执行此操作,您可以运行“xbacklight”程序,例如:“xbacklight -set 100”以设置为 100%(全)亮度。该程序的源代码可用于将其嵌入到程序中。
回答by GetFree
There are a couple of tools that let you set the backlight brightness:
有几个工具可以让您设置背光亮度:
The latter uses a custom library which they offer commercially and supports most popular programming languages in Windows. http://www.nicomsoft.com/products/i2c/
后者使用他们在商业上提供的自定义库,并支持 Windows 中最流行的编程语言。http://www.nicomsoft.com/products/i2c/
回答by Factor Mystic
If you have an NVidia card with the control panel installed, you should have a brightness control on the Adjust desktop color settings
node.
如果您有安装了控制面板的 NVidia 卡,您应该在Adjust desktop color settings
节点上有一个亮度控制。