scottaxcell / winddcutil

Windows implementation of the ddcutil Linux program for querying and changing monitor settings, such as brightness and color levels.
https://github.com/scottaxcell/winddcutil
MIT License
168 stars 21 forks source link

Program unusable when having more than one physical monitor #10

Open dexamenos opened 11 months ago

dexamenos commented 11 months ago
C:\Program Files\<some-folder>\vesa-utils>winddcutil.exe detect
Traceback (most recent call last):
  File "cli.py", line 6, in <module>
  File "winddcutil\__main__.py", line 10, in main
  File "winddcutil\winddcutil.py", line 10, in detect
  File "monitorcontrol\monitorcontrol.py", line 84, in __enter__
  File "monitorcontrol\vcp\vcp_windows.py", line 55, in __enter__
monitorcontrol.vcp.vcp_abc.VCPError: more than one physical monitor per hmonitor
[3636] Failed to execute script 'cli' due to unhandled exception!

I have two physical monitors (Desktop + Beamer), both showing the same desktop (duplicate).

Reginald-Gillespie commented 10 months ago

Are you sure this is due to having two external monitors and not due to the monitor for some reason having embedded virtual registered inside of it? A friend accidentally lock his monitor (that does not have a power button) off and had this error when attempting to turn it back on (so I'm just trying to figure out what caused it).

dexamenos commented 10 months ago

@Reginald-Gillespie: I am not very familiar with how those physical and virtual monitors are organised within Windows. The only thing I can check is: when only the desktop monitor is attached / physically plugged in, everything works. As soon as I plug in the Beamer, the behaviour depends: if I mirror the desktop contents (so desktop and beamer showing the same picture), I receive the error above, but, if I extend the desktop to the beamer, everything works again.

scottaxcell commented 7 months ago

Issue filed by OP with the library with the source of the error. See https://github.com/newAM/monitorcontrol/issues/300.