Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

When using Configuration per output, bar does not rerender when you turn the monitor off and on again

Open alexthebuilder opened this issue 7 years ago • 15 comments

I have Waybar setup to render on one of my three monitors. When I turn the monitor off I get the below message.

Bar removed from output: DP-1 Workspaces: Unable to receive IPC header Mode: Unable to receive IPC header Window: Unable to receive IPC header

Once I turn my monitor back on the bar does not show up. The process still exists but I have to terminate it and start a new one.

alexthebuilder avatar Feb 04 '19 16:02 alexthebuilder

@alexthebuilder Can you confirm that is fixed with 01cec9fcb7a0b14cfb7aa9ee34de138aad137359 :)

Alexays avatar Feb 04 '19 21:02 Alexays

Tested it and I got the same result.

I watched the logs this time and noticed that the below errors happen after I start the monitor.

Workspaces: Unable to receive IPC header Mode: Unable to receive IPC header Window: Unable to receive IPC header

alexthebuilder avatar Feb 04 '19 21:02 alexthebuilder

These errors are normal, before the Configuration per output implementation, did it work?

Alexays avatar Feb 04 '19 21:02 Alexays

No the bar still does not appear. But waybar is still running.

alexthebuilder avatar Feb 04 '19 21:02 alexthebuilder

@alexthebuilder I'm not able to reproduce it, any tips?

Alexays avatar Feb 07 '19 12:02 Alexays

Mind sending me any info on how I could get more debug info for this? Is there a way to get the bars current location similar to the startup location?

Bar Configured (width: 3840, height:40) for output: DP-1

I'm not sure if there is an option to print out some runtime debug info so that I can help.

alexthebuilder avatar Feb 07 '19 17:02 alexthebuilder

I am also having what I think is the same issue, Waybar doesn't return only after something appears to go to a sleep state. I replicate the issue by running

 swaymsg "output * dpms off"; sleep 12; swaymsg "output * dpms on"

On my system when sleeping for a shorter length of time the bug does not appear. I can see the waybar process is still running, just nothing displayed on the screen.

Happy to provide any additional information, I just don't know where to find anything relevant.

malramsay64 avatar Feb 11 '19 01:02 malramsay64

@malramsay64 I'm unable to reproduce the issue with this command, can you provide your waybar config?

Alexays avatar Feb 11 '19 17:02 Alexays

My Waybar config is here

malramsay64 avatar Feb 11 '19 20:02 malramsay64

I can also replicate this issue by unplugging then replugging the monitor, which might be more widely replicable.

malramsay64 avatar Feb 18 '19 21:02 malramsay64

I found out why, can someone try without custom modules and tell me if that works?

Alexays avatar Mar 18 '19 10:03 Alexays

I'm traveling for business this week so won't be able to test it until Saturday. But I am using custom modules for sure so I'll be able to help when I get back.

alexthebuilder avatar Mar 19 '19 04:03 alexthebuilder

I can confirm that removing any custom modules does fix this behaviour.

malramsay64 avatar Mar 21 '19 07:03 malramsay64

I can verify that removing the custom module renders the bar again as well.

alexthebuilder avatar Mar 25 '19 04:03 alexthebuilder

Fixed with 90d89fe9742fec690677fc6965d28b25df8fc14f

Alexays avatar Apr 23 '19 13:04 Alexays