Releases: Crozzers/screen_brightness_control
Releases · Crozzers/screen_brightness_control
v0.11.4
v0.11.3
- Fix #13 where some laptop displays were being returned by
windows.VCP.iter_physical_monitors windows.VCP.iter_physical_monitorswill now only return handles for monitors with thewin32con.DISPLAY_DEVICE_ATTACHED_TO_DESKTOPStateFlag (see this comment for explanation)
v0.11.2
v0.11.1
- Fix
linux.DDCUtil.set_brightnessexpiring non-existent cache keys - Refactor
linux.XRandr.get_display_infoandlinux.DDCUtil.get_display_infoto be more readable - All calls to
ddcutilexecutable now have stderr suppressed - Minor optimizations and tweaks to reduce pylint warnings
v0.11.0
v0.10.1
v0.10.0
Added/Changed:
set_brightnessnow returnsNoneby default. To enable old behaviour pass the kwargno_return=Falsewhen calling it
Removed:
windows.set_brightnesswindows.get_brightnesswindows.list_monitorswindows.WMI.get_display_nameswindows.VCP.get_display_nameslinux.set_brightnesslinux.get_brightnesslinux.list_monitorslinux.Light.get_display_nameslinux.XRandr.get_display_nameslinux.DDCUtil.get_display_names
Fixed:
- Fix
fade_brightnessnot working on Linux systems with onlyxbacklightinstalled
Deprecated:
windows.VCP.get_monitor_capslinux.get_brightness_from_sysfiles
v0.9.0
Added/Changed
- Lower level functions (EG:
windows.VCP.get_brightness) now only support specifying the display as anint - Low level
set_brightnessfunctions (EG:windows.VCP.set_brightness) no longer return anything - Improved error traceback formatting. When using
verbose_errorthe entire exception traceback is now included - Added
startkwarg towindows.VCP.iter_physical_monitors - Sped up
windows.get_display_infoby reducing the number of calls towmiAPIs - Moved
linux._EDIDto top levelEDIDclass - Changed order in which functions/classes are defined. Most relevant ones are at top of the file
- Added basic testing
linux.XRandr.get_display_infono longer includes brightness in returned info by default
Deprecated
set_brightnessreturning the new brightness. In the future it will returnNoneby default.windows.set_brightnesswindows.get_brightnesswindows.list_monitorswindows.WMI.get_display_nameswindows.VCP.get_display_nameslinux.set_brightnesslinux.get_brightnesslinux.list_monitorslinux.Light.get_display_nameslinux.XRandr.get_display_nameslinux.DDCUtil.get_display_names
v0.8
Added/Changed
- Re-formatted the code in the flake8 style (using args
--ignore=W503 --max-line-length=119) - Sped up most internal function calls by reducing the number of calls made to
filter_monitors - If the module is imported on an unsupported platform it raises a
NotImplementedError - Made low-level function return types more consistent
- Added
fade_brightnessmethod toMonitorclass - The
--setand--fadearguments on the CLI now have an output
Removed
- Removed the
model_nameattribute fromMonitorclass - Removed all module level filter functions (eg:
linux.XRandr.__filter_monitors) - Removed
from . import Monitorfrom the windows and linux modules. See here
Fixes
- Fixed the method kwarg on windows
- Fixed functions not returning
Nonewhenno_return=Trueis passed in - Fixed
FileNotFoundErrorinlinux.Light - Fixed
linux.XRandr.get_brightnessreturning out-of-date values - Fixed
linux.XRandr.get_display_infonot giving names to monitors without EDID strings
v0.8.1
- Fixed
linux.list_monitors*functions erroring out due to subprocess errors in called commands
v0.8.2
- Fixed errors when calling
fade_brightnesswith the current brightness values - Fixed
Monitor.set_brightnessallowing values <0 and >100 to be set using Linux and XRandr
v0.8.3
- Changed some method decorators from
staticmethodtoclassmethod
v0.8.4
- Fix markdown table in readme not rendering correctly
v0.8.5
- Changed the information in the README regarding xbacklight
v0.8.6
- Merge PR #9 from Mathias Johansson
v0.7
A chunkier update than previously anticipated. Honestly thought this would have been ready 2 weeks ago.
Hopefully there aren't any major bugs in this release (like #5)
Added/Changed:
- Monitors using the
windows.VCPmethod can now have their actual serial numbers retrieved (instead of the Windows UID) - If the
--verboseflag is used with--listin the CLI it will list all known information about the monitors, not just the names - If the
--verboseflag is used with--getin the CLI it will show each monitors serial and which method they use with the brightness value - Added a top-level
list_monitors_infofunction for more details about connected monitors - Added support for retrieving EDID strings in Windows. These are used internally as the primary form of differentiating monitors (instead of serials)
- Added a top-level
Monitorclass, which does the same thing as the oldwindows.Monitorandlinux.Monitor - Added a top-level
filter_monitorsfunction, which filters a list of displays by the parameters you supply (see the docs for more info on how this happens) - Sped up the module by caching information for short periods of time (short so that the info doesn't expire). The cache can be disabled if this causes issues
Removed/Deprecated:
- Deprecated the
'model_name'attribute in WindowsMonitorobjects (the'model'attribute should be used instead) - Deprecated the
'model_name'key in monitor's information on Windows (the'model'key should be used instead) - Removed the Windows and Linux specific
Monitorclasses. They just use the top-level generic one - Deprecated
windows.VCP.filter_displaysin favour of the top-levelfilter_displaysfunction - Removed
windows.WMI._get_display_index
Fixes:
- Fixed the CLI returning the monitor names incorrectly if one monitor got turned off
- DDC requests on Windows will try up to 10 times (with 0.02 seconds in between each attempt) to reduce errors from spamming this interface
That should be about it for now. The next update will be focused on optimizations (and probably patches)
v0.7.1
- Patched issue #6