Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_input_source does not work for any of the codes listed in get_vcp_capabilities #221

Open
Alexgrau88 opened this issue Nov 22, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@Alexgrau88
Copy link

Even though i have inputs': [<InputSource.DP1: 15>, <InputSource.DP2: 16>, <InputSource.HDMI1: 17>] shown when using get_vcp_capabilities the set_input_source does not work for any of the codes. Any assistance would be appreciated.

print(monitor.set_input_source("DP1") )
= to none

  • Monitor manufacturer and model number: LG 34WP65G
  • Input source (HDMI, VGA, display port, ect.): HDMI
  • Output device (video card, discrete graphics, ect.): dedicated graphics
  • Operating system: Windows 11
  • Python version: 3.11.0
  • monitorcontrol version (monitorcontrol --version): 3.0.2

Steps to Reproduce

Run
from monitorcontrol import get_monitors

for monitor in get_monitors():
with monitor:
print(monitor.get_vcp_capabilities())
print(monitor.set_input_source("DP1"))

image

@newAM newAM added the bug Something isn't working label Nov 23, 2022
@newAM
Copy link
Owner

newAM commented Nov 23, 2022

Does the monitor respond at all? Are you able to try it out on Linux? I'm a little stumped with this one.

@Alexgrau88
Copy link
Author

Alexgrau88 commented Nov 23, 2022

I'm able to do the following from my poking around: ( any values on these, the current ones are just for representation)
monitor.set_luminance(80)
monitor.set_contrast(80)
monitor.set_power_mode("standby")

However, when running "print(monitor.get_input_source())" the output seems to be InputSource.OFF, and it does not make sense since the monitor is on and connected to HDMI port

No possibility to run on linux, not atm. Don't have it set up yet

@newAM
Copy link
Owner

newAM commented Nov 23, 2022

Hmm. It might be the monitor doesn't implement the input source commands, the monitors showing InputSource.OFF when it shouldn't is a mode of failure I have seen before.

@Alexgrau88
Copy link
Author

Any way to set these up if not implemented by default?

@newAM
Copy link
Owner

newAM commented Nov 23, 2022

Hmm... Maybe check for settings on your monitors that may make this work (power modes or DDC-CI settings)? Maybe you can get a firmware update for your monitor?

@64rl0
Copy link

64rl0 commented Mar 3, 2023

Hi,

with monitor: LG 40WP95C-W

I'm having the same problem.

found the inputs but not changing the input with monitor.set_input_source('DP1')

{'prot': 'monitor', 'type': 'lcd', 'model': 'WK95U', 'cmds': {1: [], 2: [], 3: [], 12: [], 227: [], 243: []}, 'vcp': {2: [], 4: [], 5: [], 8: [], 16: [], 18: [], 20: [5, 8, 11], 22: [], 24: [], 26: [], 82: [], 96: [15, 16, 17, 18], 172: [], 174: [], 178: [], 182: [], 192: [], 198: [], 200: [], 201: [], 214: [1, 4], 223: [], 98: [], 141: [], 244: [], 245: [1, 2, 3, 4], 246: [0, 1, 2], 77: [], 78: [], 79: [], 21: [1, 6, 17, 19, 20, 21, 24, 25, 32, 34, 35, 36, 40, 41, 50, 72], 247: [0, 1, 2, 3], 248: [0, 1], 249: [], 228: [], 229: [], 230: [], 231: [], 232: [], 233: [], 234: [], 235: [], 239: [], 250: [0, 1], 253: [0, 1], 254: [0, 1, 2], 255: []}, 'mswhql': '1', 'asset_eep': '', 'mccs_ver': '2.1', 'window': '', 'vcpname': '',
'inputs': [<InputSource.DP1: 15>, <InputSource.DP2: 16>, <InputSource.HDMI1: 17>, <InputSource.HDMI2: 18>]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants