Control brightness in a Desktop PC | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Control brightness in a Desktop PC

I just wanted to know the way I can control the display brightness on a Windows 10 Desktop PC (not a laptop). There is a dedicated method in Laptops via Windows action cemter, but there's nothing for a Desktop PC. Is there any (registry, or any other) way? [Edit] I'm not asking for a something like a slider or other method. I'm asking for a display which doesn't support brightness control, and you need to do this via a software tweak, something like force reduce brightness. [Edit2] I want to do that programmatically. I'm building a Night Light app, which can decrease the brightness on all types of Windows devices(my primary aim), and also change the gamma for blue light filtering. So, I got many modules in python like WMI, pywin32, control-brightness, etc, all of these works only for devices like Laptops which have dedicated functionality for brightness control. Like in linux we have 'xrandr', is there something in Windows?

30th Dec 2020, 12:20 PM
Charitra
Charitra - avatar
10 Answers
+ 2
Spentify Abhay One thing, I want to do that from within Windows, and other thing, I want to do it programmatically via Python. I'm building a Night Light app, which can decrease the brightness on all types of Windows devices(my primary aim), and also change the gamma for blue light filtering. So, I got many modules in python like WMI, pywin32, control-brightness, etc, all of these works only for devices like Laptops which have dedicated functionality for brightness control. I hope you get what I'm saying. These were easy in Linux as there is "xrandr" tool that controls screen at software level. I want something like this in windows.
30th Dec 2020, 12:41 PM
Charitra
Charitra - avatar
+ 2
Spentify Exactly, I thought of it, but the problem is, people are not that much willing to answer, and most of the users are just to ask, not to answer. I've asked a few times, and its not at all a beginner friendly place.. people are just there to flag any new question and take it down. I'm thinking to post it on some otger forums, may be metaexchange or superuser
30th Dec 2020, 2:26 PM
Charitra
Charitra - avatar
+ 2
Spentify I dont have any issue in my windows system, I just want to make a simple blue light filter that can work just fine on all devices, and not just laptops..
30th Dec 2020, 2:35 PM
Charitra
Charitra - avatar
+ 1
It isn't a programming related question tho ,you can maybe tag it as an off topic
30th Dec 2020, 12:34 PM
Abhay
Abhay - avatar
+ 1
Spentify I just want the way, and I can convert it to python on my own.. that's why I didn't mention python anywhere in my question. I just want the method, either cmd or powershell.. the rest I can do.
30th Dec 2020, 12:47 PM
Charitra
Charitra - avatar
+ 1
Spentify I've use that also.. its giving an error because the way powershell uses this to control brightness is the same as Windows' internals uses to show the slider. So basically, everything u can find on google at first place is not working 😅 Its somethings deep into WindowsAPI.
30th Dec 2020, 2:21 PM
Charitra
Charitra - avatar
+ 1
Chiku WIN32 api does allow changing brightness
30th Dec 2020, 4:18 PM
Flash
+ 1
Chiku i think you should learn WIN32 api a bit before trying out such projects. QT is good, but may not replace WIN32 api 100%.
30th Dec 2020, 4:23 PM
Flash
+ 1
Flash Thank you brother for info
30th Dec 2020, 4:24 PM
Charitra
Charitra - avatar
0
Spentify Please read the question carefully. I asked for a way for Desktops, not Laptops. The one you told, is for portable screens, and if anyone doesnt have portable screen, windows doesn't give a direct way to control brightness.
30th Dec 2020, 12:26 PM
Charitra
Charitra - avatar