Skip to content

Hawktang#171

Closed
hawktang wants to merge 3 commits into
newAM:mainfrom
hawktang:hawktang
Closed

Hawktang#171
hawktang wants to merge 3 commits into
newAM:mainfrom
hawktang:hawktang

Conversation

@hawktang

Copy link
Copy Markdown

Add usb type c support

@newAM

newAM commented May 19, 2022

Copy link
Copy Markdown
Owner

Can you point me to the specification that defines this value?

This isn't defined by the existing specifications and is vendor specific as far as I know; this value may not be the same on other Type-C monitors.

@hawktang

hawktang commented May 20, 2022 via email

Copy link
Copy Markdown
Author

@newAM

newAM commented May 20, 2022

Copy link
Copy Markdown
Owner

set_input_source will allow an int to be used:

def set_input_source(self, value: Union[int, str, InputSource]):

get_input_source has an example of how to handle out-of-range values:

Handling out-of-spec inputs (observed for USB type-C inputs)::
from monitorcontrol import get_monitors, InputSourceValueError
for monitor in get_monitors():
with monitor:
try:
print(monitor.get_input_source())
except InputSourceValueError as e:
print(e.value)

Does that cover your usecases?

@newAM newAM mentioned this pull request Mar 11, 2023
@newAM

newAM commented May 26, 2025

Copy link
Copy Markdown
Owner

Going to close in favor of #242 if I get a response from VESA.

@newAM newAM closed this May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants