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

network state disconnected, even when connected #1044

Closed
kevinoid opened this issue Mar 7, 2021 · 3 comments
Closed

network state disconnected, even when connected #1044

kevinoid opened this issue Mar 7, 2021 · 3 comments

Comments

@kevinoid
Copy link
Contributor

kevinoid commented Mar 7, 2021

With waybar 0.9.5 or master (cb1c7ea) on Debian testing with Linux 5.11, if a network interface is brought up after waybar has started, it shows the format for state disconnected even after the interface has been configured. To demonstrate, using the configuration:

{
  "modules-right": [
    "network"
  ],
  "network": {
    "format": "{ifname}: {ipaddr}/{cidr}",
    "format-disconnected": "{ifname}: Disconnected"
  }
}

On a machine with wireless interface (wlp3s0) initially disabled by soft rfkill (nmcli radio wifi on) and a wired interface (enp0s25) initially connected:

  1. Run waybar --config config.
    Waybar correctly displays enp0s25: 192.168.0.2/24.
  2. Bring down enp0s25 (e.g. nmcli device disconnect enp0s25).
    Waybar correctly displays enp0s25: Disconnected.
  3. Bring up enp0s25 (e.g. nmcli device connect enp0s25).
    Waybar still incorrectly displays enp0s25: Disconnected.

Let me know if there's anything else I can do to help troubleshot.

Thanks,
Kevin

@sigmavirus24
Copy link

Related to one of #999 or #816 or #388 maybe?

@kevinoid
Copy link
Contributor Author

Good catch. Looks like a duplicate of #388 to me. Sorry for the noise.

@sigmavirus24
Copy link

No worries. I was looking into this too and found a bunch of them. Just wanted to see if they were all related/the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants