i3status-rust icon indicating copy to clipboard operation
i3status-rust copied to clipboard

USB net card not found

Open elverskog opened this issue 2 years ago • 5 comments

I was considering filing a comment here https://github.com/greshake/i3status-rust/issues/1758 ...but this may be a different issue

I have two dirs in /sys/class/net One for a wired card the other for a PCI wifi card (with external antenna)

Even if I specify the wifi card/dir fully by name the status bar does not see it The wired card shows up fine (named or as the default) but it is not actually connected to the network

I tried two blocks but no luck The wired card name falls alphabetically after the wifi card

Any ideas?

elverskog avatar Feb 24 '23 07:02 elverskog

Can you please show your block config and what your interface names are (ip -br a)? That makes debugging/reproducing much easier

GladOSkar avatar Feb 24 '23 13:02 GladOSkar

Of course...

[[block]] block = "net" device = "enp3s0"
format = " $icon {$signal_strength $ssid $frequency|Wired connection} via $device " interval = 5

The wired card is wlp5s0 The above has the full name of the wifi card of course

elverskog avatar Feb 24 '23 18:02 elverskog

And what does the wlp5s0 block show? Nothing / an 'x' / an Error?

GladOSkar avatar Feb 25 '23 09:02 GladOSkar

It shows "Wired connection via wlp5s0" But, just to clarify, it is not connected It is an on-motherboard interface

I could possibly disable it fully (or just remove the dir from /sys/class/net) But I'm hoping to avoid doing that, for if/when I want to use a wired connection

I don't know how your code works per figuring out which card to show It could very well be that the wlp5s0 is reading as active or even as the default in my system

But of course I'm also hoping to fix the issue within your status tray (or its config) Meaning that I would figure a complete card/dir name should be "inarguable"

Thanks

elverskog avatar Feb 26 '23 04:02 elverskog

I think you might have something mixed up. Usually enp cards are wired and wlp is wireless. You must have messed a lot with your system if it shows up the other way around.

If you do ls /sys/class/net/wlp5s0/ ls /sys/class/net/enp3s0/ there should be a wireless directory in there if it's a wireless interface. Could you check for that?

Also maybe try just format = " $icon $ip " on the wireless interface for now, to make sure it's not #1607 affecting you

GladOSkar avatar Feb 26 '23 12:02 GladOSkar