Closed goldyfruit closed 1 year ago
Good spot. Thank you!
The issue came about because list_monitors_info
passes the monitors through filter_monitors
to detect and remove duplicates.
https://github.com/Crozzers/screen_brightness_control/blob/0c36c76f7a313856b46d1bbc76ea46b80da104eb/screen_brightness_control/linux.py#L1141-L1145
And filter_monitors
would check if the haystack
keyword arg had been passed in using the following check
https://github.com/Crozzers/screen_brightness_control/blob/0c36c76f7a313856b46d1bbc76ea46b80da104eb/screen_brightness_control/__init__.py#L665-L666
Which would be False if the haystack
kwarg had been passed in but was EMPTY (ie: no monitors detected using that method). filter_monitors
would then fetch a list of monitors to filter, regardless of method.
I'll push a fix and publish something soonish
Thanks for the fix, I'll wait until the PyPi release!
EDIT: Already released \o/
Hi,
When using
list_monitors_info()
withddcutils
asmethod
, it seems that it's bypassed during the monitor detection.With connected monitor to HDMI and default
method
.With connected monitor to HDMI with
ddcutil
asmethod
.The
method
in the last one should not be<class 'screen_brightness_control.linux.XRandr'
but<class 'screen_brightness_control.linux.DDCUtil'
(I think).Thanks for this library! :+1: