Skip to content

doesn't get the full list of monitors #3

Description

@leporel

pymonctl don't return all my monitors (one of them connected to nvidia card (display port, 144hz), other to motherboard integrated gpu (hdmi 60hz))

  • Windows 10 (Windows 11 same behavior's)
  • python 3.10.11
  • PyMonCtl 0.7
import pymonctl as pmc
from screeninfo import get_monitors

print(pmc.getAllMonitorsDict())
print("--------------")
for m in get_monitors():
    print(str(m))

return:

{'\\\\.\\DISPLAY5': {'system_name': '\\\\.\\DISPLAY5', 'id': 131073, 'is_primary': False, 'position': Point(x=1920, y=0), 'size': Size(width=1920, height=1080), 'workarea': Rect(left=1920, top=0, right=3840, bottom=1050), 'scale': (100, 100), 'dpi': (96, 96), 'orientation': 0, 'frequency': 60, 'colordepth': 32}}
--------------
Monitor(x=0, y=0, width=1920, height=1080, width_mm=527, height_mm=296, name='\\\\.\\DISPLAY1', is_primary=True)
Monitor(x=1920, y=0, width=1920, height=1080, width_mm=527, height_mm=296, name='\\\\.\\DISPLAY5', is_primary=False)
print(pmc.getAllMonitors())
print(pmc.getMonitorsCount())

> [<pymonctl._pymonctl_win.Win32Monitor object at 0x0000024798C0F760>, <pymonctl._pymonctl_win.Win32Monitor object at 0x0000024798C0F880>]
> 2

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions