I'm using the internal/network module. The signal value changes unpredictably and does not follow the set interval.
Expected behavior:
The value should update every 2s - interval = 2. The value should scale roughly between 0-100.
Actual behavior:
I was not able to consistently measure how often the value updates (walking around the house, to keep change the signal strength). Sometimes It'd update every 15-30s , and sometimes it would get stuck for a few minutes. The value would never go above 42 even right next to the router, and never below 22 even on the edge of losing the signal.
EDIT: The value just updated to 47 (the highest ever seen) at -56 dBm.
Was it working before?
No, it's the first time I'm using polybar.
@RouNNdeL - I'm not denying that there may be an issue here, but digging through the wireless-tools library, I'm not certain that this should be going from 0 - 100.
This is actually somewhat problematic to code as the idea of a maximum quality is a bit odd when talking about dB. I think the best option would be to display the actual dB instead of trying to create some form of percentage here.
The values for %signal% do go from 0 to 100, but the edges (especially 100% is rarely reached). A signal strength of -20dBm coresponds to 100% and -90dBm is 0% with linear interpolation in between.
Many other tools use a quadratic formula that one of the drivers in the linux kernel uses and which reaches a higher percentage value earlier. One example for this is i3status-rust
There is probably a case to be made for polybar to adapt the same model because it would match what many other tools are already doing and values around -50dBm are already quite good and don't necessarily warant only a 57% signal strength.
Describe the issue
I'm using the
internal/networkmodule. Thesignalvalue changes unpredictably and does not follow the setinterval.Expected behavior:
The value should update every
2s-interval = 2. The value should scale roughly between 0-100.Actual behavior:
I was not able to consistently measure how often the value updates (walking around the house, to keep change the signal strength). Sometimes It'd update every 15-30s , and sometimes it would get stuck for a few minutes. The value would never go above 42 even right next to the router, and never below 22 even on the edge of losing the signal.
EDIT: The value just updated to 47 (the highest ever seen) at
-56 dBm.Was it working before?
No, it's the first time I'm using polybar.
To Reproduce
The value reported by
iwconfiglook good. Signal strength-20dBm - -75dBm.Polybar Log
When the value finally updates:
Environment:
polybar -vvv:Additional context
Example output of
iwconfig:The text was updated successfully, but these errors were encountered: