lain icon indicating copy to clipboard operation
lain copied to clipboard

net widgets and iface arrays

Open emacsomancer opened this issue 8 years ago • 5 comments
trafficstars

I'm having trouble with the netup/down and different interfaces. With the default, it never detects any network unless I'm on tun0 (vpn). When I manually configure it, I have the following behaviour:

The array doesn't seem to work.

If I insert iface = "wlp2s0", under local netupinfo = lain.widgets.net({

it correctly collects information on that interface.

But if I instead insert:

iface = { "enp0s25", "tun0", "wlp2s0" },

then it will not collect information on wlp2s0. Though (as far as I can tell) it always correctly collects info on tun0. enp0s25 seems to behave similarly.

emacsomancer avatar Nov 07 '17 02:11 emacsomancer

enp0s25 seems to behave similarly

To what? tun0 or wlp2s0?

Please, paste me a snapshot of these files:

  1. statistics/{tx_bytes,rx_bytes}
  2. carrier
  3. operstate

from each of your iface folders (/sys/class/net/{enp0s25,tun0,wlp2s0}/).

lcpz avatar Nov 08 '17 11:11 lcpz

@emacsomancer Ping.

lcpz avatar Nov 16 '17 08:11 lcpz

Snapshotted here: https://mega.nz/#!NOBHCChb!65ZcRGnf4pemMj_IdgXR6GbldN8afnJ_mnLHXN0EjI8

This is on my laptop, and it's not connected to ethernet, so nothing will be there for that interface.

I meant that enp0s25 behaves like wlp2s0 in not displaying traffic with the default or grouped interface setting, but only when it is specified as a singleton.

I have exactly the same behaviour with respect to these interfaces on my desktops, so it's not specific to a particular machine.

emacsomancer avatar Nov 17 '17 04:11 emacsomancer

Hello.

I solved this issue by enabling WEXT compatibility in the kernel. See WiFi - Gentoo Wiki for details.

It's not a fundamental solution...

a7p11t avatar Oct 12 '20 05:10 a7p11t

It's not a fundamental solution...

@a7p11t If you intended to say that fundamentally it is not a solution, then how do you think we can solve it?

lcpz avatar Oct 12 '20 17:10 lcpz