Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waybar exits when monitor is turned off #3543

Open
vscncls opened this issue Aug 22, 2024 · 7 comments
Open

Waybar exits when monitor is turned off #3543

vscncls opened this issue Aug 22, 2024 · 7 comments

Comments

@vscncls
Copy link

vscncls commented Aug 22, 2024

$ waybar -l debug
[2024-08-22 17:29:59.547] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2024-08-22 17:29:59.547] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2024-08-22 17:29:59.547] [debug] Try expanding: $HOME/.config/waybar/config
[2024-08-22 17:29:59.547] [debug] Try expanding: $HOME/.config/waybar/config.jsonc
[2024-08-22 17:29:59.547] [debug] Found config file: $HOME/.config/waybar/config.jsonc
[2024-08-22 17:29:59.547] [info] Using configuration file /home/lucas/.config/waybar/config.jsonc
[2024-08-22 17:29:59.549] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2024-08-22 17:29:59.549] [debug] Try expanding: $HOME/.config/waybar/style.css
[2024-08-22 17:29:59.549] [debug] Found config file: $HOME/.config/waybar/style.css
[2024-08-22 17:29:59.549] [info] Using CSS file /home/lucas/.config/waybar/style.css
[2024-08-22 17:29:59.553] [debug] Output detection done: HDMI-A-1 (LG Electronics LG HDR WFHD 0x00069CC3)
[2024-08-22 17:29:59.554] [debug] window-rewrite is not defined or is not an object, using default rules.
[2024-08-22 17:29:59.554] [info] Hyprland IPC starting
[2024-08-22 17:29:59.555] [debug] Initializing workspaces
[2024-08-22 17:29:59.555] [debug] Initializing persistent workspaces
[2024-08-22 17:29:59.555] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-08-22 17:29:59.560] [debug] network: new default route via 192.168.15.1 on if2 metric 100
[2024-08-22 17:29:59.560] [debug] network: enp8s0, new addr 192.168.15.53/24
[2024-08-22 17:29:59.560] [debug] network: enp8s0, new addr 192.168.15.53/24
[2024-08-22 17:29:59.580] [debug] Cmd exited with code 0
[2024-08-22 17:29:59.580] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:29:59.580] [debug] GTK widget tree:
window#waybar.background.top.HDMI-A-1..mode-default:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
      widget:dir(ltr)
        box#workspaces.horizontal.module:dir(ltr)
      widget:dir(ltr)
        box#window.horizontal.module:dir(ltr)
          image:dir(ltr)
          label:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
      widget:dir(ltr)
        label#custom-media.module:dir(ltr)
    box.horizontal.modules-right:dir(ltr)
      widget:dir(ltr)
        label#idle_inhibitor.module:dir(ltr)
      widget:dir(ltr)
        label#network.module:dir(ltr)
      widget:dir(ltr)
        label#clock.module:dir(ltr)
      widget:dir(ltr)
        box#tray.horizontal.module:dir(ltr)

[2024-08-22 17:29:59.581] [debug] Creating workspace 1
[2024-08-22 17:29:59.581] [debug] Creating workspace 2
[2024-08-22 17:29:59.581] [debug] Creating workspace 3
[2024-08-22 17:29:59.582] [debug] Creating workspace 4
[2024-08-22 17:29:59.598] [warning] Requested height: 15 is less than the minimum height: 24 required by the modules
[2024-08-22 17:29:59.598] [info] Bar configured (width: 2560, height: 24) for output: HDMI-A-1

(waybar:948065): Gtk-CRITICAL **: 17:29:59.604: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.605: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.605: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.605: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.606: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.606: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.607: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.607: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.607: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:948065): Gtk-CRITICAL **: 17:29:59.607: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2024-08-22 17:29:59.626] [debug] hyprland IPC received openlayer>>waybar
[2024-08-22 17:30:00.608] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:00.608] [debug] Cmd exited with code 0
[2024-08-22 17:30:01.634] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:01.634] [debug] Cmd exited with code 0
[2024-08-22 17:30:02.661] [debug] Cmd exited with code 0
[2024-08-22 17:30:02.661] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:03.689] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:03.689] [debug] Cmd exited with code 0
[2024-08-22 17:30:04.717] [debug] Cmd exited with code 0
[2024-08-22 17:30:04.717] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:05.743] [debug] Cmd exited with code 0
[2024-08-22 17:30:05.743] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:06.770] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:06.770] [debug] Cmd exited with code 0
[2024-08-22 17:30:06.957] [debug] hyprland IPC received monitorremoved>>HDMI-A-1
[2024-08-22 17:30:06.958] [debug] Output removed: LG Electronics LG HDR WFHD
[2024-08-22 17:30:06.958] [debug] hyprland IPC received createworkspace>>5
[2024-08-22 17:30:06.958] [debug] Workspace created: 5
[2024-08-22 17:30:06.958] [debug] Output detection done: FALLBACK ()
[2024-08-22 17:30:06.958] [debug] window-rewrite is not defined or is not an object, using default rules.
[2024-08-22 17:30:06.959] [error] Monitor 'FALLBACK' does not have an ID? Using 0
[2024-08-22 17:30:06.959] [warning] module hyprland/workspaces: Disabling module "hyprland/workspaces", Error parsing JSON: * Line 1, Column 1
  Syntax error: value, object or array expected.

[2024-08-22 17:30:06.959] [warning] module hyprland/window: Disabling module "hyprland/window", Error parsing JSON: * Line 1, Column 1
  Syntax error: value, object or array expected.

[2024-08-22 17:30:06.960] [debug] hyprland IPC received createworkspacev2>>5,5
[2024-08-22 17:30:06.961] [debug] network: new default route via 192.168.15.1 on if2 metric 100
[2024-08-22 17:30:06.961] [debug] network: enp8s0, new addr 192.168.15.53/24
[2024-08-22 17:30:06.961] [debug] network: enp8s0, new addr 192.168.15.53/24
[2024-08-22 17:30:06.962] [debug] hyprland IPC received monitoradded>>FALLBACK
[2024-08-22 17:30:06.962] [debug] GTK widget tree:
window#waybar.background.top..mode-default.FALLBACK:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
      widget:dir(ltr)
        label#custom-media.module:dir(ltr)
    box.horizontal.modules-right:dir(ltr)
      widget:dir(ltr)
        label#idle_inhibitor.module:dir(ltr)
      widget:dir(ltr)
        label#network.module:dir(ltr)
      widget:dir(ltr)
        label#clock.module:dir(ltr)
      widget:dir(ltr)
        box#tray.horizontal.module:dir(ltr)

[2024-08-22 17:30:06.963] [debug] hyprland IPC received monitoraddedv2>>18446744073709551615,FALLBACK,
[2024-08-22 17:30:06.964] [debug] hyprland IPC received focusedmon>>FALLBACK,5
[2024-08-22 17:30:06.965] [debug] hyprland IPC received closelayer>>waybar

** (waybar:948306): CRITICAL **: 17:30:06.967: static void Glib::DispatchNotifier::unreference_instance(Glib::DispatchNotifier*, const Glib::Dispatcher*): assertion 'instance == notifier' failed
[2024-08-22 17:30:06.968] [info] Bar removed from output: HDMI-A-1
[2024-08-22 17:30:06.969] [info] Bar configured (width: 299, height: 15) for output: FALLBACK
Gdk-Message: 17:30:06.970: Error 71 (Protocol error) dispatching to Wayland display.

exit code 1

happens every time my monitor turns off or sleeps

@loreucci
Copy link

I'm experiencing the same issue when unplugging the monitor (same errors in log)

@akemrir
Copy link

akemrir commented Aug 24, 2024

Same here

@alekgr
Copy link

alekgr commented Aug 28, 2024

here also, I have a kvm switch and when I switch to my other computer and go back, I have to start waybar again.
Now this doesn't always happen but 90% times it does

@BoBth3BEaR
Copy link

Same here. Also, Steam restarts.

@lkomurcu
Copy link

lkomurcu commented Sep 6, 2024

I have the same issue it seems like there is something goes wrong with the output configuration after monitor goes to sleep or shuts down. Adding "output": "HDMI-A-2" to the config "fixed" the issue.

@loreucci
Copy link

loreucci commented Sep 6, 2024

The workaround with "output": "HDMI-A-1" seems to be working for me.

@akemrir
Copy link

akemrir commented Sep 6, 2024

Yes. Helped here also.
To be more precise, In my case I am adding name of monitor from hyprland config.

Stzx added a commit to Stzx/flake that referenced this issue Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants