Skip to content

Can't find monitor when running two displays in mirrored mode #1191

@jbaiter

Description

@jbaiter

When I run an external screen in mirrored mode (i.e. the same viewport as my main monitor), polybar no longer recognizes my main monitor and exits with:

◆ polybar -r example
error: Monitor "eDP-1" not found or disconnected

Here is the relevant part of my config:

[default]
monitor = ${env:MONITOR:eDP-1}

XRandR still lists the monitor with the exact same name:

◆ xrandr --listmonitors
Monitors: 2
 0: +*eDP-1 2560/309x1440/174+0+0  eDP-1
 1: +HDMI-2 2560/677x1440/381+0+0  HDMI-2

◆ xrandr -q
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192
eDP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   2560x1440     60.00*+
   // ....
HDMI-2 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1920x1080     60.00*+  50.00    59.94    30.00    25.00    24.00    29.97    23.98
   // ...

... but polybar does not recognize it:

◆ polybar --list-monitors
HDMI-2: 2560x1440+0+0

I am running the latest Git master with WITH_XRANDR_MONITORS enabled:

◆ polybar -v
polybar 3.1.0-110-gff39c9d-git

Features: -alsa +curl -i3 -mpd +network +pulseaudio

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions