bbidulock / icewm

A window manager designed for speed, usability, and consistency
Other
590 stars 100 forks source link

Avoid ppp* devices, in addition to lo, when monitoring #479

Closed jidanni closed 4 years ago

jidanni commented 4 years ago

Lately the ppp0 meter ( EN _ [] __ mailbox time) 5842-0 hardly is registering any traffic, even if I am using my maximum ADSL download speed (256 kB/sec.) Maybe I need a way to tell it what my maximum is, in case it thinks I am on a high speed connection (100 times faster), and thus nothing hardly will show up as it is all too short.

jidanni commented 4 years ago

OK, https://www.speedtest.net/ finally made both red (download) and yellow (upload) show up real tall in the graph. So maybe there should be a way for users to adjust the averaging algorithm used by the NetworkStatusDevice monitor, to make rapidly fluctuating speeds not become zero.

gijsbers commented 4 years ago
#  Delay between Net Monitor samples in ms
# TaskBarNetDelay=500 # [10-3600000]
jidanni commented 4 years ago

It turns out of

$ /sbin/ifconfig -s
Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
enp1s0    1500    58138      0      0 0         42665      0      0      0 BMRU
lo       65536     8234      0      0 0          8234      0      0      0 LRU
ppp0      1492    10017      0      0 0          8239      0      0      0 MOPRU

icewm now always (or sometimes? Last in the list today?) chooses ppp0. But ppp0 is just the virtual device. Thus the user needs to set

NetworkStatusDevice="e*"

Therefore icewm, in addition to already avoiding lo, should also avoid **ppp***, especially if there are other real devices present.

gijsbers commented 4 years ago

The default value is:

# NetworkStatusDevice="[ew]*"

Maybe your preferences is old and needs updating?