Comments (12)
Are you sure that:
-
you have the
timeout
option of the plugin set (to something sensible, e.g. 10), and -
you are waiting that amount of seconds (10 in our example) before reconnecting?
from luastatus.
Also, please try i3-msg restart
and report if the signal changes.
from luastatus.
Still no changes. I have timeout=10
. I waited for several seconds each time I place the laptop somewhere and it does not update.
Also did i3-msg restart
. Nothing happens.
from luastatus.
Here is the code:
widget = {
plugin = 'network-linux',
opts = {
wireless = true,
timeout = 10
},
cb = function(t)
if not t then
return nil
end
local dbm
for iface, param in pairs(t) do
if param.wireless then
if param.wireless.signal_dbm then
dbm = param.wireless.signal_dbm
end
end
end
return {
full_text = string.format('%s', dbm)
}
end
}
from luastatus.
And also, the example wireless.lua
is not updating (signal bars not changing).
from luastatus.
I waited for several seconds each time I place the laptop somewhere and it does not update.
Have you been waiting for 10 seconds?
Also did i3-msg restart. Nothing happens.
Then, the problem is in your driver, because this restarts the luastatus process (so it has no chance to cache the signal information anywhere).
And, are you sure that reconnecting updates it?
from luastatus.
Also, as an experiment, can you please launch i3status
(with a config that displays wireless %quality
, default will do) in the terminal and see if it changes?
from luastatus.
Have you been waiting for 10 seconds?
Yes. Minutes even just to make sure.
And, are you sure that reconnecting updates it?
Yes. By just toggling airplane mode.
i3status
I tried it. Set the global interval to 1 but still it's not changing. So I guess it really is a driver problem. Thanks!
from luastatus.
Hmm, interesting, the same is going on on my machine. cat /proc/net/wireless
updates in the real time.
The code for the network-linux
plugin was adapted from i3status, so there’s a bug either in:
-
i3status’ code for retrieving the wireless parameters;
-
libnl;
-
kernel driver.
I will probably investigate it later.
P.S. I’ve just found a bug in network-linux that has nothing to do with the quality not updating, but could crash the entire luastatus process when reconnecting, so please update (fixed with f403c84 commit).
from luastatus.
Also, i3status has a bug open for it: i3/i3status#106
from luastatus.
Fixed, please try now.
from luastatus.
It's working. Thank you!
from luastatus.
Related Issues (20)
- [Request] Limited connectivity on network-linux plugin HOT 1
- [network-linux] signal_percent returns nil HOT 1
- Centering multiple widgets HOT 1
- using a different fork of lemonbar HOT 2
- mpd error HOT 2
- multiple intances of luastatus running HOT 9
- [request] display ethernet network's name HOT 9
- Is there a way to manually trigger the callback within a widget? HOT 10
- Simplifying the battery plugin HOT 4
- Некорректно работают вызовы из шелла HOT 1
- pulse plugin is disabled by default HOT 2
- Interconnection with sinx stats aggregator HOT 11
- "network-rate" uses "binary prefix" divisor (1024) rather than "si prefix" divisor (1000) HOT 1
- Could someone please verify/check my "new" mem-usage widget? HOT 2
- Segmentation fault when using mpd plugin HOT 1
- Error occurs when trying to use multiple widgets that use the mpd plugin HOT 2
- IMAP plugin not working HOT 2
- E539: Illegal character <,> HOT 2
- io.popen causing luastatus to hang HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luastatus.