i3 / i3status

Generates status bar to use with i3bar, dzen2 or xmobar
BSD 3-Clause "New" or "Revised" License
606 stars 254 forks source link

the network information is not fetched correctly, shows up as "W: (? at ?)" #428

Open atgsdvarf opened 4 years ago

atgsdvarf commented 4 years ago

I also asked this on /r/i3wm (Link), but it might be more fitting here.

I'm successfully connected to a wifi network via a USB network adapter. However, the network information is not being read correctly, showing up as W: (? at ?) 192.168.1.199. The network information is, on the other hand, read correctly by nmcli dev.

I'm using a standard i3status configuration: the relevant lines in my config file are

bar {
    status_command i3status
}

I should also note that the status bar worked fine until yesterday, but I had to change USB network adapter, and with this one I'm seeing the problem, although I can connect to networks fine.

In case this information might be useful, the device I'm using, as given by lsusb, is

Bus 003 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter

The corresponding driver in use, as reported by dmesg, is r8188eu, which modinfo confirms I have installed.

I also just updated i3 and i3status from https://debian.sur5r.net/i3/. I have i3 version 4.18 (2020-02-17) and i3status 2.13.

A Reddit user also pointed me to this section of the source being responsible for fetching the relevant information, but I still can't tell exactly how i3status is trying to get the network info.

panther1942 commented 4 years ago

我遇到了和你相同的问题 和你一样的网卡 Bus 002 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) 我认为是驱动或者网卡问题 当我换了个网卡并安装驱动之后显示就正常了 Bus 002 Device 008: ID 148f:760b Ralink Technology, Corp. MT7601U Wireless Adapter

i3 version 4.18.2 (2020-07-26) © 2009 Michael Stapelberg and contributors i3status 2.13 © 2008 Michael Stapelberg and contributors Linux 5.7.12-arch1-1 #1 SMP PREEMPT Fri, 31 Jul 2020 17:38:22 +0000 x86_64 GNU/Linux