Questions tagged [screen-brightness]
141 questions
3
votes
1 answer
Keep Screen Bright While In AsyncTask
I'm using this code in my AsyncTask to make sure the screen stays bright while the AsyncTask runs:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
However, I don't want the screen to be forced to be bright after the AsyncTask…

Mxyk
- 10,678
- 16
- 57
- 76
3
votes
4 answers
How do I change the screen brightness in windows using python?
How do I change the screen brightness in windows using python, without using any extra python packages?
I'd also like a way of getting what the screen brightness is currently at.
I'm thinking that will need to be by using ctypes, but I can't find…

Bevis Hobbs
- 45
- 8
3
votes
4 answers
How can I make changes to android screen brightness persistent?
I've managed to change screen brightness within an activity (and by extension the entire app) using the following code:
Settings.System.putFloat(this.getContentResolver(),Settings.System.SCREEN_BRIGHTNESS,…

dckrooney
- 3,041
- 3
- 22
- 28
3
votes
4 answers
Possible to change screen brightness with C?
Using C in Linux, would it be possible to change the brightness of the viewing screen? This isn't expected to be portable other than running on my installs of Ubuntu and Fedora. I'm asking about how I would interface with the os to change the…

a sandwhich
- 4,352
- 12
- 41
- 62
3
votes
1 answer
How to change specific file permissions using udev rule?
I'm trying to let my user bob the permissions to change the screen brightness, which means: let bob read, write permissions for /sys/class/backlight/intel_backlight/brightness
using:
udevadm info -a -p /sys/class/backlight/intel_backlight/
shows…

Guy
- 491
- 4
- 13
3
votes
3 answers
iphone - Change the screen brightness, like iBook does
In iBook, user can adjust the screen brightness via a slider, right?
What should I do to implement that? Which class or function I should use to control the screen brightness?
Thanks

Jack
- 3,913
- 8
- 41
- 66
3
votes
0 answers
Get System brightness level
I have a WPF app running on windows 10 devices in which I am setting system's brightness based on value set in a progress bar and its vice versa. I am querying WmiMonitorBrightness to get the brightness levels. Here is the link that I am using to do…

shagufta syed
- 441
- 6
- 23
3
votes
1 answer
Android Battery Level Detect Issue
I am a new user to stackoverflow, this is my first post, if I have done anything wrong please feel free to tell me, thanks.
I am developing an android application to monitor the battery level and change screen brightness, but I were got a weird…

Dragon957
- 55
- 7
3
votes
3 answers
Changing Screen brightness in 6.0 programmatically
I am working on an android application which changes the screen brightness programmatically. I have a set brightness method which works on 5.1.1,But when i run the application on 6.0,it gives an error and closes the application.
Please…

Shashank
- 82
- 1
- 1
- 9
2
votes
1 answer
Adjust Mac display brightness Objective-C?
Is there a way to adjust the Mac's display brightness in Objective-C? I have sensitive eyes, and sometimes the display seems like it could be darker. Combine that with Jeff's blog post about geeks and darkness, and it can get pretty annoying.
I…

CoffeeRain
- 4,460
- 4
- 31
- 50
2
votes
1 answer
Create an Activity with no UI to do the brightness change in Appwidget
I'm trying to update the display brightness from a widget but i have some problems.
To change brightness level, i use:
Settings.System.putInt(context.getContentResolver(),android.provider.Settings.System.SCREEN_BRIGHTNESS, 200);
This modifies the…

Santhosh_pulliman
- 2,119
- 6
- 30
- 47
2
votes
1 answer
Getting the screen brightness value in iOS 5
I've started to use the new iOS 5 brightness setter in UIScreen. Is there a getter property I can use to know what the display brightness is set to on launch?
Thanks very much.

W Dyson
- 4,604
- 4
- 40
- 68
2
votes
2 answers
how change screen led like Cyanogenmod widgetrenderFx night mod
i work about application how can change android screen brightness, can somme help me by giving some examples of how to doing this.
Thanks :-)

user820688
- 719
- 2
- 13
- 27
2
votes
1 answer
How can we set device brightness using flutter?
By using the screen brightness or screen package I am able to change the screen brightness of the mobile phone but the changed brightness is not reflected in the device brightness slider and the mobile adjusts to device brightness after coming out…

ganesh kumar reddy
- 21
- 3
2
votes
1 answer
How to pass WMIC parameters for WmiSetBrightness
The following line in PowerShell works (brightness changes to 30):
(Get-WmiObject -Namespace root\wmi -Class WmiMonitorBrightnessMethods).WmiSetBrightness(0,30)
However, when using WMIC I get the following error:
C:\>wmic /NAMESPACE:\\root\wmi PATH…

Eli Finkel
- 463
- 2
- 13