You are not logged in.

#1 2019-03-12 21:16:56

colby
Member
Registered: 2019-03-12
Posts: 3

Polybar fails to recognize external monitor size.

I'm running arch on my MacBook pro. I'm using i3. I installed polybar, copied the default config file into ~/.config/polybar and ran "polybar example" as was indicated after installation. On my MacBook's native screen, polybar starts up fine. However, when I connect to an external monitor I get

error: Resulting bar width is out of bounds (0)

The output of polybar -m is

HDMI2: 0x1080+0+0
eDP1: 2560x1600+0+0

So it seems polybar thinks my external monitor (HDMI2) has width 0, hence the error sad  The output of "xrandr" is

...
HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     60.00*+  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1400x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
....

So X recognizes the monitor as 1920x1080+0+0. I'm lost as to why polybar outputs 0x1080+0+0.
Any help would be appreciated!

Offline

#2 2019-03-12 22:30:39

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: Polybar fails to recognize external monitor size.


hp-envy dv7

Offline

#3 2019-03-13 00:31:25

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar fails to recognize external monitor size.

Oh, I think we had a similar problem in #1437. Could you also post the output of

xrandr --listmonitors

Offline

#4 2019-03-13 02:39:28

colby
Member
Registered: 2019-03-12
Posts: 3

Re: Polybar fails to recognize external monitor size.

patrickzeigler wrote:

Could you also post the output of

 xrandr --listmonitors 

Here you go!

Monitors: 2
 0: +*eDP1 2560/290x1600/180+0+0  eDP1
 1: +HDMI2 1920/480x1080/270+0+0  HDMI2

Offline

#5 2019-03-13 03:49:27

colby
Member
Registered: 2019-03-12
Posts: 3

Re: Polybar fails to recognize external monitor size.

patrickzeigler wrote:

I think we had a similar problem in #1437.

Hey applying the diff from that issue worked! I just had to then manually specify the width.

Offline

Board footer

Powered by FluxBB