Unable to find matching monitor even though monitor was detected #20

Closed
opened 1 year ago by Dylan1496 · 3 comments
Dylan1496 commented 1 year ago

When I try to run yambar from the terminal, I get the following output:

info: fcft.c:256: fcft: 2.3.1-11-gd97c34c (Dec 04 2020, branch 'master') +graphemes
info: fcft.c:266: fontconfig: 2.13.91
info: fcft.c:272: freetype: 2.10.4
info: fcft.c:682: /usr/share/fonts/TTF/DejaVuSans.ttf: size=12.00pt/12px, dpi=75.00
info: fcft.c:682: /usr/share/fonts/75dpi/helvR12-ISO8859-1.pcf.gz: size=11.52pt/12px, dpi=75.00
info: fcft.c:682: /usr/share/fonts/OTF/Font Awesome 5 Free-Solid-900.otf: size=13.44pt/14px, dpi=75.00
info: fcft.c:682: /usr/share/fonts/OTF/Font Awesome 5 Brands-Regular-400.otf: size=15.36pt/16px, dpi=75.00
warn: bar/xcb.c:62: non-zero border margins ignored in X11 backend
info: bar/xcb.c:100: monitor: DP-2: 1920x1080+0+0 (344x194mm)
 err: bar/xcb.c:124: no matching monitor

The monitor DP-2 is detected by xrandr:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP-0 disconnected primary (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080    144.00*+  60.00  
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)

So I am not sure why yambar is not making the match (I believe it's either a bug in the code or in the config file. I am presently using the example configuration available in /examples/configurations/, with the following change: I put the bar at the bottom rather than the top.)

When I try to run yambar from the terminal, I get the following output: ``` info: fcft.c:256: fcft: 2.3.1-11-gd97c34c (Dec 04 2020, branch 'master') +graphemes info: fcft.c:266: fontconfig: 2.13.91 info: fcft.c:272: freetype: 2.10.4 info: fcft.c:682: /usr/share/fonts/TTF/DejaVuSans.ttf: size=12.00pt/12px, dpi=75.00 info: fcft.c:682: /usr/share/fonts/75dpi/helvR12-ISO8859-1.pcf.gz: size=11.52pt/12px, dpi=75.00 info: fcft.c:682: /usr/share/fonts/OTF/Font Awesome 5 Free-Solid-900.otf: size=13.44pt/14px, dpi=75.00 info: fcft.c:682: /usr/share/fonts/OTF/Font Awesome 5 Brands-Regular-400.otf: size=15.36pt/16px, dpi=75.00 warn: bar/xcb.c:62: non-zero border margins ignored in X11 backend info: bar/xcb.c:100: monitor: DP-2: 1920x1080+0+0 (344x194mm) err: bar/xcb.c:124: no matching monitor ``` The monitor DP-2 is detected by xrandr: ``` Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767 DP-0 disconnected primary (normal left inverted right x axis y axis) DP-1 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis) DP-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm 1920x1080 144.00*+ 60.00 DP-3 disconnected (normal left inverted right x axis y axis) DP-4 disconnected (normal left inverted right x axis y axis) ``` So I am not sure why yambar is not making the match (I believe it's either a bug in the code or in the config file. I am presently using the example configuration available in /examples/configurations/, with the following change: I put the bar at the bottom rather than the top.)
dnkl commented 1 year ago
Owner

Did you set the monitor in the configuration? Or did you leave it unset?

The XCB backend will currently use the primary monitor only, unless a monitor name has been set in the configuration.

Seeing you xrandr output I realize that it should probably fallback to one of the connected monitors if the primary monitor is disconnected.

Did you set the monitor in the configuration? Or did you leave it unset? The XCB backend will currently use the **primary** monitor only, unless a monitor name has been set in the configuration. Seeing you xrandr output I realize that it should probably fallback to one of the connected monitors if the primary monitor is disconnected.
dnkl added the
bug
label 1 year ago
Poster

I left the monitor unset.

When it is set it works.

I left the monitor unset. When it is set it works.
dnkl commented 1 year ago
Owner

I would really appreciate if you could test #21. With that, you should not have to set the monitor in yambar's configuration, it should fallback to a connected monitor if the primary monitor is disconnected.

I would really appreciate if you could test https://codeberg.org/dnkl/yambar/pulls/21. With that, you should not have to set the monitor in yambar's configuration, it should fallback to a connected monitor if the primary monitor is disconnected.
dnkl closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.