Skip to content

Second successive input source retrieve fails #344

Description

@rosshardy
  • Monitor manufacturer and model number: ASUS VG27A
  • Input source (HDMI, VGA, display port, ect.): DisplayPort / HDMI
  • Output device (video card, discrete graphics, ect.): discrete nvidia 3080
  • Operating system: Windows 11
  • Python version: 3.8.3
  • monitorcontrol version (monitorcontrol --version): 3.1.0

Steps to Reproduce

The following python code errors:

from monitorcontrol import get_monitors

try:
    with get_monitors()[1] as monitor: 
        inputsource = monitor.get_input_source()
        print(inputsource)

        inputsourceagain = monitor.get_input_source()
        print(inputsourceagain)
except Exception as e:
    print(f"An error occurred: {e}")

Output:

InputSource.HDMI2
An error occurred: failed to get VCP feature: An error occurred while transmitting data to the device on the I2C bus.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions