Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing brightness of display (C#) [duplicate]

Tags:

c#

Possible Duplicate:
C# setting screen brightness Windows 7

I searched online for some topics about chanding the brightness of the display through C#.
For the most part, I got links to change the gamma in Windows (here & here) and this is working fine for me. But I was wondering if this is the correct way of reducing the brightness or dimming the display (does this save power as reducing the brightness of monitor does?)

Is this a good way to reduce brightness or is there a better way to do the same? I'm on Windows 7 (I forgot what the default gamma value of windows is?! Somebody?)

like image 744
Cipher Avatar asked Jun 11 '12 13:06

Cipher


1 Answers

Contrast/Brightness are properties inside of the physical monitor; not the software. Windows only knows Gamma. Most tools and guides you will find, will secretly edit gamma, which is obviously not the same as brightness/contrast.

But I did find this link: "How to Control the ‘Real’ Brightness and Contrast of Monitors by Software"

This is not a technical explanation of how it's done, it only lists problems with common 'tools' that claim to be able to do it. Instead it demonstrates the use of a couple of programs that actually communicate with the monitor. But the monitor as well as the video card, need to support the DDC protocol.

Maybe you can use this DDC protocol to roll your own approach in C#. There might even be libraries already, but if not; it will be a difficult implementation I guess.

like image 71
pyrocumulus Avatar answered Oct 18 '22 06:10

pyrocumulus