You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
monitor.get_input_source() fails if the current is an unlisted value, such as 27. I'm using DELL monitors on Windows.
Traceback (most recent call last):
File "C:\Users\kojii\AppData\Local\Programs\Python\Python310\lib\site-packages\monitorcontrol\monitorcontrol.py", line 464, in get_input_source
return InputSource(value)
File "C:\Users\kojii\AppData\Local\Programs\Python\Python310\lib\enum.py", line 385, in __call__
return cls.__new__(cls, value)
File "C:\Users\kojii\AppData\Local\Programs\Python\Python310\lib\enum.py", line 710, in __new__
raise ve_exc
ValueError: 27 is not a valid InputSource
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\src\bin\dpswitch.py", line 35, in <module>
run()
File "C:\src\bin\dpswitch.py", line 25, in run
current_input = monitor.get_input_source()
File "C:\Users\kojii\AppData\Local\Programs\Python\Python310\lib\site-packages\monitorcontrol\monitorcontrol.py", line 466, in get_input_source
raise InputSourceValueError(f"{value} is not a valid InputSource", value)
monitorcontrol.monitorcontrol.InputSourceValueError: 27 is not a valid InputSource
I'm not sure if the specification allows such non-standard values, but great if it can return the raw value without errors.
USB C listed as 27
monitorcontrol --set-input-source 27
is not working
Monitor 1: U3219Q
Available Inputs:
InputSource.DP1*
InputSource.HDMI1
27
Monitor 2:
Available Inputs:
Monitor 3: VG27AQ
Available Inputs:
InputSource.DP1*
InputSource.HDMI1
InputSource.HDMI2
The text was updated successfully, but these errors were encountered: