screeninfo
screeninfo copied to clipboard
get_monitors doesn't seem to include inactive monitors (The default state of DisplayLink monitors on graphical startup) requiring the use of xrandr to detect a DisplayLink display
xrandr sees the third DisplayLink usb adapter port. Inactive by default and must be configured by the graphical environment during runtime.
$ xrandr |grep \ connected
DP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 1210mm x 680mm
HDMI1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 1210mm x 680mm
DVI-I-1-1 connected (normal left inverted right x axis y axis)
get_displays() doesn't notice it - only reporting on active displays despite being connected waiting to be assigned a display mode with something like xrandr.
$ python -c 'from screeninfo import get_monitors ; print(get_monitors())'
[Monitor(x=0, y=0, width=1920, height=1080, width_mm=1210, height_mm=680, name='DP1', is_primary=True), Monitor(x=1920, y=0, width=1920, height=1080, width_mm=1210, height_mm=680, name='HDMI1', is_primary=False)]