setting GUID for brightness - look down for Display Brightness.subgroup GUID for Display - look down for Display.current scheme GUID - it's in the first line.Power Setting GUID: aded5e82-b909-4619-9949-f5d71dac0bcb (Display brightness)Ĭurrent AC Power Setting Index: 0x00000064Ĭurrent DC Power Setting Index: 0x0000000c Power Setting GUID: 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e (Turn off display after)Ĭurrent AC Power Setting Index: 0x00000258Ĭurrent DC Power Setting Index: 0x0000012c Power Setting GUID: 17aaa29b-8b43-4b94-aafe-35f64daaf1ee (Dim display after)Ĭurrent AC Power Setting Index: 0x0000012cĬurrent DC Power Setting Index: 0x00000078 Power Setting GUID: 6738e2c4-e8a5-4a42-b16a-e040e769756e (Turn off hard disk after)Ĭurrent AC Power Setting Index: 0x00000000Ĭurrent DC Power Setting Index: 0x00000000 Power Setting GUID: 0e796bdb-100d-47d6-a2d5-f7d2daa51f51 (Require a password on wakeup)Ĭurrent AC Power Setting Index: 0x00000001Ĭurrent DC Power Setting Index: 0x00000001 The output looks like this (it will be in your system's language): D:\Users\212579988>powercfg /q This command has format (case insensitive): POWERCFG -SETDCVALUEINDEX value Issues, ideas and pull requests are all appreciated.The two commands for setting any power settings are powercfg -SetDcValueIndex and powercfg -SetAcValueIndex, depending if you want to change setting when on batteries or on AC power. > -V, -version print the current versionĬontributions are welcome. > -v, -verbose some messages will be more detailed > -m METHOD, -method METHOD specify which method to use > -f VALUE, -fade VALUE fade the brightness to this value > -g, -get get the current screen brightness > -s VALUE, -set VALUE set the brightness to this value > -d DISPLAY, -display DISPLAY the display to be used > -h, -help show this help message and exit Command Line python -m screen_brightness_control -help get_brightness ( display = monitor ), '%' )Ĭheck out the quick start guide for more details on each of these functions.įull documentation for the project is also available here. list_monitors (): print ( monitor, ':', sbc. get_brightness ( 100, display = 0 ) # show the current brightness for each detected monitor for monitor in sbc. set_brightness ( 100 ) # set the brightness to 100% for the primary monitor sbc. get_brightness ( display = 0 ) # set the brightness to 100% sbc. get_brightness () # get the brightness for the primary monitor primary = sbc. Usage API import screen_brightness_control as sbc # get the brightness brightness = sbc. Please see the installing on Linux documentation for more details. Installing on Linux usually requires some extra work after installing the module. Pip install screen-brightness-control GitHub: git clone Supports Windows and most flavours of Linux. A Python tool for controlling the brightness of your monitor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |