-
-
Notifications
You must be signed in to change notification settings - Fork 733
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 sometimes shows as disconnected when it's not #388
Comments
It seems like #354 came back. I'm also experiencing this. |
Same problem today came. Shows "disconnected" all time, excepting time wifi-menu is open in terminal |
Experiencing the same issue, but on my end, it seems related to multihead and/or sleep. Whenever I come back from sleep, the status shows disconnected until I reload sway, and sometimes, one of the screen shows my SSID while the other shows up disconnected. |
I see this happen a lot when I change Wifi networks. I think I can reproduce this mostly at will. |
I came here to post an issue that #354 was back and found this issue. In my case, the network connection is just out of date. For example it would show wireless as active when I would have deactivated it. |
Am also affected, though I cannot link directly to sleep |
This is really annoying. I wondered today if it was something to do with changing between APs with the same SSID. |
I've been able to reproduce this reliably. System: Arch Linux, systemd-networkd, iwd /etc/systemd/network/25-wireless.network:
Steps to reproduce:
The problem can be temporarily resolved by either:
Running waybar with --log-level trace reveals nothing about the bug. |
In my case uncommenting Before that change, I have 2 wireless nets in my house so If I go to the garden it connects to the second net. |
I'm having the same problem with Arch, sway and current master, restarting waybar or disabling&enabling the output waybar is using also updates it. |
Same here with |
I can reproduce this issue with iwd by simply switching to another AP or even by simply disconnecting and reconnecting to the same one. I'm trying to monitor the events passed to Network::handleEvents, but it looks like I miss many events when I use a debugger compared to just printing nlmsg_type to stdout. I don't now much about libnl so I can't say if that's just some timeout or a race condition somewhere in the code. Also, I can't reproduce a single case where Network::checkNewInterface finds a valid interface. For now I managed to work around the issue by skipping checkNewInterface and just kicking the timer GbGp@3271258, but I'm not sure what I'm breaking there. |
Same here with NetworkManager on Arch Linux (Waybar v0.9.4) |
Arch Linux kernel 5.9.1-arch1-1 / Waybar v0.9.4 / sway version v1.5 Looking at the logs, it lost carrier and reconnected. journal -xe Wondering if its more related to iwd or systemd / kernel, still weird the module isn't picking up the connect status. |
Same problem here with latest everything: 5.9.14-arch1-1 Restarting waybar shows my connection again, but after a few minutes it goes back to showing "disconnected" again. When the network drops and wpa_supplicant immediately reconnects, waybar loses track of the connection forever. |
Hi! Also experiencing this with the latest version:
Same symptoms as described above. Please let me know if I can provide any more data useful for troubleshooting. |
Can confirm. Given how easy is to jam a script that outputs some basic network information (which can be pulled by Perhaps shipping some basic |
This is even worse for me after this merge. After a little while of waybar being running it just changes to "Disconnected". |
@tperard any ideas? |
Hi @pedrocr, thanks for testing the changes! Let's try to debug that. If you only have answer to some of those question, but not all, it still going to be useful. Cheers. |
@tperard I have the same issue, so just chiming in :)
|
Some RTM_NEWLINK messages may not have the IFLA_CARRIER information. This is the case when a WiFi interface report scan result are available. `carrier` is used regardless of if it is present in the message or not. This would result in the interface appearing "disconnected" in waybar when it isn't. This patch now check that `carrier` is available before using it. The same thing could potentially happen to `ifname` so check if it's set before recording it. Fixes: c1427ff (network: Handle carrier information) Fixes Alexays#388
@minhduc0711 can you test with latest @tperard changes? #1116 |
It works well now, thanks for looking into it!! |
I often get the network shown as Disconnected when it's actually not. Restarting waybar fixes it. Let me know what kind of information you need to debug this.
The text was updated successfully, but these errors were encountered: